Page 3 of 4

Re: HP iLO 2 Monitoring

Posted: Mon Apr 10, 2017 4:53 pm
by Nagios_Admin_M
The Status Information has now NULL value.

Re: HP iLO 2 Monitoring

Posted: Tue Apr 11, 2017 8:25 am
by tgriep
Can you provide a screen capture of the error as well as the log entry from the nagios.log file?

Re: HP iLO 2 Monitoring

Posted: Tue Apr 11, 2017 2:07 pm
by Nagios_Admin_M
This is my current log entry for this service check:

[1491937350] SERVICE ALERT: SERVERNAME;Fan Redundancy;CRITICAL;SOFT;1;(Return code of 126 is out of bounds - plugin may not be executable)

Re: HP iLO 2 Monitoring

Posted: Tue Apr 11, 2017 2:13 pm
by tgriep
For some reason, the plugin doesn't seem to be executable anymore.
Try and run the following command again from the folder the plugin is installed at. This should make it executable and the plugin should run after that.

Code: Select all

chmod 777 check_ilo2_health.pl

Re: HP iLO 2 Monitoring

Posted: Tue Apr 11, 2017 2:26 pm
by Nagios_Admin_M
There is the same error:
ls -ltrZ rwxrwxrwx. nagios nagios unconfined_u:objects_r:user_home_t:s0

Re: HP iLO 2 Monitoring

Posted: Tue Apr 11, 2017 2:43 pm
by tgriep
In the folder where the plugin is installed, run the following commands and post the output

Code: Select all

ls -l
pwd
getenforce
uname -a
cat /etc/*release*

Re: HP iLO 2 Monitoring

Posted: Wed Apr 12, 2017 8:50 am
by Nagios_Admin_M
I believe it is a permission issue, because I can execute command and get the values with root account.

Re: HP iLO 2 Monitoring

Posted: Wed Apr 12, 2017 12:25 pm
by tgriep
I agree, it is a permission issue. I also think that selinux is running on the server and that is also blocking the plugin from running.
Can you disable selinux on the Nagios server and see if the plugin runs?
If not, run the commands from my previous post and post the output.

Re: HP iLO 2 Monitoring

Posted: Fri Apr 14, 2017 1:32 am
by Nagios_Admin_M
pwd
/usr/lib64/nagios/plugins

ls -l
-rwrrwxr-x. 1 nagios nagios 32133 Nov 17 05:04 /usr/lib64/nagios/plugins/check_ilo2_health.pl

getenforce
Enforcing

uname -a
Linux 2.6.32.el6.x86_64 #1 SMP Tue Feb 21:00:17 EST 2017 x86_64 x86_64 GNU/Linux

cat /etc/*release*

cat /var/log/nagios/nagios.log
(Return code of 126 is out of bounds - plugin may not be executable)

Re: HP iLO 2 Monitoring

Posted: Fri Apr 14, 2017 8:44 am
by tgriep
Selinux will need to be disabled so the plugin will run.
Edit the /etc/selinux/config file
Set the line SELINUX=enforcing to SELINUX=disabled
Reboot the system
Then see if the plugin runs and the nagios user by doing the following while logged in to the server in a shell.

Code: Select all

su nagios
/usr/lib64/nagios/plugins/check_ilo2_health.pl --help
Let us know how it works.