Hi team,
I was wondering, if any of you knows any script can run on Windows to notify Nagios to notify the users when the Windows is up 90 days and post a custom alert message?
Thanks for all your time.
hoffman2503
Script to notify when system is up x days
Re: Script to notify when system is up x days
It's a bit beyond the support we can provide, but you should be able to modify this powershell script to work for your needs. It'll output the variable uptime at the end, which you could use to set up your own if conditions.
http://ss64.com/ps/syntax-get-uptime.html
http://ss64.com/ps/syntax-get-uptime.html
Former Nagios Employee