Plugin Request


I need a rather specific plugin, I was wondering if some of you could help me. I have checked the Nagios Exchange but couldn’t find anything quite like I was looking for.

We have a large number of Windows servers that have a scheduled task to reboot every night at a certain time. Currently I am using check_nt’s UPTIME switch to see if they rebooted or not–if the uptime is greater than one day, it did not reboot. Unfortunately, the plugin returns “OK” regardless of the uptime.

I would like to either have a script written (since it connects to Windows I don’t know how to write it from scratch) or the source code to the check_nt script so I can modify that plugin to return a CRITICAL if the uptime is greater than X. I figure a simple IF statement is all that is needed.

Any questions, please let me know.