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.
spaxx2000
Posts: 2 Joined: Fri Jul 20, 2012 3:29 am
Post
by spaxx2000 » Fri Jul 20, 2012 4:02 am
Hi,
I use the nagios plugin check_ilo2_health.pl to monitor the ILO2 status of our HP servers.
The plugin worked great with FAN 2.1. After a new installation of the whole nagios server with FAN 2.3, I can't get the plugin to work again.
When I use the plugin with commandline it shows me the ILO2 Status.
In nagios it shows me (null) in Status Information (see attached screenshot).
Any help appreciated!!!
Additional Info:
Plugin check - works:
Code: Select all
# /usr/lib/nagios/plugins/check_ilo2_health.pl -n -H SERVERIP -u USERNAME -p PASSWORD
ILO2_HEALTH OK - No faults detected
commands.cfg:
Code: Select all
define command{
command_name check_ilo2_health
command_line /usr/lib/nagios/plugins/check_ilo2_health.pl -n -H $_HOSTILO_ADDRESS$ -u USERNAME -p PASSWORD
}
windows.cfg - sample host:
Code: Select all
define host{
use windows-server
host_name SERVERNAME
alias SERVERNAME
address 192.168.0.1
_ILO_ADDRESS 192.168.0.2
register 1
}
windows.cfg - service def:
Code: Select all
define service{
use generic-service
host_name SERVERNAME
service_description ILO2 Health Status
check_command check_ilo2_health
register 1
}
Attachments
Screenshot from nagios showing status "(null)"
spaxx2000
Posts: 2 Joined: Fri Jul 20, 2012 3:29 am
Post
by spaxx2000 » Tue Jul 24, 2012 4:12 am
Ok, I fixed it. The problem was caused by a security issue.
The Plugin is executed by the nagios user which wasn't allowed to do so. After giving the nagios user the rights it worked!
nscott
Posts: 1040 Joined: Wed May 11, 2011 8:54 am
Post
by nscott » Tue Jul 24, 2012 10:06 am
Thanks for letting us know what the issue was!
Nicholas Scott
Former Nagios employee
Nagios_Admin_M
Posts: 77 Joined: Fri Jul 22, 2016 4:39 am
Post
by Nagios_Admin_M » Thu Apr 06, 2017 2:37 pm
Hi,
What kind of permission did you set up for check_ilo2_health ?
Currently my configuration is:
define host{
use template
host_name host
address 192.168.0.1
contact_group admins
_ILO_ADDRESS 192.168.0.2
register 1
}
define service{
use template
host_name host
service_description check_ilo2_health
check_command check_ilo2_health!-c -3
}
and it gets me into Status Information as follow:
State: CRITICAL
Status Information: ( Service check did not exit properly )
Thanks in advance.