Monitoring Machine with Mikrotik
Picture from Administrator.org
Mikrotik has a tool to monitoring another machine and when the machine is down or up, we can running script. This tool is netwatch.
Netwatch monitors state of hosts on the network. It does so by sending ICMP pings to the list of specified IP addresses. For each entry in netwatch table you can specify IP address, ping interval and console scripts.
The main advantage of netwatch is it's ability to issue arbitrary console commands on host state changes. If we want use this tool, we must install the advanced-tools.
Example :
I had external proxy server, ip address is 192.168.100.2
In firewall nat I make this rule :
/ip firewall nat add chain=dstnat scr-address=!192.168.100.2 protocol=tcp dst-port=80 action=dst-nat to-addresses=192.168.100.2 comment="RedirectToProxy"
First make script on system script :
For Proxy is down :
/system script add name=ProxyDown source={:log info "Proxy DOWN"; /ip firewall nat set [find comment="RedirectToProxy"] disabled=yes}
For Proxy is up :
/system script add name=ProxyUp source={:log info "Proxy UP"; /ip firewall nat set [find comment="RedirectToProxy"] disabled=no}
Then we must set on tool netwatch :
/tool netwatch add host=192.168.100.2 interval=10m up-script=ProxyUp down-script=ProxyDown
It's done.
Now every 10 minutes, mikrotik will check proxy server status, if status is down, then mikrotik will run script ProxyDown and when the proxy server is up again, mikrotik will run script ProxyUp.
You can use this tool for another reason, like swicthing gateway or anything else.
Comments
Hih you hear me??
Can i help you?
Oh..
No mattyer
Mmm..
Doesnt matter
(attention, it is not the ad of the site - it is the ad of the Truth).
Use Latisse vs smartlash once a day. Application LATISSE more than once a day does not accelerate the growth of eyelashes and not increase the effect of the drug.
Do not trust him!
write a private message or ICQ 92195553
(Attention! It is not the ad of the site - it is the ad of the Truth).
It’s obvious that this story from the Old Testament was not about the ripeness
of divine fruits, but about the spiritual maturity of the man himself. Only a spiritually
mature mankind can learn the Truth – that is what the Bible conveys in a metaphorical manner.
The Knowledge of the Truth is a sign of spiritual maturity and that’s why only
the Knowledge of the Truth entitles one to the Symbol of the Truth, which is an
Ancient Contact Symbol that will prove to you that we are not alone in the Universe.
The path to the Truth can be found at: truenewworld.com
(Attention! It is not the ad of the site - it is the ad of the Truth).
Just got my first iphone and genuinely enjoy it, although that's a different story. The idea is, I would like to try out some of those iphone casino games and simply need ideas about where to start. I realize, I may easily Google and bing all sorts of things, nevertheless I prefer to get some ideas from you.
The question is, which type of iphone casino would you strongly recommend? I know you can find the ones that you will need to download for playing and the ones that can be used without the saving. So which ones could you recommend as a more rewarding solution? I would also appreciate it if you guys give your reasons and maybe examples.
Just in case it is important: my iphone is iphone 4s and I intend to play for real money.
Cheers.
Road to Truth starts here - apwey.net78.net
I need a rule i netwatch if it's possible to writ it down.
I want a router to check the ping on other router with a specific IP address like 192.169.28.7, if ping exceed 100ms or destination host unreachable, or time out for more then 5 min I want the router to reboot it self.
Give me URL please!
RSS feed for comments to this post.