check_openmanage and net-snmp v3

Verhaeghe, Koen Koen.Verhaeghe at meucci-solutions.com
Fri Feb 12 17:02:42 CET 2010


Hi Trond,

The script is working, at least, it does not give any errors anymore.
I even get "Physical Disk 0:1 [Ata WDC WD800JD-75MSA3, 0GB] on ctrl 0
needs attention: Failure Predicted" as expected. I was expecting also an
errormessage from the Virtual disks, as they are degraded, but that's
not there.

Moreover, I know some of our servers have problems with power supplies
or memory, so I changed a section in the below mentioned script like you
did for the disks and others, just to test:

	#my $result = $snmp_session->get_entries(-columns => [keys
%ps_oid]);
	
########################################################################
##
	# SNMPv3 test
	
########################################################################
##
	my $result = q{};
	if ($opt{protocol} == 3) {
	    my $powerDeviceTable = '1.3.6.1.4.1.674.10892.1.600.12.1';
	    $result = $snmp_session->get_table(-baseoid =>
$powerDeviceTable);
	}
	else {
	    $result = $snmp_session->get_entries(-columns => [keys
%ps_oid]);
	}
	
########################################################################
##
	
########################################################################
##

And now I do get the expected error:
"Power Supply 1 [AC] needs attention: Presence detected, Failure
detected, AC lost"

I think it is safe to say that, when using net-snmp v3, the get_entries
method is not giving the expected result.

Maybe other people have experience with that.

Many thanks for your help.

Regards,
Koen



-----Original Message-----
From: Trond Hasle Amundsen [mailto:t.h.amundsen at usit.uio.no] 
Sent: 2010-02-12 12:27
To: Verhaeghe, Koen
Cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] check_openmanage and net-snmp v3

"Verhaeghe, Koen" <Koen.Verhaeghe at meucci-solutions.com> writes:

> Thanks for your reply and the new script.
> These are the results:
>
> With windows SNMP (v2) it works:

Yep, that was expected :)

> With net-snmp v3 (version 5.4.2.1) on the same server, diabling the 
> windows snmp, I get:
> ./check_openmanagetest -H xx.xx.xx.xx -P 3 --authprotocol md5 -U 
> xxxxxx --authpassword xxxxxxx --privpassword xxxxxx --privprotocol des

> -p multiline  -t 120 -o 3 -b ctrl_fw=all/ctrl_driver=all/ctrl_stdr=all
> SNMP ERROR [processors]: Received genError(5) error-status at 
> error-index 3.

Hmm.. was this on one of the servers that previously has problems
fetching the cooling OIDs?

I believe it would be better to make this work with the standard Windows
SNMP service, which is what most people would use. Where the results any
different without net-snmp?

> This normally indicates a too low version of OMSA, but I am using
6.2.0.

With SNMPv2 on Windows, that usually is the case, yes.

I have a new test version for you:

  http://folk.uio.no/trondham/tmp/check_openmanage-snmpv3test2

This version uses get_table() for fetching OIDs for CPUs and physical
drives as well as cooling devices.

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

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
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