Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sexigraf Powershell version: "Exception calling "QueryPerf" with "1" argument(s): "XML document element count exceeds configured maximum 500000" #287

Closed
raphoun opened this issue Feb 16, 2022 · 3 comments

Comments

@raphoun
Copy link

raphoun commented Feb 16, 2022

Hello,

When collecting vcenter with a lot of assets (22000 VMs and 295 hosts) we have this error in Sexigraf and no data for this vcenter.


PS>TerminatingError(): "Exception calling "QueryPerf" with "1" argument(s): "XML document element count exceeds configured maximum 500000

while parsing call information for method QueryPerf
at line 1, column 171

while parsing SOAP body
at line 1, column 64

while parsing SOAP envelope
at line 1, column 0

while parsing HTTP request for method queryStats
on object of type vim.PerformanceManager
at line 1, column 0""
>> TerminatingError(Measure-Command): "Exception calling "QueryPerf" with "1" argument(s): "XML document element count exceeds configured maximum 500000

while parsing call information for method QueryPerf
at line 1, column 171

while parsing SOAP body
at line 1, column 64

while parsing SOAP envelope
at line 1, column 0

while parsing HTTP request for method queryStats
on object of type vim.PerformanceManager
at line 1, column 0""
2022-02-16T08:51:41.6286409+00:00 [ERROR] VM MultiQueryPerf failure
2022-02-16T08:51:41.6290119+00:00 [ERROR] Exception calling "QueryPerf" with "1" argument(s): "XML document element count exceeds configured maximum 500000

while parsing call information for method QueryPerf
at line 1, column 171

while parsing SOAP body
at line 1, column 64

while parsing SOAP envelope
at line 1, column 0

while parsing HTTP request for method queryStats
on object of type vim.PerformanceManager
at line 1, column 0"
2022-02-16T08:51:41.6316179+00:00 [ERROR] Exit
Transcript stopped, output file is /var/log/sexigraf/ViPullStatistics.log
PS>TerminatingError(): "System error."
**********************
PowerShell transcript end
End time: 20220216085141
**********************

Would it be possible to change the way it is collectif to avoid to exceeds the maximum of 50000 elements?

Thanks,

Raphaël

@rschitz
Copy link
Member

rschitz commented Feb 16, 2022

Hi Raphaël, we can try to split the query when there is more than 15K VMs for ex.
i'll let you know

@raphoun
Copy link
Author

raphoun commented Mar 7, 2022

Hello Raph

Any new about this feature? :)

rschitz added a commit that referenced this issue Mar 7, 2022
@rschitz
Copy link
Member

rschitz commented Mar 7, 2022

Hi mate, try this new version and let me know ;)

vmdude added a commit that referenced this issue Mar 28, 2022
* Update VIM25VsanmgmtRuntime.pm

#255

* Update VIM25VsanmgmtStub.pm

#255

* Delete VMware-vSphere-Perl-SDK-7.0.0-16815913.x86_64.tar.gz

#255

* Create VMware-vSphere-Perl-SDK-7.0.0-17698549.x86_64.tar.gz

#255

* Update VsanPullStatistics.ps1

#254

* Update ViConnect.ps1

#254

* #237

* #237

* Revert "#237"

This reverts commit 5179624.

* Revert "#237"

This reverts commit a95d642.

* Revert "Revert "#237""

This reverts commit 57122fb.

* Update exportSexiGrafBundle.sh

#254

* Update exportSexiGrafBundle.sh

* Update exportSexiGrafBundle.sh

#254

* Update importSexiGrafBundle.sh

#254

* Update export-import.php

#257

* Update VMware_All_Version.json

* Update VsanPullStatistics.ps1

* Update ViPullStatistics.pl

#259

* Update graphite.conf

* Update importSexiGrafBundle.sh

* Update ports.conf

* Update credstore.php

* Update export-import.php

* Update importSexiGrafBundle.sh

#254

* Create powershell.config.json

#261

* Update VsanPullStatistics.ps1

* Update importSexiGrafBundle.sh

* Update VsanPullStatistics.ps1

* Update VsanPullStatistics.ps1

* Update VsanPullStatistics.ps1

#249

* Update VsanPullStatistics.ps1

#174

* Update VsanPullStatistics.ps1

#174

* Update VsanPullStatistics.ps1

#174

* Update VsanPullStatistics.ps1

#143

* Update VMware_vSAN_Monitor_TCP.json

#250

* Derivative to nonNegativeDerivative

