Page 1 of 1

Can I use sysUpTimeInstance as a reboot reminder?

Posted: Thu Sep 13, 2012 2:33 pm
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

Re: Can I use sysUpTimeInstance as a reboot reminder?

Posted: Thu Sep 13, 2012 4:36 pm
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