Page 1 of 1

Uptime threshold warnings

Posted: Wed Sep 09, 2015 9:40 pm
by rymarx
I am looking to receive a warning when a server or device reaches a specified uptime, basically letting me know that it is due for a reboot. I found the article below however I am looking for the exact opposite with the warnings. Warn me when it reaches 90 days not that its less than the number specified. Has there been any development with doing this? I would prefer not to add an additional module to my servers and use the the built in check_nt uptime command if at all possible.


https://support.nagios.com/forum/viewto ... 16&t=30462

Re: Uptime threshold warnings

Posted: Thu Sep 10, 2015 9:47 am
by lmiltchev
If you are running "check_uptime" in Linux, you could use:

Code: Select all

./check_uptime -u days -w 89
If you are using NSClient++, you could use:

Code: Select all

./check_nt -H <client ip> -s <password> -p 12489 -v UPTIME -l days -w 90

Re: Uptime threshold warnings

Posted: Thu Sep 10, 2015 8:09 pm
by Box293