Can I use sysUpTimeInstance as a reboot reminder?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jbruyet
Posts: 235
Joined: Wed Dec 28, 2011 12:14 pm

Can I use sysUpTimeInstance as a reboot reminder?

Post by jbruyet »

Hey all, we have some ProLiant servers running some fragile proprietary software (that we'll be replacing "soon" per management) -- we occasionally have to do a server reboot in order to get everything working again after a lockup. I don't want to do reboots every so many days because if a server has been rebooted earlier due to a lockup I'm over-rebooting it and the servers themselves are closing in on nine years old. I was going to use sysUpTime with a -w and a -c parameter so I can reboot it after it's been up for a certain amount of time but it doesn't seem to like parameters. Any suggestions?

Thanks,

Joe B
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Can I use sysUpTimeInstance as a reboot reminder?

Post by slansing »

There is a check which will let you know when a system has been up for in days, hours, and minutes as well as its kernel version. You could set warning and critical thresholds for this check and when the service meets your threshold restart it. The check is located here:

http://exchange.nagios.org/directory/Pl ... me/details
Locked