check_snmp to monitor isdn if on cisco?
Andreas Ericsson
ae at op5.se
Fri Jan 28 18:30:23 CET 2005
Schmitz, Carsten wrote:
> Subhendu, all,
>
> Thanks to all who have replied, the input has been really helpful.
>
> For the history books, I managed to get it to work. Using snmpwalk
> with numeric oid output I got the OIDs (what a neat trick, that'll
> save me lots of googling).
>
Some history book additions.
To 'neatify' it further in the interface-to-index translation;
snmpwalk -v 1 -c <community> -Onq <ip> .1.3.6.1.2.1.2.2.1.2 | cut -b22-
The digit is the interface index. The string is the interface description.
> Tried with check_ifoperstatus but didn't quite get the parameters
> right. Now I'm doing:
>
> ./check_snmp --oid=.1.3.6.1.2.1.2.2.1.8.29 -C community_string -H
> ip_address
>
> which checks interfaces.ifTable.ifEntry.ifOperStatus.29 (with 29
> being an ISDN interface).
>
> Returns 5, which means "dormant" according to Cisco, and that looks
> just like the piece of information I need.
>
Perhaps, but I doubt it will turn red if it goes up. Try
check_ifoperstatus with 29 as interface index number. I believe you can
specify what a particular status should mean using that plugin (perhaps
you'll need to use negate to make it do what you want.
> Thanks, Carsten
>
> -----Original Message----- From: Subhendu Ghosh
> [mailto:sghosh at sghosh.org] Sent: Wednesday, January 26, 2005 4:05 PM
> To: Schmitz, Carsten Cc: nagios-users at lists.sourceforge.net Subject:
> Re: [Nagios-users] check_snmp to monitor isdn if on cisco?
>
>
> On Wed, 26 Jan 2005, Schmitz, Carsten wrote:
>
>
>> Hi,
>>
>> Is anyone using Nagios to monitor the ISDN / SDSL ports on a Cisco
>> 2600 or 828, respectively?
>>
>> The network folks told me I should be able to send queries with
>> snmp. Did that before (I monitor Windows boxes with snmp which
>> works fine). But I can't get data from the device and I think maybe
>> I have the wrong "oid".
>>
>> I'm not an expert on snmp, I pieced together OIDs from
>>
>> ftp://ftp.cisco.com/pub/mibs/oid/CISCO-ISDN-MIB.oid and
>> http://carsten.familie-doh.de/mibtree/cisco-isdn.html
>>
>> and end up with something like this:
>>
>> /usr/local/nagios/libexec/check_snmp -H ip_address -C
>> community_string -o ".1.3.6.1.4.9.9.26.1.1.1.16" SNMP problem - No
>> data recieved from host CMD: /usr/bin/snmpget -t 1 -r 9 -m ALL -v 1
>> -c aegongs 212.29.172.2:161 .1.3.6.1.4.9.9.26.1.1.1.16
>>
>> Anyone done this before and could confirm, or supply me with a
>> valid OID?
>
>
> I haven't done anything with this particular MIB - but your OID is
> incomplete for check_snmp.
>
> the base oid should be .1.3.6.1.4.9.9.26.1.1.1.1.16 (note four 1s
> between 26 and 16)
>
> To the base oid you need to append the table index values namely: 1.
> demandNbrPhysIf (the ifIndex value of the D channel for the neighbor)
> 2. demandNbrId (a table sequence number)
>
>
> Also the base oid above - is for RowStatus and does not tell you
> anything about the line being up/down .
>
> The NeighborTable only stores call information.
>
> for the object descriptions...
> ftp://ftp.cisco.com/pub/mibs/v2/CISCO-ISDN-MIB.my
>
> What do you want to monitor for the isdn connections?
>
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
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