Page 1 of 1

ESXI Monitoring

Posted: Sat Nov 09, 2019 6:05 pm
by johnjohn123
Hello im trying to setup some alerting on my ESXI node. I have used check_vmware_api.pl command to query my ESXI host with no issues however when attempting to configure alert thresholds it doesn't appear to be working as expected. See attached screenshots for help page/my service config. Also attached output from the test command in CCM.

Plugin Help: https://imgur.com/kkZJPtG

My Config: https://imgur.com/whE68fX

Code: Select all

[[email protected] ~]$ /usr/local/nagios/libexec/check_vmware_api.pl -H "10.251.1.5" -f "/usr/local/nagiosxi/etc/components/vmware/esxi01_lab_homelabz_xyz_auth.txt" -l "CPU" -w '10' -c '90'
CHECK_VMWARE_API.PL OK - cpu usage=7623.00 MHz (54.47%) | cpu_usagemhz=7623.00;10;90 cpu_usage=54.47%;10;90

Re: ESXI Monitoring

Posted: Sun Nov 10, 2019 4:52 pm
by johnjohn123

Re: ESXI Monitoring

Posted: Mon Nov 11, 2019 12:32 pm
by mbellerue
In order for the warning and critical values to work, you'll also have to specify a subcommand. All of this will be put in ARG3.

-s usage -w 80 -c 90

You can get a list of commands and subcommands by running the check_vmware_api.pl plugin at the command line, like so.

/usr/local/nagios/libexec/check_vmware_api.pl --help

Edit:
Also, welcome to the forums!