I have a PRTG system to monitor.
And I want to put a Google DNS Ping reading from the MikroTik server directly on one of the channels in the graph inside the system.
PRTG usually supports several types of connection.
One is SNMP
And the other is via SSH
We started by adding a script to read Google DNS Ping
Then I added to it “:global PingResult $value” to save the result of the readers in “/system/script /environment”
Then I added “put” to it so that the result of the script is printed in the cli
The first attempt was to get the “oid” of “$PingResult” from inside “/system/script /environment print oid” and I did not find that it can be obtained
Here is the first question: Is it possible to get an “oid” resulting from a script or anything else that can be saved in the environment?
The second question: If there is no solution to get the “oid” from the “environment”, is there a place where the ping result can be saved and the “oid” can be obtained from?
The third question: Is it possible to write to a file and read it via snmp and get the oid of each file?
After the failure I tried via ssh but unfortunately prtg system can only deal with linux cli only and can not read or write from any other system. Is there any exception or mechanism to run ping command via mikrotik routerboard 5009 via linux base system?
note :
this for remote mikrotik rb5009 routerboard (there is 3 connecnted to prtg by vpn).
the local rb5009 routerboard i can take the ping dierctly from prtg because it connecnt to him.
but the other routerboard in other locations i need to something make ping on routerboard hem self then i must take read of ping to prtg.
