DESCRIPTION:

LogicMonitor can easily alert you when a Windows service fails, but it sure would be nice to TRY to restart it automatically (and alert you if it cannot). This datasource does just that.
If it’s running, then a value of “1” will show.
If it’s stopped, it will try to restart and if it worked, then a value of “2” will show.
If it’s still stopped, it will try a second time. If it worked, then a value of 3 will show.
If it fails to start after two tries – a value of “4” will show.
I chose this simple numbering because I set it to trigger a warning (yellow) if it’s 2; error (orange) if it’s 3 and critical (red) if it’s 4.

INSTRUCTIONS:

  1. Download this DataSource file then import it into your account. Settings > Datasources > Add > From file
  2. While you have your desired computer selected in Resources tree, add a monitored instance (blue down arrow > Add monitored instance. Type in the service name (e.g. Spooler) in the “wildcard” field. Give this instance a name and description. You can add additional instances on the “Instances” tab of right pane.
  3. Test by looking in the “Raw Data” tab and click ‘Poll now’. A value of 1 should show normally. Manually stop the service and you should see a 2 on the next ‘cycle’ which is at 1 minute interval.

LIMITATIONS/DISCLAIMER: Official LogicMonitor tech support is not available. Use at your own risk.
This currently requires the typical setup whereby your collector is running as a domain account and computer you are monitoring is also on that domain. i.e. I haven’t enhanced it to allow it to use wmi.user and wmi.pass properties specified on the device.

This shows when a service is restarted

This shows when a service is restarted