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

Vsan data missing - EFA detection faulty #382

Closed turnmike2 closed 8 months ago

turnmike2 commented 8 months ago

Hi, I am trying to get Vsan data in Sexigraf but somehow I can't see any datas. Current version of sexigraf: 0.99j. But also noticed without troubleshooting on 0.99i

I can see in /var/log/sexigraf/ViPullStatistics.log the following "warning" showing up all the time:

2024-03-05T00:35:22.8315954+00:00 my.VirtualCenter [INFO] Start processing VsanPerfQuery in cluster my-cluster (v6.7+) ... 2024-03-05T00:35:22.8400649+00:00 My.VirtualCenter [INFO] Processing EFA vSAN metrics in cluster my-cluster (v8.0+) ... 2024-03-05T00:35:24.1034758+00:00 My.VirtualCenter [WARN] Unable to retreive VsanPerfQuery in cluster my-cluster 2024-03-05T00:35:24.1053111+00:00 My.VirtualCenter [WARN] Exception calling "VsanPerfQueryPerf" with "2" argument(s): "A specified parameter was not correct: entityRefId" 2024-03-05T00:35:24.1060335+00:00 My.VirtualCenter [WARN] Empty VsanPerfQuery in cluster my-cluster 2024-03-05T00:35:24.1066571+00:00 My.VirtualCenter [INFO] Start processing SmartStatsSummary in cluster my-cluster (v6.7+) ... 2024-03-05T00:35:24.9115029+00:00 My.VirtualCenter [INFO] Processing spaceUsageByObjectType in vSAN cluster my-cluster (v6.2+) ...

VirtualCenter version: 8.0.2

Any way to troubleshoot this? For at this moment most of the vSan dashboards are empty.

Thanks for creating Sexigraf for it is an excellent tool!

rschitz commented 8 months ago

Hi, do you have attached any disks to you vsan cluster yet?

rschitz commented 8 months ago

i just tested with an "empty" vsan you should have that:

2024-03-05T13:02:35.1613571+00:00 [WARN] Unable to retreive VsanPerfQuery in cluster xxx 2024-03-05T13:02:35.1647758+00:00 [WARN] Exception calling "VsanPerfQueryPerf" with "2" argument(s): "The object or item referred to could not be found." 2024-03-05T13:02:35.1659363+00:00 [WARN] Empty VsanPerfQuery in cluster xxx

turnmike2 commented 8 months ago

Thats weird. I have 4 hosts with 8 disks each, 11.8Tb storage used by 60 vm's. In total 168Tb capacity. Any way to get some more debug info in the log?

turnmike2 commented 8 months ago

I was checking my log VS your log and notice a different warning. Could this be an issue?

Mine says: "A specified parameter was not correct: entityRefId" Yours: "The object or item referred to could not be found."

rschitz commented 8 months ago

can you check if you get the SMART metrics from the drives please ?

rschitz commented 8 months ago

Thats weird. I have 4 hosts with 8 disks each, 11.8Tb storage used by 60 vm's. In total 168Tb capacity. Any way to get some more debug info in the log?

actually the error is what's getting back from the api call, i'll have to ask you to run the script manually to get some variables, please email me at raphael[at]schitz[dot]net