#Mikrotik Ping more than 200ms to send mail
#https://ros.ac
#By:Ali
#From:China
:local Themes "Monitor IP delay to alarm threshold"
#Set the monitored IP address
:local addre 192.168.88.1;
#Set the delay
:local ms 200;
:local avgRtt;
/tool flood-ping $addre count=10 do={
:if ($sent = 10) do={
:set avgRtt $"avg-rtt"
}}
:if ($avgRtt >= $ms) do={
#Send mail
/tool e-mail send server=<Server IP> port=25 user=<user> password=<pass> to=to@mail.com from=from@mail.com subject=$Themes body=("Monitoring IP:$addre\ndelay:$avgRtt ms")
:log err "Message has been sent";
}
I have updated itThanks all for reply. Just tell me, maybe here needs a space:
can you just tell me one thing. Server IP for email. What should I put here? If i want to send to gmail, i need to put gmail SMTP wan ip?I have updated itThanks all for reply. Just tell me, maybe here needs a space:
#Mikrotik Ping more than 200ms to send mailcan you just tell me one thing. Server IP for email. What should I put here? If i want to send to gmail, i need to put gmail SMTP wan ip?I have updated itThanks all for reply. Just tell me, maybe here needs a space:to=to@mail.comfrom=from@mail.com
Thanks for it.#Mikrotik Ping more than 200ms to send mailcan you just tell me one thing. Server IP for email. What should I put here? If i want to send to gmail, i need to put gmail SMTP wan ip?I have updated itThanks all for reply. Just tell me, maybe here needs a space:
#https://ros.ac
#By:Ali
#From:China
:local Themes "Monitor IP delay to alarm threshold"
#Set the monitored IP address
:local addre 192.168.88.1;
#Parse the IP corresponding to the smtp mail server
:local smtps [:resolve smtp.gmail.com]
#Set the delay
:local ms 200;
:local avgRtt;
/tool flood-ping $addre count=10 do={
:if ($sent = 10) do={
:set avgRtt $"avg-rtt"
}}
:if ($avgRtt >= $ms) do={
#Send mail
/tool e-mail send server=$smtp port=25 user=<user> password=<pass> to=to@mail.com from=from@mail.com subject=$Themes body=("Monitoring IP:$addre\ndelay:$avgRtt ms")
:log err "Message has been sent";
}
yes, you can use it. for example i use it to send e-mail for warnings and not very critical events. and most important are also send to telegram.Can you just tell me about Dude. Does it possible to get an alert for maybe ping to create alarms? Just ask because of much queries to router...
i only want to ping internet and to inform me when ping is big. I dont find that option, only when ping is lost. Any form of informing me will be ok...But in probe I cant find that optionyes, you can use it. for example i use it to send e-mail for warnings and not very critical events. and most important are also send to telegram.Can you just tell me about Dude. Does it possible to get an alert for maybe ping to create alarms? Just ask because of much queries to router...
but if you want to have a message when 200+ms then you have to make a probe for that
also you should remember that you will monitor "ping" from dude to your device, not between 2 devices. if you wont to monitor between 2 devices it will be more difficult to create a probe and all will depend an what devices you have
there is information about these probe in dudei only want to ping internet and to inform me when ping is big. I dont find that option, only when ping is lost. Any form of informing me will be ok...But in probe I cant find that optionyes, you can use it. for example i use it to send e-mail for warnings and not very critical events. and most important are also send to telegram.Can you just tell me about Dude. Does it possible to get an alert for maybe ping to create alarms? Just ask because of much queries to router...
but if you want to have a message when 200+ms then you have to make a probe for that
also you should remember that you will monitor "ping" from dude to your device, not between 2 devices. if you wont to monitor between 2 devices it will be more difficult to create a probe and all will depend an what devices you have
does it good like this? I change FirstDevice to my ip address of router which i want to ping.there is information about these probe in dudei only want to ping internet and to inform me when ping is big. I dont find that option, only when ping is lost. Any form of informing me will be ok...But in probe I cant find that optionyes, you can use it. for example i use it to send e-mail for warnings and not very critical events. and most important are also send to telegram.Can you just tell me about Dude. Does it possible to get an alert for maybe ping to create alarms? Just ask because of much queries to router...
but if you want to have a message when 200+ms then you have to make a probe for that
also you should remember that you will monitor "ping" from dude to your device, not between 2 devices. if you wont to monitor between 2 devices it will be more difficult to create a probe and all will depend an what devices you have
viewtopic.php?t=35520
No! Device_property is function thar returns propertys of the device, firstaddress is subfunction - to get ip address.does it good like this? I change FirstDevice to my ip address of router which i want to ping.there is information about these probe in dudei only want to ping internet and to inform me when ping is big. I dont find that option, only when ping is lost. Any form of informing me will be ok...But in probe I cant find that optionyes, you can use it. for example i use it to send e-mail for warnings and not very critical events. and most important are also send to telegram.Can you just tell me about Dude. Does it possible to get an alert for maybe ping to create alarms? Just ask because of much queries to router...
but if you want to have a message when 200+ms then you have to make a probe for that
also you should remember that you will monitor "ping" from dude to your device, not between 2 devices. if you wont to monitor between 2 devices it will be more difficult to create a probe and all will depend an what devices you have
viewtopic.php?t=35520
dawww.jpg
problematics is next:No! Device_property is function thar returns propertys of the device, firstaddress is subfunction - to get ip address.does it good like this? I change FirstDevice to my ip address of router which i want to ping.there is information about these probe in dudei only want to ping internet and to inform me when ping is big. I dont find that option, only when ping is lost. Any form of informing me will be ok...But in probe I cant find that optionyes, you can use it. for example i use it to send e-mail for warnings and not very critical events. and most important are also send to telegram.
but if you want to have a message when 200+ms then you have to make a probe for that
also you should remember that you will monitor "ping" from dude to your device, not between 2 devices. if you wont to monitor between 2 devices it will be more difficult to create a probe and all will depend an what devices you have
viewtopic.php?t=35520
dawww.jpg
if you want to monitor rtt to your device - just add this probe without changes to this device
if you want to monitor not your device you have 2 variants - change probe (without device_property), the second variant is to add new device (for example 8.8.8. and to it probe from post without changes.
than you can change alerts to device at all or to particular probe
look there fo my example with "new device" 8.8.8.8 https://drive.google.com/open?id=0Bxq9Y ... zJ2X1A1ZjQ
look this: https://drive.google.com/open?id=0Bxq9Y ... XRXX2JCYkk
Is this that? How can I decide on which device this working? Or that work on all devices in Dude?
so it will inform me when ping is more than 200ms ? I first add service (i am having services ping and routeros managment), so just add this with probe and thats it?look this: https://drive.google.com/open?id=0Bxq9Y ... XRXX2JCYkk
Is this that? How can I decide on which device this working? Or that work on all devices in Dude?
i modified this probe to your needs.
add it to all devices from which you want to monitor ping to 8.8.8.8
actually, i don,t know what to do if this devices are not RB or there are no RB in this site, but if it is mikrotik - as agent (when you add service to monitor) select this RB or other RB in this site
it is so, because this probe will monitor ping rtt from "agent" to 8.8.8.8
if you want to monitor 200ms - change in probe 120 to 200 (i marked in screenshot)so it will inform me when ping is more than 200ms ? I first add service (i am having services ping and routeros managment), so just add this with probe and thats it?look this: https://drive.google.com/open?id=0Bxq9Y ... XRXX2JCYkk
Is this that? How can I decide on which device this working? Or that work on all devices in Dude?
i modified this probe to your needs.
add it to all devices from which you want to monitor ping to 8.8.8.8
actually, i don,t know what to do if this devices are not RB or there are no RB in this site, but if it is mikrotik - as agent (when you add service to monitor) select this RB or other RB in this site
it is so, because this probe will monitor ping rtt from "agent" to 8.8.8.8
i did it, but in services when i was add service it give me parse failed.if you want to monitor 200ms - change in probe 120 to 200 (i marked in screenshot)so it will inform me when ping is more than 200ms ? I first add service (i am having services ping and routeros managment), so just add this with probe and thats it?look this: https://drive.google.com/open?id=0Bxq9Y ... XRXX2JCYkk
Is this that? How can I decide on which device this working? Or that work on all devices in Dude?
i modified this probe to your needs.
add it to all devices from which you want to monitor ping to 8.8.8.8
actually, i don,t know what to do if this devices are not RB or there are no RB in this site, but if it is mikrotik - as agent (when you add service to monitor) select this RB or other RB in this site
it is so, because this probe will monitor ping rtt from "agent" to 8.8.8.8
than add this probe as service to your device
set notifications to this device or to this particular service
for testing you can change rtt to 10ms for example - you will see if you will get notification
check - you deleted coma after 15i did it, but in services when i was add service it give me parse failed.if you want to monitor 200ms - change in probe 120 to 200 (i marked in screenshot)so it will inform me when ping is more than 200ms ? I first add service (i am having services ping and routeros managment), so just add this with probe and thats it?look this: https://drive.google.com/open?id=0Bxq9Y ... XRXX2JCYkk
Is this that? How can I decide on which device this working? Or that work on all devices in Dude?
i modified this probe to your needs.
add it to all devices from which you want to monitor ping to 8.8.8.8
actually, i don,t know what to do if this devices are not RB or there are no RB in this site, but if it is mikrotik - as agent (when you add service to monitor) select this RB or other RB in this site
it is so, because this probe will monitor ping rtt from "agent" to 8.8.8.8
than add this probe as service to your device
set notifications to this device or to this particular service
for testing you can change rtt to 10ms for example - you will see if you will get notification
check - you deleted coma after 15i did it, but in services when i was add service it give me parse failed.if you want to monitor 200ms - change in probe 120 to 200 (i marked in screenshot)so it will inform me when ping is more than 200ms ? I first add service (i am having services ping and routeros managment), so just add this with probe and thats it?look this: https://drive.google.com/open?id=0Bxq9Y ... XRXX2JCYkk
i modified this probe to your needs.
add it to all devices from which you want to monitor ping to 8.8.8.8
actually, i don,t know what to do if this devices are not RB or there are no RB in this site, but if it is mikrotik - as agent (when you add service to monitor) select this RB or other RB in this site
it is so, because this probe will monitor ping rtt from "agent" to 8.8.8.8
than add this probe as service to your device
set notifications to this device or to this particular service
for testing you can change rtt to 10ms for example - you will see if you will get notification
in error line - you deleted ) at the end
sorry for that, but again parse error..
in error line - you deleted ) at the end
sorry for that, but again parse error..
glad to helpin error line - you deleted ) at the end
sorry for that, but again parse error..
i found it, and response with a bit delay notification popup. But it works. Thanks
i putted notification pop up, but when put a 10ms it give me pop up, but when 100ms there is no pop up.glad to helpin error line - you deleted ) at the end
sorry for that, but again parse error..
i found it, and response with a bit delay notification popup. But it works. Thanks
you can try to change "probe interval", "probe down count", "probe timeout" to have faster response
also notifications to telegram come faster than e-mail
i don't use "popup", so i can't help with iti putted notification pop up, but when put a 10ms it give me pop up, but when 100ms there is no pop up.glad to helpin error line - you deleted ) at the end
sorry for that, but again parse error..
i found it, and response with a bit delay notification popup. But it works. Thanks
you can try to change "probe interval", "probe down count", "probe timeout" to have faster response
also notifications to telegram come faster than e-mail
it wont me change color. Change when small to 10ms. When back to 100ms, there is no change. WHen i interval and timeout put to 1 than works, when back to 2, it didnt work. But when is set to 1, and internet is good, color is also orange, no change, but need to change to green again. It will back to green when set interval, timeout to 5.i don't use "popup", so i can't help with iti putted notification pop up, but when put a 10ms it give me pop up, but when 100ms there is no pop up.glad to helpin error line - you deleted ) at the end
i found it, and response with a bit delay notification popup. But it works. Thanks
you can try to change "probe interval", "probe down count", "probe timeout" to have faster response
also notifications to telegram come faster than e-mail
look what color is this service when you set 100ms - if it changes color from green when rtt is more then 100ms: all works good
i don't understand till the end what do you mean... what settings are made for your notifications? what state changes are marked to notify?it wont me change color. Change when small to 10ms. When back to 100ms, there is no change. WHen i interval and timeout put to 1 than works, when back to 2, it didnt work. But when is set to 1, and internet is good, color is also orange, no change, but need to change to green again. It will back to green when set interval, timeout to 5.i don't use "popup", so i can't help with iti putted notification pop up, but when put a 10ms it give me pop up, but when 100ms there is no pop up.glad to help
i found it, and response with a bit delay notification popup. But it works. Thanks
you can try to change "probe interval", "probe down count", "probe timeout" to have faster response
also notifications to telegram come faster than e-mail
look what color is this service when you set 100ms - if it changes color from green when rtt is more then 100ms: all works good
When I put to 1 all values, it showes me that it is down, orange color. But you can see that ping is good. After I change to 3, it will make green again And this is setup when ping is large than 100ms, nothing happendi don't understand till the end what do you mean... what settings are made for your notifications? what state changes are marked to notify?it wont me change color. Change when small to 10ms. When back to 100ms, there is no change. WHen i interval and timeout put to 1 than works, when back to 2, it didnt work. But when is set to 1, and internet is good, color is also orange, no change, but need to change to green again. It will back to green when set interval, timeout to 5.i don't use "popup", so i can't help with iti putted notification pop up, but when put a 10ms it give me pop up, but when 100ms there is no pop up.glad to help
you can try to change "probe interval", "probe down count", "probe timeout" to have faster response
also notifications to telegram come faster than e-mail
look what color is this service when you set 100ms - if it changes color from green when rtt is more then 100ms: all works good
This is a graph I cant see there is more than 100ms?very strange. on history tab of the service you can see graph with values. what values does it get (when ping is > 100ms)?
ok. and our "default" agent is the mikrotik from that site (it also will have >100ms to 8.8.8. or it is dude server in other site?This is a graphgra.pngvery strange. on history tab of the service you can see graph with values. what values does it get (when ping is > 100ms)?
I cant see there is more than 100ms?
I dont know what is default, i cant see where it is configured. But I tried to put there same as the Device, but again is the sameok. and our "default" agent is the mikrotik from that site (it also will have >100ms to 8.8.8. or it is dude server in other site?This is a graphgra.pngvery strange. on history tab of the service you can see graph with values. what values does it get (when ping is > 100ms)?
I cant see there is more than 100ms?
just tell is in this field:ok. and our "default" agent is the mikrotik from that site (it also will have >100ms to 8.8.8. or it is dude server in other site?This is a graphgra.pngvery strange. on history tab of the service you can see graph with values. what values does it get (when ping is > 100ms)?
I cant see there is more than 100ms?
Untitled.png
I dont know what is default, i cant see where it is configured. But I tried to put there same as the Device, but again is the same
in agent is only default.just tell is in this field:ok. and our "default" agent is the mikrotik from that site (it also will have >100ms to 8.8.8. or it is dude server in other site?This is a graphgra.pngvery strange. on history tab of the service you can see graph with values. what values does it get (when ping is > 100ms)?
I cant see there is more than 100ms?
Untitled.png
I dont know what is default, i cant see where it is configured. But I tried to put there same as the Device, but again is the same
1)open your device
2)on services tab find your service high_ping
3) open it and look what is in "agent"
the probe monitor ping rtt from device that is specified in field "agent" and 8.8.8.8
it means that you have only one ROS device in dude.
in agent is only default.
I can choose instead of default a device which is in the Device. But it is the same. to device. Problem is when server has higher ping. Dude server is on my main routerit means that you have only one ROS device in dude.
in agent is only default.
so, ping rtt from your dude server to 8.8.8.8 is also >100 when you test?
i can't test with values more than 20ms in my network. with all tests i had made it shows correct results.I can choose instead of default a device which is in the Device. But it is the same. to device. Problem is when server has higher ping.it means that you have only one ROS device in dude.
in agent is only default.
so, ping rtt from your dude server to 8.8.8.8 is also >100 when you test?
From me working with lower ms. I dont understand why dont working like this. Maybe intervales is not good?i can't test with values more than 20ms in my network. with all tests i had made it shows correct results.I can choose instead of default a device which is in the Device. But it is the same. to device. Problem is when server has higher ping.it means that you have only one ROS device in dude.
in agent is only default.
so, ping rtt from your dude server to 8.8.8.8 is also >100 when you test?
you didn't answer (or i didn't understand) does your dude server in the same network from witch ping to 8.8.8.8 is >100 ?
as i had written at the beginning - this probe can monitor only from RB device. no matter to what device you will add this probe - all depends what device is in agent field. as you had written - there are only 2 variants in your setup (default and your_device_name - i think it is dude server), so it shows ping rtt from your mikrotik to 8.8.8.8. if you need to monitor from particular device (not ROS) i can't help, it is possible, but i don't know exactly what probe to writeFrom me working with lower ms. I dont understand why dont working like this. Maybe intervales is not good?i can't test with values more than 20ms in my network. with all tests i had made it shows correct results.I can choose instead of default a device which is in the Device. But it is the same. to device. Problem is when server has higher ping.it means that you have only one ROS device in dude.
in agent is only default.
so, ping rtt from your dude server to 8.8.8.8 is also >100 when you test?
you didn't answer (or i didn't understand) does your dude server in the same network from witch ping to 8.8.8.8 is >100 ?
My dude server is on my main router from where any devices are connected and goes through.
as i had written at the beginning - this probe can monitor only from RB device. no matter to what device you will add this probe - all depends what device is in agent field. as you had written - there are only 2 variants in your setup (default and your_device_name - i think it is dude server), so it shows ping rtt from your mikrotik to 8.8.8.8. if you need to monitor from particular device (not ROS) i can't help, it is possible, but i don't know exactly what probe to writeFrom me working with lower ms. I dont understand why dont working like this. Maybe intervales is not good?i can't test with values more than 20ms in my network. with all tests i had made it shows correct results.I can choose instead of default a device which is in the Device. But it is the same. to device. Problem is when server has higher ping.it means that you have only one ROS device in dude.
so, ping rtt from your dude server to 8.8.8.8 is also >100 when you test?
you didn't answer (or i didn't understand) does your dude server in the same network from witch ping to 8.8.8.8 is >100 ?
My dude server is on my main router from where any devices are connected and goes through.
yes, you can use it. for example i use it to send e-mail for warnings and not very critical events. and most important are also send to telegram.Can you just tell me about Dude. Does it possible to get an alert for maybe ping to create alarms? Just ask because of much queries to router...
but if you want to have a message when 200+ms then you have to make a probe for that
also you should remember that you will monitor "ping" from dude to your device, not between 2 devices. if you wont to monitor between 2 devices it will be more difficult to create a probe and all will depend an what devices you have
that was at the beginning...look this: https://drive.google.com/open?id=0Bxq9Y ... XRXX2JCYkk
Is this that? How can I decide on which device this working? Or that work on all devices in Dude?
i modified this probe to your needs.
add it to all devices from which you want to monitor ping to 8.8.8.8
actually, i don,t know what to do if this devices are not RB or there are no RB in this site, but if it is mikrotik - as agent (when you add service to monitor) select this RB or other RB in this site
it is so, because this probe will monitor ping rtt from "agent" to 8.8.8.8
So, there is no help....yes, you can use it. for example i use it to send e-mail for warnings and not very critical events. and most important are also send to telegram.Can you just tell me about Dude. Does it possible to get an alert for maybe ping to create alarms? Just ask because of much queries to router...
but if you want to have a message when 200+ms then you have to make a probe for that
also you should remember that you will monitor "ping" from dude to your device, not between 2 devices. if you wont to monitor between 2 devices it will be more difficult to create a probe and all will depend an what devices you havethat was at the beginning...look this: https://drive.google.com/open?id=0Bxq9Y ... XRXX2JCYkk
Is this that? How can I decide on which device this working? Or that work on all devices in Dude?
i modified this probe to your needs.
add it to all devices from which you want to monitor ping to 8.8.8.8
actually, i don,t know what to do if this devices are not RB or there are no RB in this site, but if it is mikrotik - as agent (when you add service to monitor) select this RB or other RB in this site
it is so, because this probe will monitor ping rtt from "agent" to 8.8.8.8