Check_OpenManage error

Trond Hasle Amundsen t.h.amundsen at usit.uio.no
Fri Jan 14 17:09:30 CET 2011


"Jeffrey C. Veatch" <Jeffrey.Veatch at Knowyourrights.com> writes:

> To whom it may concern:
>  
> I have been trying to use check_openmanage in my Nagios configuration, but no
> matter what I do I get a list of Internal Errors at the end of the returned
> test.  The only way I can avoid it is by using the debug mode and only
> returning the first 80 lines.  This however does not warn me of any issues the
> server is having.
>  
> Here are some details.  The server running OMSA is an R710 running VMware ESX
> 4.0.0 Update 2.  OMSA version is 6.4.
> The nagios server is in a virtual machine running OpenSUSE 11.3.  The Nagios
> version is 3.2.3.
>  
> If there are other packages that you need to know the version, let me know. 
> The following is an example of the results that I get.  Oh, and in nagios this
> ends up being an unknown state for the check.
>  
> VLinux:/usr/local/nagios/libexec # ./check_openmanage -H 192.168.10.21
> OK - System: 'PowerEdge R710', SN: '5QTMZK1', 72 GB ram (18 dimms), 1 logical
> drives, 2 physical drives
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 588.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 655.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 708.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 764.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 869.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 952.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 1028.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 1103.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 1168.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 1325.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 1531.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 1549.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 1563.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 1577.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 1591.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 1613.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 1633.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 1653.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 1674.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 1702.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 1737.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 1846.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 1968.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 1973.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 1978.
> INTERNAL ERROR: Use of :locked is deprecated at /usr/lib/perl5/vendor_perl/
> 5.12.1/Net/SNMP.pm line 1983.
> Thanks for any help you can give me.

Hi Jeffrey,

Interesting error, never seen this one before :)

check_openmanage will print any perl warnings that occur during
execution as internal errors. This is done to avoid situations where the
plugin stops working due to perl incompatibilities etc. without your
knowledge, as Nagios completely ignores any plugin output to STDERR.

Which version of Net::SNMP are you using? Try 'rpm -q perl-Net-SNMP' to
find out. Perl 5.12 deprecated the "locked" attribute, and this was
fixed in Net::SNMP version 6.0.1, i.e. the latest release. The changelog
for Net::SNMP 6.0.1 has the following:

  - Removed all occurrences of the "locked" attribute that was
    deprecated in Perl 5.12.0.

I believe this to be a problem with your distribution using an
old/incompatible version of Net::SNMP. It seems that for perl 5.12.x you
need Net::SNMP 6.0.1 (or any later version).

PS. I found this in the OpenSUSE bugzilla:

  https://bugzilla.novell.com/show_bug.cgi?id=629698

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

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
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