Issue in monitoring Hardware health using check_ilo2_health

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Issue in monitoring Hardware health using check_ilo2_health

Post 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.
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: Issue in monitoring Hardware health using check_ilo2_hea

Post by tacolover101 »

take a look at an old thread that runs through the same issue - https://support.nagios.com/forum/viewto ... =7&t=10878
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: Issue in monitoring Hardware health using check_ilo2_hea

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

Re: Issue in monitoring Hardware health using check_ilo2_hea

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: Issue in monitoring Hardware health using check_ilo2_hea

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

Re: Issue in monitoring Hardware health using check_ilo2_hea

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
gwakem
Posts: 238
Joined: Mon Jan 23, 2012 2:02 pm
Location: Asheville, NC

Re: Issue in monitoring Hardware health using check_ilo2_hea

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

Re: Issue in monitoring Hardware health using check_ilo2_hea

Post by tgriep »

Thanks @gwakem for the help on this.
Be sure to check out our Knowledgebase for helpful articles and solutions!
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: Issue in monitoring Hardware health using check_ilo2_hea

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

Re: Issue in monitoring Hardware health using check_ilo2_hea

Post by tgriep »

Can you access the ILO web interface?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked