Page 1 of 1

Monitoring with nagios core

Posted: Thu Apr 17, 2014 4:44 am
by kimjaggi
Hello,
I want to monitor different interfaces on DELL PC5548 stack switch, for example te1/0/1 and te 2/0/1. I did an snmpwalk to get the OIDs and then configure them in switch,cfg under services. It shows me OK status. Everything worked out but when I shutdown the interface nagios still showed the status OK which is totally because I pluged the cable out. Could anybody help me and guide me about the right steps to configure it. Below is the example of how I configured the service

define service{
use generic-service ; Inherit values from a template
host_name Switch03
service_description Link Status te 2/0/1
check_command check_snmp!-o .1.3.6.1.2.1.2.2.1.2.53 -C xyz
}

Thanks in advance!

Mod Edit: Please do not post unrelated questions in other people's threads. I have split your question into a new topic.

Re: Monitoring with nagios core

Posted: Thu Apr 17, 2014 12:37 pm
by abrist
The oid 1.3.6.1.2.1.2.2.1.2.53 is part of the parent: 1.3.6.1.2.1.2.2.1.2 which is an ifDesrc oid - essentially just a description of the interface.

The oid parent you want to use for up/down is 1.3.6.1.2.1.2.2.1.8, and for the interface in question: 1.3.6.1.2.1.2.2.1.8.53

ifDescr: http://www.alvestrand.no/objectid/1.3.6 ... 2.1.2.html
ifOperStatus: http://www.alvestrand.no/objectid/1.3.6 ... 2.1.8.html

Re: Monitoring with nagios core

Posted: Fri Apr 25, 2014 4:52 am
by kimjaggi
Hi,

Thanks for the reply. I made the changes and it is working now.

I am new to nagios forum so was unable to create new discussion, will be careful in future

Re: Monitoring with nagios core

Posted: Fri Apr 25, 2014 6:21 am
by kimjaggi
Thanks its working

Re: Monitoring with nagios core

Posted: Fri Apr 25, 2014 9:27 am
by tmcdonald
kimjaggi wrote:I am new to nagios forum so was unable to create new discussion, will be careful in future
As a new user the first two posts need to be approved by a moderator. You should be fine moving forward.

I'll be closing this thread now, but feel free to open another if you need anything in the future!