This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
johnjohn123
Posts: 2 Joined: Sat Nov 09, 2019 6:02 pm
Post
by johnjohn123 » Sat Nov 09, 2019 6:05 pm
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
mbellerue
Posts: 1403 Joined: Fri Jul 12, 2019 11:10 am
Post
by mbellerue » Mon Nov 11, 2019 12:32 pm
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!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new
Privacy Policy .
Be sure to check out our
Knowledgebase for helpful articles and solutions!