check_openmanage: Use of uninitialized value in sprintf at /usr/lib64/nagios/plugins/check_openmanage

Max Williams Max.Williams at mflow.com
Mon Jun 28 17:17:34 CEST 2010


Excellent, sorted, everything reports as OK now. 
Thanks so much Trond, amazing support and an amazingly useful plugin!
Best Regards,
Max Williams

-----Original Message-----
From: Trond Hasle Amundsen [mailto:t.h.amundsen at usit.uio.no] 
Sent: 28 June 2010 15:21
To: Nagios Users List
Subject: Re: [Nagios-users] check_openmanage: Use of uninitialized value in sprintf at /usr/lib64/nagios/plugins/check_openmanage

Max Williams <Max.Williams at mflow.com> writes:

> Here is the output, the inactive temperature probe is sorted but the
> missing EMM still produces an alert:
>
>       OK |  1:1:0:1 | Temperature Probe 1 in enclosure 3 [MD1000] is Inactive

This one works as expected :)

>       OK |  1:1:0:2 | Temperature Probe 2 in enclosure 3 [MD1000]:  C ( max)
>       OK |  1:1:0:3 | Temperature Probe 3 in enclosure 3 [MD1000]:  C ( max)

Hmm... something strange going on here. I wonder why this happens, in
the SNMP output you attached previously the values are there. Anyway,
I've added some extra checking in the code to make it report better if
the reading is unavailable for some reason. It should now report simply:

  Temperature Probe 0 in enclosure 2:0:0 [MD1000] is Ready

if the temp reading is not an integer and OMSA reports the status as OK.

> CRITICAL |  1:1:0:1 | EMM 1 in enclosure 3 [MD1000] needs attention: Not Installed

Ah.. I misread the SNMP output.. The status is "Unknown" when reported
by omreport, but "Other" when reported with SNMP. One little annoying
difference between the two.. The output should be:

  EMM 0 in enclosure 2:0:0 [MD1000] is Not Installed

with an OK state.

I've created a second test version:

  http://folk.uio.no/trondham/software/beta/check_openmanage

Please give this one a try and see if it performs better.

Cheers,
-- 
Trond H. Amundsen <t.h.amundsen at usit.uio.no>
Center for Information Technology Services, University of Oslo

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list