What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Trigger WMI Service sensor restart by CPU instead of start/stop status

Votes:

0

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

cpu-load trigger wmi-service

Created on Nov 5, 2018 10:08:15 AM



1 Reply

Votes:

0

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

Created on Nov 5, 2018 10:33:10 AM by  Erhard Mikulik [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.