Check_ilo2_health

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
niccnagios
Posts: 6
Joined: Mon Mar 04, 2013 11:23 am

Check_ilo2_health

Post by niccnagios »

Distro: CentOS release 6.2
32 bit
VMware image NagiosXI

I don't know if there's a better place for plugin assistance threads so I am starting here.

I am attempting to get the check_ilo2_health plugin to work on our NagiosXI setup to get information from our iLO4 servers. The plugin was downloaded from here: https://www.monitoringexchange.org/atta ... _health.pl

Plugin version 1.55. I have gone through the instructions provided by the creator of the plugin and I have it loaded in XI but when I run the command from the commandline I get this:
[root@nagiosxi libexec]# ./check_ilo2_health -h 10.223.1.251 -u ###### -p ###### -3 -o
I get the output for instructions of the plugin:
check_ilo2_health 1.55

This nagios plugin is free software, and comes with ABSOLUTELY NO WARRANTY.
It may be used, redistributed and/or modified under the terms of the GNU
General Public Licence (see http://www.fsf.org/licensing/licenses/gpl.txt).

This plugin checks the health status on a remote iLO2|3|4 device
and will return OK, WARNING or CRITICAL. iLO (integrated Lights-Out)
can be found on HP Proliant servers.

Usage: check_ilo2_health [-H <host>] [ -u|--user=<USERNAME> ]
[ -p|--password=<PASSWORD> ] [ -f|--inputfile=<filename> ]
[ -a|--fanredundancy ] [ -c|--checkdrives ] [ -d|--perfdata ]
[ -e|--skipsyntaxerrors ] [ -n|--notemperatures ] [ -3|--ilo3 ]
[ -o|--powerredundancy ] [ -t <timeout>] [ -v|--verbose ]

-?, --usage
Print usage information
-h, --help
Print detailed help screen
-V, --version
Print version information
--extra-opts=[section][@file]
Read options from an ini file. See http://nagiosplugins.org/extra-opts
for usage and examples.
-H, --host=STRING
Specify the host on the command line.
-u, --user=STRING
Specify the username on the command line.
-p, --password=STRING
Specify the password on the command line.
-f, --inputfile=STRING
Read input from file.
-a, --fanredundancy
Check fan redundancy
-c, --checkdrives
Check drive bays.
-d, --perfdata
Enable perfdata on output.
-e, --skipsyntaxerrors
Skip syntax errors on older firmwares.
-n, --notemperatures
Disable temperature listing.
-o, --powerredundancy
Check power redundancy.
-3, --ilo3
Check iLO3|4 device.
-t, --timeout=INTEGER
Seconds before plugin times out (default: 15)
-v, --verbose
Show details for command-line debugging (can repeat up to 3 times)
Is there something that I'm doing obviously wrong here?
When I run it from the XI interface from Core Configuration Manager I get this:
OUTPUT: CHECK_ILO2_HEALTH UNKNOWN - plugin timed out (timeout 15s)
Thanks for your help.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Check_ilo2_health

Post by slansing »

Yes, just a simple mistake you used:

Code: Select all

-h
Instead of:

Code: Select all

-H
For defining the host address, -h drops the help text :).
niccnagios
Posts: 6
Joined: Mon Mar 04, 2013 11:23 am

Re: Check_ilo2_health

Post by niccnagios »

Ha :mrgreen: that was a good catch. That explains a lot but I am still getting the output after changing the lower case to upper case H:

Code: Select all

CHECK_ILO2_HEALTH UNKNOWN - plugin timed out (timeout 15s)
This is coming from both the command line and the XI interface now. For access to the iLO interface I just hardcoded the User and Pass into the command and can fix that later with the variables if I could just get it to make a connection using the plugin first.

Again, the code is:

Code: Select all

[root@nagiosxi libexec]# ./check_ilo2_health -h 10.223.1.251 -u ###### -p ###### -3 -o
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check_ilo2_health

Post by scottwilkerson »

Another possibility is if you have special chars in the username/password you may need to escape then, such as

Code: Select all

& ; $
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Check_ilo2_health

Post by abrist »

You could try increasing the timeout to make sure that the plugin is not just timing out:

Code: Select all

./check_ilo2_health -h 10.223.1.251 -u ###### -p ###### -3 -o -t 60
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
niccnagios
Posts: 6
Joined: Mon Mar 04, 2013 11:23 am

Re: Check_ilo2_health

Post by niccnagios »

Increasing the timeout to 60 returned all kinds of stuff:

Code: Select all

[root@nagiosxi libexec]# ./check_ilo2_health -H svcreesx1.nicc.edu -u ###### -p ###### -3 -o -t 60
ILO2_HEALTH CRITICAL - Power supply Not Redundant, Temperatures: 01-Inlet_Ambient (OK): 24, 02-CPU_1 (OK): 40, 05-P1_DIMM_7-12 (OK): 29, 08-P1_Mem_Zone (OK): 29, 09-P1_Mem_Zone (OK): 30, 10-P2_Mem_Zone (OK): 29, 11-P2_Mem_Zone (OK): 27, 12-HD_Max (OK): 35, 13-Chipset_1 (OK): 44, 14-Chipset1_Zone (OK): 34, 15-P/S_1_Inlet (OK): 28, 16-P/S_1_Zone (OK): 29, 18-P/S_2_Zone (OK): 28, 21-VR_P1 (OK): 31, 22-VR_P2 (OK): 28, 23-VR_P1_Mem (OK): 26, 24-VR_P1_Mem (OK): 26, 25-VR_P2_Mem (OK): 27, 26-VR_P2_Mem (OK): 26, 27-VR_P1Mem_Zone (OK): 25, 28-VR_P1Mem_Zone (OK): 25, 29-VR_P2Mem_Zone (OK): 26, 30-VR_P2Mem_Zone (OK): 25, 31-HD_Controller (OK): 56, 32-HD_Cntlr_Zone (OK): 38, 33-PCI_1_Zone (OK): 33, 34-PCI_1_Zone (OK): 34, 36-PCI_2_Zone (OK): 35, 37-System_Board (OK): 33, 38-System_Board (OK): 28, 39-Sys_Exhaust (OK): 33, 40-Sys_Exhaust (OK): 34, 41-Sys_Exhaust (OK): 33
Nice...I thought that I tried the increase before but I only upped it to 30 at the time.

Thanks for your help on this...great!!! Good day.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Check_ilo2_health

Post by slansing »

Have a good one niccnagios. Let us know if you need further help via a new thread.
Locked