is there a way to detect whether or not a service is running?
I have a Windows server giving that for some reason will just turn off its IIS.
It is very sporadic. I've been going through the event logs, looking for patches, viruses, etc.
In the meantime I'd like to have something running that would automatically restart it if it stops. We already run Nagios, which tells me if its down but I want to be able to automatically restart it. The server is a couple hundred miles away and I have to remote in to restart IIS, which isn't always practical.
Thanks!
I have a Windows server giving that for some reason will just turn off its IIS.
It is very sporadic. I've been going through the event logs, looking for patches, viruses, etc.
In the meantime I'd like to have something running that would automatically restart it if it stops. We already run Nagios, which tells me if its down but I want to be able to automatically restart it. The server is a couple hundred miles away and I have to remote in to restart IIS, which isn't always practical.
Thanks!
Comment