Page 1 of 1
No output on stdout
Posted: Tue Mar 15, 2016 9:05 am
by Justin2501
Hi there,
I just migrated from CentOS 5.4 with FAN (Nagios + Centreon) to CentOS 7 with Nagios Core 4.1.1
On the old version, I had a ESXI Hardware check script, but sadly enough it's not working on the new host.
I keep receiving the following error in Nagios:
(No output on stdout) stderr: Traceback (most recent call last):
Does anyone has any idea what the issue could be?
Attached are the script files.
Kind regards,
Justin
Re: No output on stdout
Posted: Tue Mar 15, 2016 9:51 am
by rkennedy
What are the permissions on these files? From the CLI, run ls -la /usr/local/nagios/libexec/check_esxi_hardware* and post back the result.
Re: No output on stdout
Posted: Wed Mar 16, 2016 2:35 am
by Justin2501
rkennedy wrote:What are the permissions on these files? From the CLI, run ls -la /usr/local/nagios/libexec/check_esxi_hardware* and post back the result.
I've run the command:
[root@nagios ~]# ls -la /usr/local/nagios/libexec/check_esxi_hardware*
-rwxr-xr-x 1 nagios nagios 30735 Mar 12 2013 /usr/local/nagios/libexec/check_esxi_hardware.py
-rwxr-xr-x 1 nagios nagios 14780 Mar 12 2013 /usr/local/nagios/libexec/check_esxi_hardware.pyc
-rwxr-xr-x 1 nagios nagios 14780 Mar 12 2013 /usr/local/nagios/libexec/check_esxi_hardware.pyo
Do i need any specific packages, that i might be missing?
Or is this error something else
Re: No output on stdout
Posted: Wed Mar 16, 2016 8:57 am
by Justin2501
Hmm, i think i fixed it while trying out some stuff.
Downloaded the newest version of check_esxi_hardware
Code: Select all
http://www.claudiokuenzler.com/nagios-plugins/check_esxi_hardware.php#Download
And installed the following python packages
Code: Select all
yum install pywbem python-setuptools
After that i reloaded nagios and now it's working

Re: No output on stdout
Posted: Wed Mar 16, 2016 9:27 am
by bwallace
Thanks for that update and glad to hear this is resolved. I'll go ahead and close this thread now.