#265

* Update FreeNAS.json

* Update VMware_All_Datastore_Usage_Distribution.json

* Update VMware_All_Version.json

* Update VMware_vCenter_Bad_Events.json

* Update powershell.config.json

* Update VsanPullStatistics.ps1

* Update importSexiGrafBundle.sh

* Update addVsanCrontab.sh

* Update credstore.php

* Update ViConnect.ps1

* Update VMware_Cluster_FullStats.json

http://obfuscurity.com/2013/05/Graphite-Tip-Counting-Number-of-Metrics-Reported

* Update VMware_All_Cluster_FullStats.json

http://obfuscurity.com/2013/05/Graphite-Tip-Counting-Number-of-Metrics-Reported

* Create ViPullStatistics.ps1

* Update ViPullStatistics.ps1

* Update ViConnect.ps1

* Update ViPullStatistics.ps1

#182

* Update ViPullStatistics.ps1

#254

* Update ViPullStatistics.ps1

#143

* Update VMware_All_Version.json

* Update ViPullStatistics.ps1

* Update ViPullStatistics.ps1

#272

* Update ViPullStatistics.ps1

#272

* Update VsanPullStatistics.ps1

* Update VsanPullStatistics.ps1

#143

* Update ViPullStatistics.ps1

* Update ViPullStatistics.ps1

#143

* Update ViPullStatistics.ps1

#143

* Update ViPullStatistics.ps1

#254 #143

* Update VMware_VSAN_Resync.json

* Update VMware_All_Version.json

* Update VMware_Multi_Cluster_Capacity_Planning.json

* Update VMware_Multi_Cluster_QuickStats.json

* Update ViOfflineInventory

* Create VmNetInfos.csv

#269

* #269

* Update ViPullStatistics.ps1

#254

* Update VMware_Multi_Cluster_QuickStats.json

* Update VMware_Cluster_Multi_ESX_LiteStats.json

* Update VMware_All_Cluster_SuperStats.json

* Update VMware_All_Cluster_FullStats.json

* Update ViPullStatistics.ps1

#254

* Update ViPullStatistics.ps1

#254

* Update ViPullStatistics.ps1

#254

* Update ViPullStatistics.ps1

#254

* #192

CpuWait to CpuIoWait

* Update ViPullStatistics.ps1

* #203

numXVMotion

* #269

* Update ViVmInventory.ps1

#269

* Update ViVmInventory.ps1

#269

* Update ViVmInventory.ps1

* Update ViVmInventory.ps1

* #269

* #269

* Update ViPullStatistics.ps1

* Update VsanPullStatistics.ps1

* #269

* #254

* Update ViOfflineInventory.ps1

* Update addVsanCrontab.sh

* Update ViPullStatistics.ps1

#254

* Update ViPullStatistics.ps1

#254

* #254

* Update ViPullStatistics.ps1

* Update ViPullStatistics.ps1

* Update SexiGraf_Pull_Exec_Time.json

* Update updateInventory.sh

* Update refresh-inventory.php

* Delete PullGuestInfo.sh

* Update ViPullStatistics.ps1

* Update ViOfflineInventory.ps1

* Create PullGuestInfo.sh

* #269

* Update credstore.php

* Update VMware_All_Version.json

* Update ViOfflineInventory.ps1

* Update collectd.conf

* Update ViOfflineInventory.ps1

* Update refresh-inventory.php

* Update ViPullStatistics.ps1

* Update ViOfflineInventory.ps1

#269

* Update PullGuestInfo.sh

* Update ViOfflineInventory.ps1

* Update ViPullStatistics.ps1

* Update ViPullStatistics.ps1

* Update VsanPullStatistics.ps1

* Update ViOfflineInventory.ps1

* Update ViPullStatistics.ps1

* Update storage-schemas.conf

* Update importSexiGrafBundle.sh

* Update ViPullStatistics.ps1

fix snapshot count for vsan

* #254

* Update WhisperAutoPurge.ps1

* #254

* Update refresh-inventory.php

* Update importSexiGrafBundle.sh

#254

* Update ViOfflineInventory

* #239

* #229

* #269

* Update VsanPullStatistics.ps1

* Update ViOfflineInventory.ps1

* #276

* #276

* #277

* Update PullGuestInfo.sh

* Update VsanPullStatistics.ps1

* Update VMware_BroStats.json

* #221

* Update ViPullStatistics.ps1

* Update VsanPullStatistics.ps1

