Community discussions

MikroTik App
 
areearee
just joined
Topic Author
Posts: 17
Joined: Wed Aug 15, 2007 11:08 am

Send Email if Link Down

Wed Feb 20, 2008 1:43 pm

Dear Friends I want seting in my dude server if any service down send me email to my email address.
 
User avatar
jordantrx
Long time Member
Long time Member
Posts: 505
Joined: Tue Oct 23, 2007 8:58 pm
Location: WAY upstate NY

Re: Send Email if Link Down

Wed Feb 20, 2008 4:39 pm

Dear Friends I want seting in my dude server if any service down send me email to my email address.
Setup e-mail Notifications in the Notifications area of the DUDE< Then give the IP address of your SMTP server (if your running one) if not get one running, then use the computer the smtp server is running on IP address. Then under notifications of your units you can set it to notifty you if Ping has gone down or not. and Many other servcies you wish to be e-mailed if a certian service goes down. good luck -Jordan
 
luzik
just joined
Posts: 13
Joined: Mon Feb 11, 2008 1:24 pm

Re: Send Email if Link Down

Thu Feb 21, 2008 9:35 am

Sorry but this is quite difficult in The Dude :(
First you have to add such probe (type function)
if(oid_raw(concetenate("1.3.6.1.2.1.2.2.1.8.",array_element(oid_column("1.3.6.1.2.1.2.2.1.1"),array_find(oid_column("1.3.6.1.2.1.2.2.1.2"),"GigabitEthernet3/6"))))=1, "", "Interface GigabitEthernet3/6 down")
so if you want monitor links on 48 port switch this is quite easy beacuse you just have to add 48 such probes :/.
Just change GigabitEthernet3/6 with snmp name of your interface.

passing parameters to function in such case can save lot of work but this is not working now :(
 
areearee
just joined
Topic Author
Posts: 17
Joined: Wed Aug 15, 2007 11:08 am

Re: Send Email if Link Down

Fri Feb 22, 2008 11:51 am

thanks dear can say me step by step with detail or print screens.

Who is online

Users browsing this forum: No registered users and 13 guests