Hi all,
I have an APC UPS in one of my sites, conected to a Mikrotik router. The main voltage i always between 180 and 210 Volts, so I want to monitor the voltage constantly and to log it somewhere. Do you have any idea how this can be done, because I didn’t see useful in tte ROS manual?
P.S. The UPS is APC SMART-UPS 2200, and the ROS is 2.9
Hmm…my 2.8 script works fine for alerting on mains failure, Harvsky. It’s basically straight out of the manual:
wait-on-battery
/system ups monitor once do {
:if ($on-battery) do {
/system scheduler set ups-monitor on-event=wait-off-battery
/tool e-mail send subject=([/system identity get name] . " mains power FAILED at " . [/system clock get time] . "GMT on " . [/system clock get date]) to=“me@mydomain.co.uk”
}
}
wait-off-battery
/system ups monitor once do {
:if (!$on-battery) do {
/system scheduler set ups-monitor on-event=wait-on-battery
/tool e-mail send subject=([/system identity get name] . " mains power RESTORED at " . [/system clock get time] . "GMT on " . [/system clock get date]) to=“me@mydomain.co.uk”
}
}
I’d love to see a list of these apparently system wide global variables like $on-battery, $line-voltage etc. I’d also love to see the UPS functionality included in SNMP - or maybe this is already the case in 2.9???