sexibytes / sexigraf

SexiGraf is a vSphere centric Graphite appliance with a Grafana frontend.
http://www.sexigraf.fr
MIT License
128 stars 21 forks source link

Unable to collect performance #336

Closed orb71 closed 1 year ago

orb71 commented 1 year ago

Hi!

At first, I thought vCenter log level was the culprit behind this error due to the fact it was set with L1. a bump up to L3 did not fix the issue. So far I cannot get more than an offline inventory.

OVA : SexiGraf 0.99i “Victory Mine”


Transcript started, output file is /var/log/sexigraf/ViPullStatistics.log 2023-02-21T16:55:01.8845991+00:00 [INFO] ViPullStatistics v0.9.1006 2023-02-21T16:55:01.8924867+00:00 [INFO] Importing PowerCli and Graphite PowerShell modules ... 2023-02-21T16:55:03.9204900+00:00 [INFO] Looking for another ViPullStatistics for X.Y.local ... 2023-02-21T16:55:03.9393394+00:00 [INFO] SessionToken found in SessionFile, attempting connection to X.Y.local ... 2023-02-21T16:55:05.9822878+00:00 [INFO] Connected to vCenter X.Y.local version 7.0.3 build 20990077 2023-02-21T16:55:05.9870035+00:00 [INFO] Start processing vCenter/ESX X.Y.local ... 2023-02-21T16:55:06.1074616+00:00 [INFO] Processing SessionManager & EventManager ... 2023-02-21T16:55:06.4006810+00:00 [INFO] vCenter objects collect ... 2023-02-21T16:55:07.2038029+00:00 [INFO] Building objects tables ... 2023-02-21T16:55:07.2042064+00:00 [INFO] vCenter objects relationship discover ... 2023-02-21T16:55:07.2245772+00:00 [INFO] Performance metrics collection ... PS>TerminatingError(): "Exception calling "QueryPerf" with "1" argument(s): " Required parameter querySpec is missing

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): " Required parameter querySpec is missing

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"" 2023-02-21T16:55:07.2641099+00:00 [EROR] ESX MultiQueryPerfAll failure 2023-02-21T16:55:07.2650497+00:00 [EROR] Exception calling "QueryPerf" with "1" argument(s): " Required parameter querySpec is missing

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" 2023-02-21T16:55:07.2675568+00:00 [EROR] Exit

rschitz commented 1 year ago

Hi, We'll need you to run the collect script manually sourced so we can have a look on the queries. i'll give you the instructions ASAP

orb71 commented 1 year ago

I have an update for you. The problem solved itself after the appliance reboot. We can close the case unless you need some logs.

Oli

rschitz commented 1 year ago

Did you have 0 hosts or 0 vms at some point in your inventory?

rschitz commented 1 year ago

got the same error with no connected ESX in the inventory:

PS>TerminatingError(): "Exception calling "QueryPerf" with "1" argument(s): " Required parameter querySpec is missing

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): " Required parameter querySpec is missing

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"" 2023-02-24T22:35:12.6392861+00:00 [EROR] ESX MultiQueryPerfAll failure 2023-02-24T22:35:12.6400490+00:00 [EROR] Exception calling "QueryPerf" with "1" argument(s): " Required parameter querySpec is missing

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" 2023-02-24T22:35:12.6440399+00:00 [EROR] Exit

rschitz commented 1 year ago

Thanks for your feedback!