HP iLO 2 Monitoring

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Nagios_Admin_M
Posts: 77
Joined: Fri Jul 22, 2016 4:39 am

Re: HP iLO 2 Monitoring

Post by Nagios_Admin_M »

The Status Information has now NULL value.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: HP iLO 2 Monitoring

Post by tgriep »

Can you provide a screen capture of the error as well as the log entry from the nagios.log file?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Nagios_Admin_M
Posts: 77
Joined: Fri Jul 22, 2016 4:39 am

Re: HP iLO 2 Monitoring

Post 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)
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: HP iLO 2 Monitoring

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Nagios_Admin_M
Posts: 77
Joined: Fri Jul 22, 2016 4:39 am

Re: HP iLO 2 Monitoring

Post by Nagios_Admin_M »

There is the same error:
ls -ltrZ rwxrwxrwx. nagios nagios unconfined_u:objects_r:user_home_t:s0
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: HP iLO 2 Monitoring

Post 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*
Be sure to check out our Knowledgebase for helpful articles and solutions!
Nagios_Admin_M
Posts: 77
Joined: Fri Jul 22, 2016 4:39 am

Re: HP iLO 2 Monitoring

Post by Nagios_Admin_M »

I believe it is a permission issue, because I can execute command and get the values with root account.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: HP iLO 2 Monitoring

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Nagios_Admin_M
Posts: 77
Joined: Fri Jul 22, 2016 4:39 am

Re: HP iLO 2 Monitoring

Post 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)
Attachments
release.png
release.png (6.46 KiB) Viewed 2858 times
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: HP iLO 2 Monitoring

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked