Uptime rule - Maximum Uptime

Hi,

This is may be something very simple, i just can’t seem to work it out.

I have already configured the uptime rule - minimum uptime - critical if below = 10 mins which works fine and tells me when a server has rebooted and logs tickets to our ticketing system etc.

However i want to configure the maximum allowed uptime to tell me when a server has an uptime of say 35 days or more to indicate it hasn’t been rebooted. however i do not want the maximum allowed uptime to send notifications i just want to build a dashboard from the information.

is there a way to continue to get the minimum uptime notifications but not the maximum uptime? i assume not as the notification rule is for “uptime” as a whole.

Easy answer: Yes, there is no way as the notification is based on service state.

Complicated answer: You can build a notification rule that filters on the output of the check plugin. It should be possible to cancel notifications for too much uptime. But I would assume that the maintenance of these rules may be too much work depending of your current notification setup.

1 Like

A simple solution to this requirement would be

  • let check get CRIT if the uptime is <10min, and WARN if the uptime is to high
  • send notifications for this check only for CRIT states
1 Like

alternative complicated answer:

you could build a service view where you only filter for the output of the uptime check

image
regex for copy paste: uptime: (3[5-9]|4\d+) days

this way, the services stay in OK, but you can actively check if you have the time

2 Likes

that seems the answer i was looking for thanks! not sure how i didn’t think of that! i only have notifications to critical - so thank you!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.