Heya!

I'm trying to setup a sensor that will count how many days it's been since a server restarted (i.e. Uptime). We've had issues recently where externally hosted VMs aren't automatically restarting after scheduled updates, sometimes for months causing the Windows Installer module to consume vast amounts of RAM and CPU.

The standard 'Windows System Uptime' sensor kinda works okay in that it measures the number of days the system has been up.

Issue is, I want to enable alerting on the System Uptime channel in this sensor so that it goes into warning/alarm mode when it's been up for more than 31 days (i.e. more than the monthly patching cycle), however the Limit settings unit is in seconds, and won't allow me to put a high enough number in (2.6 million) to get it to count to 31 days before it alarms.

Any ideas?


Article Comments

Hi there,

Set a limit in the channel that shows the uptime:

  • Click on the channel to open its settings
  • "Enable Limits"
  • You need to set an "Upper Error Limit" of 2678400, which equals 31 days in seconds (as the source unit is in seconds)
  • If not already the case add a state trigger on sensor's "Notification Triggers" tab like "When sensor is down for 0 seconds, then perform notification xyz"

Kind regards,

Erhard


Feb, 2019 - Permalink

Hi,

Thanks, I must have had fat fingers yesterday as I swear I tried to do just that an it errored out telling me the number was too large. Have followed your instructions today and have added Warning limits at 31 days and error limits at 62 days successfully.

Thanks!


Feb, 2019 - Permalink

I figured out why this wasn't working for me initially. The limit settings wont accept COMMAS in the number!

i.e.

2678400 is fine 2,678,400 is NOT!

Regards


Feb, 2019 - Permalink