HP iLO 2 Monitoring
-
- Posts: 77
- Joined: Fri Jul 22, 2016 4:39 am
Re: HP iLO 2 Monitoring
The Status Information has now NULL value.
Re: HP iLO 2 Monitoring
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!
-
- Posts: 77
- Joined: Fri Jul 22, 2016 4:39 am
Re: HP iLO 2 Monitoring
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)
[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
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.
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!
-
- Posts: 77
- Joined: Fri Jul 22, 2016 4:39 am
Re: HP iLO 2 Monitoring
There is the same error:
ls -ltrZ rwxrwxrwx. nagios nagios unconfined_u:objects_r:user_home_t:s0
ls -ltrZ rwxrwxrwx. nagios nagios unconfined_u:objects_r:user_home_t:s0
Re: HP iLO 2 Monitoring
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!
-
- Posts: 77
- Joined: Fri Jul 22, 2016 4:39 am
Re: HP iLO 2 Monitoring
I believe it is a permission issue, because I can execute command and get the values with root account.
Re: HP iLO 2 Monitoring
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.
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!
-
- Posts: 77
- Joined: Fri Jul 22, 2016 4:39 am
Re: HP iLO 2 Monitoring
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)
/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 (6.46 KiB) Viewed 2928 times
Re: HP iLO 2 Monitoring
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.
Let us know how it works.
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
Be sure to check out our Knowledgebase for helpful articles and solutions!