Netwatch probe.
Questions and Suggestions for The Dude Network Monitor

User avatar
CyB3RMX
Frequent Visitor
Frequent Visitor
Posts: 77
Joined: Thu May 26, 2011 7:08 am
Reputation: 0
First RouterOS version: V2

Netwatch probe.

by CyB3RMX » Wed Oct 29, 2014 8:25 pm

Hello,

Im don't consider myself as an advanced Dude User, but i have made some test without success. I hope you guys can help me:

I have a router connected to 8 DSL services, I'am using netwatch and a route to a specific host so i can ping over each DSL, and email ifdown to check if they are up or down.

Works fine, but i would like to monitor this Netwatch status in the dude, So if its up goes green and if it goes down, in red and play that gong! hehe..

Thanks for your help.

JB.
Trying to route the world...
Certified: MTCNA - MTCWE
Please give some KARMA if you think i helped you.

lebowski
Forum Guru
Forum Guru
Posts: 1492
Joined: Wed Aug 27, 2008 5:17 pm
Reputation: 6

Re: Netwatch probe.

by lebowski » Thu Oct 30, 2014 8:11 pm

Is netwatch an executable? Is it running on a windows computer? If so enable snmp, make a function, make a probe.
Put the correct name of the exe in the function

Function;
Name: find_netwatch
if(array_size(oid_column("1.3.6.1.2.1.25.4.2.1.2",10,0)), array_find(oid_column("1.3.6.1.2.1.25.4.2.1.2",10,0),"netwatch.exe"),"False")

Probe;
Name: Netwatch
Available: find_netwatch()<>"False"
Error:if(find_netwatch()<>"False",if(find_netwatch()<>-1, "", "Warning: Netwatch is not running"), "Failed to read running programs is the computer down?")

HTH,
Lebowski

User avatar
CyB3RMX
Frequent Visitor
Frequent Visitor
Posts: 77
Joined: Thu May 26, 2011 7:08 am
Reputation: 0
First RouterOS version: V2

Re: Netwatch probe.

by CyB3RMX » Thu Apr 30, 2015 8:02 pm

Sorry for the late reply,
No, im using the /Tool -> Netwatch option on the router.

Im using several WAN on the router, so i need to be able to see if one of them fails, right now i made a script that send me an Email and alert me, but i think its more practical to see it on the Dude, i have a Dedicated server with a TV pluged on it to see all my network status,and i have everything but this.

Hope i made my self clear, sorry about my english.

Have a great day and Thanks for your support.:)

JB.
Trying to route the world...
Certified: MTCNA - MTCWE
Please give some KARMA if you think i helped you.

jarda
Forum Guru
Forum Guru
Posts: 2484
Joined: Mon Oct 22, 2012 4:46 pm
Reputation: 52
First RouterOS version: 3.30

by jarda » Fri May 01, 2015 4:19 am

Just put there a device with ip you are using as netwatch check.

User avatar
CyB3RMX
Frequent Visitor
Frequent Visitor
Posts: 77
Joined: Thu May 26, 2011 7:08 am
Reputation: 0
First RouterOS version: V2

Re: Netwatch probe.

by CyB3RMX » Wed May 13, 2015 7:35 am

That wont do the job..

I have it this way...

example.jpg
example.jpg (21.39 KiB) Viewed 283 times


The router its a RB493AH and there i have enabled Netwatch (/system netwatch), i do even have a script that sends me an email when one of the WAN are flapping or goes down or back on and change the mangle rules to avoid interruptions, but what i need to make its a probe in the Dude to check the status of the Netwatch on the ros router and let know like the rest of the devices if its up or down.
Making it the way you suggest will only tell me if the vDSL modem its up or no, and in 95% of the scenarios when the link goes down, its not in the LAN side of the vDSL, its on the WAN side, so with what i want to do i will be able to see if the vDSL modem has internet on it.

Thanks :)

JB
Trying to route the world...
Certified: MTCNA - MTCWE
Please give some KARMA if you think i helped you.

lebowski
Forum Guru
Forum Guru
Posts: 1492
Joined: Wed Aug 27, 2008 5:17 pm
Reputation: 6

Re: Netwatch probe.

by lebowski » Thu May 14, 2015 5:34 pm

I didn't understand the first post, sorry.

If your router should populate an SNMP value. You could snmpwalk the dude and find the status then build a probe.

Who is online

Users browsing this forum: No registered users and 5 guests

It is currently Sun May 24, 2015 6:08 pm