Page 1 of 1

problem with checks on vcenter server

Posted: Mon Jan 28, 2019 1:44 pm
by ByAccident
Dear all,

Since a few day One of our vcenter servers is generating errors.
I can't seem to locate the problem.

when I run:

Code: Select all

/usr/local/nagios/libexec/check_esx3.pl -H "xxx.xxx.xxx.xxx" -f "/usr/local/nagiosxi/etc/components/vmware/thepasswd_auth.txt" -N "servername" -l "runtime" -s "con" 
CHECK_ESX3.PL OK - "servername" connection state=connected
all seems to be ok
however when I use the normal service with the MEM prefix I get an unknown error.
I already rebooted the vcenter, Nagios host, deleted all "bad" services and created them again but keep getting same error.

the other vcenter server has the same setup, same basic monitoring but he seems to be ok.

Re: problem with checks on vcenter server

Posted: Tue Jan 29, 2019 11:46 am
by lmiltchev
What is the version of Nagios XI that you are currently using? Run the following commands and show the output:

Code: Select all

/usr/local/nagios/libexec/check_esx3.pl -V
/usr/local/nagios/libexec/check_esx3.pl -H "xxx.xxx.xxx.xxx" -f "/usr/local/nagiosxi/etc/components/vmware/thepasswd_auth.txt" -N "servername" -l "MEM" -vvv
In the latest XI, we include a newer plugin for vmware checks - "check_vmware_api.pl". If you have it available in the libexec directory, try it to see if this is going to fix the issue:

Code: Select all

/usr/local/nagios/libexec/check_vmware_api.pl -H "xxx.xxx.xxx.xxx" -f "/usr/local/nagiosxi/etc/components/vmware/thepasswd_auth.txt" -N "servername" -l "MEM"