Community discussions

 
chrisd13
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 68
Joined: Mon Feb 20, 2006 4:05 pm
Location: UK

Re: Dude and MT Switch port monitor

Fri Nov 05, 2010 6:23 pm

I used the following probe to check a port up/down state on my HP 2524 switch. I am assuming that the MT 250 will have the same OID for the port state as it is a standard OID, but I would check.

Probe:
Name: Port Up/Down Test
Type: Function
Agent: Default
Available: if(string_find(oid("1.3.6.1.2.1.2.2.1.8.14"),"up (1)")<0,1,-1)
Error: if(string_find(oid("1.3.6.1.2.1.2.2.1.8.14"),"down (2)")>0,"","Interface 14 Down")
Value: Leave empty if you dont want to graph it
Unit: Leave empty if not graphing.
The OID i am using is obtained from performing a SNMPWalk on the device and retreiving the following OID...
iso.org.dod.internet.mgmt.mib-2.interface.ifTable.ifEntry.ifOperStatus.<port.number>
replace <port.number> with the port you want to monitor.

"up (1)" and "down (2)" are how the two states of the port are reported in the SNMPWalk, this might not be the case on the MT 250 switch, you will need to check the OID value on your MT 250 switch with the SNMPWalk.

Once you have the correct OID and state string you can add them into the probe and then it should tell you the state of the port.

To get it to alert you by email you will need to setup a notification specifically for the probe we have created.

Create a new Notification and set it up accordingly...

Notification:
Name: Port up/down email Test
Type: Email
Server: SMTP server address (unless you already have a default one setup in the Dude)
To: portupdown@test.cc
Subject: can be left as is for testing
Body: Leave as is for testing
Now setup the notification for the probe. see below.
port_up_down.jpg
That is pretty much it.. test it on a port you can pull up and down regularly to make sure the probe and notification are correct.

Hope that helps.
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: No registered users and 3 guests