lgeeklee / pyvinga

Python pyVmomi plugin for Icinga
MIT License
14 stars 4 forks source link

no output when run against esx host #7

Open talbaror opened 9 years ago

talbaror commented 9 years ago

Hi I trying to use pyvinga plugin under ubuntu 14.04 but when i run it against esxi host i don't see any output maybe i use wrong argument , please advice Thanks command ./pyvinga.py --host 192.168.64.210 -u usr -p xxx123 -n host -e 192.168.64.210 -r cpu.usage -w 5 -c 10

lgeeklee commented 9 years ago

Hi,

Command looks OK - the only things I'd note on is the host name for -e, it must be the full host name (usually displayed in the top left of the VI client - left window frame).

For example, mine might say esxi1.lab.com so I have to use this after the '-e'. The IP address or the host name only won't work.

$ ./pyvinga.py --host 192.168.1.10 -u root -n host -e esxi1.lab.com -r cpu.usage -w 5 -c 10 Enter password for host 192.168.1.10 and user root: OK - CPU Usage is 0.6% | 'CPU Usage'=0.6%;5.0;10.0;0;100

IP address is OK for the '-s' / '--host' parameter

Hope this helps. Please keep me updated.

talbaror commented 9 years ago

Works like charm thanks just another question can i get health status and temperature with this plugin? Thanks

lgeeklee commented 9 years ago

Great news, thanks for getting back to me :)

The plugin doesn't currently look at temperature or health of hardware.

talbaror commented 9 years ago

Thanks a lot :-) any plan to extend it for health metrics?

lgeeklee commented 9 years ago

Unfortunately, not right now - other projects are taking up a lot of my time. I haven't even started to investigate how these can be pulled out of vCenter / Hosts and in what format they'd be.