Variables in Alerts & Automation

I have set up an alert to automatically trigger an RMS email to report that the device has gone from offline to online. In that email message I would like to display:

SYSTEM is back online from 2025-01-29 17:38:30 (UTC), ROUTER has been up for %router_uptime%, MOBILE CONNECTION has been up for %connection_uptime%

As you can see, the first variable works well (time stamp when offline->online), but the two other variables don’t work. The message shows what I’m trying to achieve: when the device comes back online I’d like to know how long it has been turned on (was it offline because of power?) and for how long its connection has been up (was it offline because of lost connection?). The other two variables are not mentioned in the popup tips in Alerts & Automation under Status Change, but they are declared under other events. Is there any way to use those variables in a Status Change event?

Hello,

Thank you for reaching out and bringing this suggestion to our attention.

I have forwarded this suggestion to our R&D team for investigation and research on potential implementation in the future. I will keep you updated as soon as I receive any updates from them.

We appreciate your patience and understanding.

Best regards,

Hello,

Our R&D confirmed that the addition of router and connection uptime variables to the Alerts & Automation status change group is planned for a future implementation. However, we do not have a precise or approximate timeline for its release at this time.

We appreciate your patience and understanding.

Kind regards,

Very nice, thank you. Please let me know when it is done so I can update my alerts.

1 Like

Many thanks for your help in this. While I look forward to this update, I am meanwhile using the online/offline status change as-is to monitor the state of my system. However, often the system goes offline for just a minute or two, which then triggers two alerts (online->offline + shortly afterwards offline->online). Can this alert parameter be updated to include a timer, ie trigger an event after X minutes of status change if the status hasn’t changed back, or any other such method? I am not interested in brief outages but only if my system goes “really” offline. The “cool down” and “delay” parameters can’t be used to this effect.

Hi there,

For your requirement to trigger an alert only after the device has been offline/online for a certain period (e.g., 5 minutes), you can try the following workaround:

  • Set Delay to 300 sec.;
  • Set Delay repetitions to 4.

With this setup, the system will check the device status every minute. If it remains offline for at least 5 minutes, the alert will be triggered. However, if the device comes back online before the 5 minute mark, the counter resets, and no alert is sent. If the device stays offline, the alert will repeat every 5 minutes.

Best regards,

Hi there - many thanks for the suggestion, which I have implemented. I am not 100% sure, however, that it works as intended. If I read the tool tip explanation correctly, multiple successes have to trigger, in our case 4. But this is a change event, ie the devices goes from online status to offline status. Once it has done that once, if it remains offline it will not trigger the change of going from online to offline again? So the “Delay repetition” of 4 will not be satisfied if the device remains offline?