Page 1 of 2

Issue in monitoring Hardware health using check_ilo2_health

Posted: Thu Aug 10, 2017 12:18 am
by bsivavani
Hi,

We are trying to monitor hardware health of ESXi server using below plugin

https://exchange.nagios.org/directory/P ... th/details

We are getting the below error while running the command
[root@s930l3301 tmp]# ./check_ilo2_health.pl -H s930e0130.rwe.com -u testusr -p testusr123 -t 60
ILO2_HEALTH UNKNOWN - ERROR: No parseable output.
[root@s930l3301 tmp]#

Kindly advice.

Re: Issue in monitoring Hardware health using check_ilo2_hea

Posted: Thu Aug 10, 2017 8:20 am
by tacolover101
take a look at an old thread that runs through the same issue - https://support.nagios.com/forum/viewto ... =7&t=10878

Re: Issue in monitoring Hardware health using check_ilo2_hea

Posted: Thu Aug 10, 2017 8:37 am
by bsivavani
I checked the old thread.

We have 777 permissions to plugin
[nagios@s930l3301 tmp]$ ll /usr/local/nagios/libexec/check_ilo2_health.pl
-rwxrwxrwx 1 apache nagios 32162 Aug 8 18:38 /usr/local/nagios/libexec/check_ilo2_health.pl
[nagios@s930l3301 tmp]$

Tried with both nagios and root users, but still we are seeing the same issue

[nagios@s930l3301 tmp]$ /usr/local/nagios/libexec/check_ilo2_health.pl -H s930e0130.rwe.com -u testusr -p testusr123 -t 60
ILO2_HEALTH UNKNOWN - ERROR: No parseable output.
[nagios@s930l3301 tmp]$

Re: Issue in monitoring Hardware health using check_ilo2_hea

Posted: Thu Aug 10, 2017 1:48 pm
by tgriep
If the plugin cannot connect to the ILO module, it will print out that error. It does look like the plugin runs but cannot connect to the ILO module.
Can you provide any information on the settings for the ILO module?
Is it setup to use SSL and if it enabled, what mode is it set to?
Is is an ILO3 or an ILO4 device?

Can you run the plugin in verbose mode to see what errors are generated. Run the following to do that.

Code: Select all

/usr/local/nagios/libexec/check_ilo2_health.pl -H s930e0130.rwe.com -u testusr -p testusr123 -t 60 -v

Re: Issue in monitoring Hardware health using check_ilo2_hea

Posted: Wed Aug 16, 2017 7:43 am
by bsivavani
Please find requested information

Can you provide any information on the settings for the ILO module?Kindly let me know what settings require.

Is it setup to use SSL and if it enabled, what mode is it set to?
Kindly let me know how to check mode of SSL.

Is is an ILO3 or an ILO4 device?
We are using ILO4.

Plugin output in verbose mode
[root@s930l3301 tmp]# /usr/local/nagios/libexec/check_ilo2_health.pl -H s930e0130.rwe.com -u testusr -p testusr123 -t 60 -v
hostname is s930l3301
retry: 0
ILO2_HEALTH UNKNOWN - ERROR: No parseable output.
[root@s930l3301 tmp]#

Re: Issue in monitoring Hardware health using check_ilo2_hea

Posted: Wed Aug 16, 2017 1:07 pm
by tgriep
We do not have access to any hardware that supports the ILO module so you would have to contact the manufacturer for instructions for setting it up.

Re: Issue in monitoring Hardware health using check_ilo2_hea

Posted: Thu Aug 17, 2017 3:14 pm
by gwakem
If your server uses an ilo3 or ilo4, using the plugin without telling it you have a v3 or 4 will not work. Here is what is parsed out for my ilo3 and ilo4 interfaces:

Code: Select all

check_ilo2_health.pl -H $SERVER -u $USER_NAME -p $PASSWORD -t 30 -3 -g -d
Notice the -3 -g -d. the -3 tells the plugin this is an ilo3/4 device, while -g shows increased information and -d adds perfdata. If you don't need those, just try manually running the plugin with a -3.
You can play around with the options by invoking the plugin on the command line with the help flag:

Code: Select all

./check_ilo2_health.pl -h

Re: Issue in monitoring Hardware health using check_ilo2_hea

Posted: Thu Aug 17, 2017 4:46 pm
by tgriep
Thanks @gwakem for the help on this.

Re: Issue in monitoring Hardware health using check_ilo2_hea

Posted: Fri Aug 18, 2017 7:00 am
by bsivavani
Thank you for the response.

We are using ilo4, as suggested tried with below command

[root@s930l3301 tmp]# /usr/local/nagios/libexec/check_ilo2_health.pl -H s930e0130.rwe.com -u testusr -p testusr123 -t 30 -3 -g -d -v
hostname is s930l3301
retry: 0
sending ilo3
size 253
POST /ribcl HTTP/1.1
HOST: s930e0130.rwe.com
TE: chunked
Connection: Close
Content-length: 253

size 253
Head: HTTP/1.1 400 Bad Request
Head: Date: Fri, 18 Aug 2017 11:56:56 GMT
Head: Connection: close
Head: Content-Type: text; charset=plain
Head: X-Frame-Options: DENY
Head: Content-Length: 0
Head:
Use of uninitialized value $ln in length at /usr/local/nagios/libexec/check_ilo2_health.pl line 893.
read_chunked_reply: read a zero-length line. Continue...
ILO2_HEALTH UNKNOWN - ERROR: No parseable output.
[root@s930l3301 tmp]#

Still receiving the same error.
ILO2_HEALTH UNKNOWN - ERROR: No parseable output.

Re: Issue in monitoring Hardware health using check_ilo2_hea

Posted: Fri Aug 18, 2017 11:43 am
by tgriep
Can you access the ILO web interface?