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..
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
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?”)
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.
I have it this way…
example.jpg
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.
Monitor some external IP to see if everything is working OK [ I guess that I can create that by using netwatch]
If I can’t ping, send some kind of snmp trap to the dude server,so I can know that is a problem on that router.
That is because I’m used to work with only ping probe, but sometimes I can ping the router but the router has no connectivity to the external internet…
The dude doesn’t handle snmp traps. Is it a static route on the router or are you using a routing protocol? If you are using a routing protocol you might be able to determine the gateway of last resort or the next hop address and if it changes you could send an alert. I was working on a slightly different thing that would let me know when the learned default route changed but it is very early in it’s design. it is cisco and eigrp…