I need to monitor a windows box remotely, and if it goes down, I need to receive an email. The catch is that the box needs to reboot nightly, and sometimes during the day as well. So a short downtime of ~5 min or less is fine. But, a longer downtime should trigger an email alert.
I don't want to receive a whole stack of emails if it goes down at night, just one to inform me so I can go bring it back up in the morning. My current thinking involves using net-snmp and rolling my own python script to monitor the box.
This, of course, is reinventing the wheel. But I haven't been able to find any FOSS that does what I want. Either they are more complicated than necessary, or expect you to check their control panel, or don't have an obvious way to monitor if the box is online with the options I want.
I'd like to know if there is a tool I missed, which does what I want. Or failing that, what is considered best practices for this kind of application? Will SNMP provide the info I need, or do I have to do something else? Any gotchas I need to watch out for in the python script?
Alternatives and suggestions welcome, especially if they include links or samples to point me in the right direction.