* Update VMware_BroStats.json

* Update VMware_VM_Inventory.json

* Update VMware_ESX_Inventory.json

* Update export-import.php

* Update VMware_BroStats.json

* Update VMware_VM_Inventory.json

* Update VMware_ESX_Inventory.json

* Update SexiGraf_Pull_Exec_Time.json

* Update storage-schemas.conf

* Update ViPullStatistics.ps1

* Update VMware_Cluster_FullStats.json

* Update VMware_Cluster_Multi_ESX_LiteStats.json

* Update VsanPullStatistics.ps1

* #203

* Update ViPullStatistics.ps1

#264

* Update importSexiGrafBundle.sh

* Update VsanPullStatistics.ps1

#264

* #264

* Update sexigraf

* Update VsanPullStatistics.ps1

#264

* Update VMware_All_Cluster_Top_N_VM_Stats.json

* Update VMware_vSAN_Monitor_TCP.json

* #264

* Update ViPullStatistics.ps1

#264

* Update addVsanCrontab.sh

* Update ViPullStatistics.ps1

#264

* Update VMware_vSAN_SMART_Stats.json

* Update ViPullStatistics.ps1

* Update ViPullStatistics.ps1

* Update ViPullStatistics.ps1

* Update sexigraf

* Update carbon.conf

* Update sexigraf

* Update ViPullStatistics.ps1

* Update ViPullStatistics.ps1

* Update ViPullStatistics.ps1

* Update ViPullStatistics.ps1

* Update ViPullStatistics.ps1

* Update ViPullStatistics.ps1

* Update storage-schemas.conf

* Update ViPullStatistics.ps1

#264

* Update addVsanCrontab.sh

#264

* Update ViPullStatistics.ps1

#250

* Update ViPullStatistics.ps1

* Update importSexiGrafBundle.sh

* #264

* #264

* Delete log4perl.conf

* Update LICENSE.md

* Update storage-schemas.conf

* Update importSexiGrafBundle.sh

* Update importSexiGrafBundle.sh

* Update README.md

* Update graphite.conf

grafana/grafana#45117 (comment)

* Update graphite.conf

* Create netdata.conf

* Update ViPullStatistics.ps1

* Update importSexiGrafBundle.sh

* Update VMware_All_Cluster_SuperStats.json

* Update ViPullStatistics.ps1

* Update ViPullStatistics.ps1

* Update export-import.php

* Update ViPullStatistics.ps1

* Update VMware_Multi_VSAN_Monitor.json

* Update VMware_VSAN_Monitor.json

* Update VMware_Multi_Cluster_Top_N_VM_QuickStats.json

* Update VMware_Multi_Cluster_Top_N_VM_Overcommit.json

* Update VMware_All_Standalone_ESX_VM_Stats.json

* Update VMware_All_Standalone_ESX_Top_N_VM_Stats.json

* Update VMware_All_Cluster_VM_Stats.json

* Update VMware_All_Cluster_Top_N_VM_Stats.json

* Update ViPullStatistics.ps1

* Update Netdata.json

* Update VMware_Multi_Cluster_Top_N_VM_Latency.json

* Update ViPullStatistics.ps1

#287

* Update ViPullStatistics.ps1

* Update ViPullStatistics.ps1

* Update index.php

* Update ViOfflineInventory.ps1

* Update ViPullStatistics.ps1

#268

* Update ViOfflineInventory.ps1

* #268

* Update ViPullStatistics.ps1

#159

* Update VMware_VSAN_Resync.json

* Update VMware_Multi_VSAN_Monitor.json

* #250

* Update README.md

* Update ViOfflineInventory.ps1

* Update VMware_BroStats.json

* Update ViOfflineInventory.ps1

* Update SexiGraf_Web_Admin.json

* Update PullGuestInfo.sh

#211

* Update VMware_VSAN_Resync.json

* Update ViPullStatistics.ps1

* Update ViPullStatistics.ps1

* Update ViOfflineInventory.ps1

* Update VMware_All_Cluster_SuperStats.json

* Update VMware_Cluster_FullStats.json

* Update VMware_All_Cluster_SuperStats.json

* Update VMware_All_Cluster_SuperStats.json

* Update VMware_Multi_vSAN_Monitor_TCP.json

Co-authored-by: Raphaël SCHITZ <raphael@schitz.net>
@rschitz rschitz added this to the 0.99h - Highway 17 milestone Mar 28, 2022
@rschitz rschitz closed this as completed Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants