Error While Using check_ifstatus

Martin Fontanez jdmfontz at yahoo.com
Wed May 27 15:49:09 CEST 2009


Lei,

Thanks.  Here is the output:

[root at localhost init.d]# snmpwalk -v 2c -c public 127.0.0.1 1.3.6.1.2.1.2.2.1.8
IF-MIB::ifOperStatus = No Such Object available on this agent at this OID
[root at localhost init.d]#


Wondering if you got a link to a good net-snmp tutorial.

Martin



--- On Sat, 5/23/09, Lei Chen <cloved at gmail.com> wrote:

> From: Lei Chen <cloved at gmail.com>
> Subject: Re: [Nagios-users] Error While Using check_ifstatus
> To: "Martin Fontanez" <jdmfontz at yahoo.com>
> Cc: nagios-users at lists.sourceforge.net, "Assaf Flatto" <assaf.flatto at ssp-intl.com>
> Date: Saturday, May 23, 2009, 1:48 AM
> 2009/5/22 Martin Fontanez <jdmfontz at yahoo.com>:
> > Thanks Assaf,
> >
> > It looks like I have version 2
> >
> > [root at localhost snmp]# snmpwalk -v3 -c public
> localhost
> > snmpwalk: No securityName specified
> > [root at localhost snmp]#
> >
> > [root at localhost snmp]# snmpwalk -v2c -c public
> localhost system
> > SNMPv2-MIB::sysDescr.0 = STRING: Linux
> localhost.localdomain
> > 2.6.11-121.1.1.el5 #1 SMP Mon Jan 26 13:59:00 EST 2009
> i686
> > SNMPv2-MIB::sysObjectID.0 = OID:
> NET-SNMP-MIB::netSnmpAgentOIDs.10
> > DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks:
> (15121490) 1 day,
> > 18:00:14.90
> > SNMPv2-MIB::sysContact.0 = STRING: Root
> <root at localhost> (configure
> > /etc/snmp/snmp.local.conf)
> > SNMPv2-MIB::sysName.0 = STRING: localhost.localdomain
> > SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit
> /etc/snmp/snmpd.conf)
> > SNMPv2-MIB::sysORLastChange.0 = Timeticks: (65)
> 0:00:00.65
> > SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB
> > SNMPv2-MIB::sysORID.2 = OID: TCP-MIB::tcpMIB
> > SNMPv2-MIB::sysORID.3 = OID: IP-MIB::ip
> > SNMPv2-MIB::sysORID.4 = OID: UDP-MIB::udpMIB
> > SNMPv2-MIB::sysORID.5 = OID:
> SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
> > SNMPv2-MIB::sysORID.6 = OID:
> SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
> > SNMPv2-MIB::sysORID.7 = OID:
> SNMP-MPD-MIB::snmpMPDCompliance
> > SNMPv2-MIB::sysORID.8 = OID:
> SNMP-USER-BASED-SM-MIB::usmMIBCompliance
> > SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module for
> SNMPv2 entities
> > SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for
> managing TCP
> > implementations
> > SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for
> managing IP and ICMP
> > implementations
> > SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for
> managing UDP
> > implementations
> > SNMPv2-MIB::sysORDescr.5 = STRING: View-based Access
> Control Model for SNMP.
> > SNMPv2-MIB::sysORDescr.6 = STRING: The SNMP Management
> Architecture MIB.
> > SNMPv2-MIB::sysORDescr.7 = STRING: The MIB for Message
> Processing and
> > Dispatching.
> > SNMPv2-MIB::sysORDescr.8 = STRING: The management
> information definitions
> > for the SNMP User-based Security Model.
> > SNMPv2-MIB::sysORUpTime.1 = Timeticks: (64)
> 0:00:00.64
> > SNMPv2-MIB::sysORUpTime.2 = Timeticks: (64)
> 0:00:00.64
> > SNMPv2-MIB::sysORUpTime.3 = Timeticks: (64)
> 0:00:00.64
> > SNMPv2-MIB::sysORUpTime.4 = Timeticks: (64)
> 0:00:00.64
> > SNMPv2-MIB::sysORUpTime.5 = Timeticks: (64)
> 0:00:00.64
> > SNMPv2-MIB::sysORUpTime.6 = Timeticks: (65)
> 0:00:00.65
> > SNMPv2-MIB::sysORUpTime.7 = Timeticks: (65)
> 0:00:00.65
> > SNMPv2-MIB::sysORUpTime.8 = Timeticks: (65)
> 0:00:00.65
> > [root at localhost snmp]#
> >
> > I tried check_ifstatus with -v 2  option and
> getting same message:
> >
> > [root at localhost etc]#
> /usr/local/nagios/libexec/check_ifstatus -H localhost
> > -v 2 -C public -I -u E1 6/0
> > CRITICAL: Requested table is empty or does not exist
> for
> > 1.3.6.1.2.1.2.2.1.8  with snmp version 2
> > I'll guess the message that "requested table is empty
> or does not exist for
> > 1.3.6.1.2.1.2.2.1.8"  means that there is
> something that needs configuring
> > in snmp (???).  I am very green with snmp.
> >
> Try this to verify the test the  IF-MIB::IfOperStatus
> OID.
> snmpwalk -v 2c -c public 127.0.0.1 1.3.6.1.2.1.2.2.1.8
> > --- On Fri, 5/22/09, Assaf Flatto <assaf.flatto at ssp-intl.com>
> wrote:
> >
> > From: Assaf Flatto <assaf.flatto at ssp-intl.com>
> > Subject: Re: [Nagios-users] Error While Using
> check_ifstatus
> > To: nagios-users at lists.sourceforge.net
> > Date: Friday, May 22, 2009, 5:57 AM
> >
> >
> >
> > On Thursday 21 May 2009 14:31:26 Martin Fontanez
> wrote:
> >> I am new to Nagios.  Trying to get link state
> info (up/down) on NIC cards
> >> on my box (realizing I could use check_ping but
> ICMP is blocked).  I am
> >> using el5 and mii-tools/mii-diag does not work
> since my kernel is 2.6 or
> >> >.
> >>
> >> I setup check-ifstatus but I am getting this
> error:
> >>
> >> CRITICAL: Requested table is empty or does not
> exist for
> >> 1.3.6.1.2.1.2.2.1.8  with snmp version 1
> >>
> >> Wondering if anyone knows of a workaround.
> >
> > Are you sure the device you are quering is using SNMP
> v1 ?
> > most devices come with SNMP2 or even 3 , check the
> setting of you snmp query
> > and the snmp setting on
> > the device to see what version you need to use to
> check..
> >
> > --
> > Assaf Flatto
> > SSP Ops Team
> > Linux System Administrator
> > 169 Euston Road, London, NW1 2AE
> >
> > Along with a few colleagues I am doing The Three Peaks
> Challenge again
> > this year to raise money for The Railway Children.
> > Please sponsor me by making a donation online, simply
> click on the link
> > below and give via your switch/credit card. Thank
> you.
> > http://www.justgiving.com/londonnorththreepeaks
> >
> >
> >
> >
> > IMPORTANT . this email and the information in it may
> be confidential,
> > legally
> > privileged and/or protected by law. It is intended
> solely for the use of the
> > person to whom it is addressed. If you are not the
> intended recipient,
> > please
> > notify the sender immediately and do not disclose the
> contents to any other
> > person, use it for any purpose, or store or copy the
> information in any
> > medium.
> > Please also delete all copies of this email and any
> attachments from your
> > system.
> >
> > We cannot guarantee the security or confidentiality of
> email communications.
> > We
> > do not accept any liability for losses or damages that
> you may suffer as a
> > result of your receipt of this email including but not
> limited to computer
> > service or system failure, access delays or
> interruption, data non-delivery
> > or
> > mis-delivery, computer viruses or other harmful
> components.
> >
> > Copyright in this email and any attachments belong to
> Select Service Partner
> > UK
> > Limited. Should you communicate with anyone at Select
> Service Partner UK
> > Limited by
> > email, you consent to us monitoring and reading any
> such correspondence.
> >
> > Nothing in this email shall be taken or read as
> suggesting, proposing or
> > relating to any agreement concerted practice or other
> practice that could
> > infringe UK or EC competition legislation.
> >
> > Select Service Partner UK Limited is a company
> registered in England and
> > Wales
> > (company number 05687183) whose registered office is
> at 1 The Heights,
> > Brooklands, Weybridge. Surrey. KT13 0NY
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Register Now for Creativity and Technology (CaT), June
> 3rd, NYC. CaT
> > is a gathering of tech-side developers & brand
> creativity professionals.
> > Meet
> > the minds behind Google Creative Lab, Visual
> Complexity, Processing, &
> > iPhoneDevCamp asthey present alongside digital
> heavyweights like Barbarian
> > Group, R/GA, & Big Spaceship. http://www.creativitycat.com
> > _______________________________________________
> > 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
> >
> >
> >
> ------------------------------------------------------------------------------
> > Register Now for Creativity and Technology (CaT), June
> 3rd, NYC. CaT
> > is a gathering of tech-side developers & brand
> creativity professionals.
> > Meet
> > the minds behind Google Creative Lab, Visual
> Complexity, Processing, &
> > iPhoneDevCamp asthey present alongside digital
> heavyweights like Barbarian
> > Group, R/GA, & Big Spaceship. http://www.creativitycat.com
> > _______________________________________________
> > 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
> >
> 
> 
> 
> -- 
> Thanks,
> Chenlei & 石头++
> MSN Messenger: chnl at 163.com
> 


      

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
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