Hi Paessler! happy monday

I was wondering if theres any fancy settings i can use to trigger the restart of the service from a WMI service sensor but based on CPU? We have a really old box with some super old but important apache services on, the issue is they never actually stop, just use around 95% cpu (instead of 4%). Is there a way i can get these services bounced based on CPU load on the device?

Thanks! Sam


Article Comments

Hi Samuel,

The WMI Service sensor has a channel for cpu usage, but no option per se to restart the monitored service based on it. You could set an error limit in this channel or use a threshold trigger for it. With the "ServiceRestart" executable from here you can create then an Execute Program Notification that will be triggered then by a state or threshold trigger.

Alternatively use a cpu load sensor on the device with an error limit for example for cpu load or a threshold trigger to trigger the same aforementioned "Execute Program" notification.

Kind regards,

Erhard


Nov, 2018 - Permalink