Creating Service Monitor Rules

The Service Monitor ensures that critical services, such as Anti-Virus software, are running on the selected device.

A useful feature of this is that it automatically allows control of the service dependent on the result of the alert. For example, if the monitor detects that the Anti-Virus software has stopped running, the monitor can automatically restart the service without the need for any interaction.

Service Monitor also allows Services that should be excluded from the check criteria to be specified. The ‘Excluded Services’ parameter is shown at the bottom of the Criteria dialog and supports wildcards. Any services entered into this parameter are omitted from the rule criteria. This can be used to prevent a generic service monitor from creating an alert for services that auto start but then stop immediately.

When setting the Control Service action for a service monitor, it is possible to use the service from the criteria (i.e. if a service has stopped, this is the service required to start) or use another of the listed services to perform the required action.

NOTE: Code in the Services Monitor checks the version of Windows that is running. For Windows 8 and Server 2012 upwards, service status is shown as ‘Running’. For all other Windows versions, the service status is shown as ‘Started’.

Service Monitor Rule specific criteria fields

When adding rule criteria the following pages and fields are specific are specific to the Service Monitor.

Creating an example Service Monitor Rule

This Service Monitor rule checks anti-virus software and restarts it if it has stopped.

  1. From the Systems panel of the Central Configuration Manager, select the System to which the monitor rule is applied and expand the view so that the monitors are displayed.
  2. Select the Service Monitor and click Add Rule to display the Add Rule Detail dialog.
  3. Enter a Description of ‘Check and Restart Anti-Virus’. Leave other fields on this page as the default settings.
  4. Select the Criteria tab in the left navigation pane of the Add Rule Detail dialog and click Add Criteria.
  5. Either select the anti-virus service from the Display Name choice menu or click Browse, highlight the anti-virus service from those services listed and click Select. The Service Name, Status and Startup Type fields on the Criteria dialog are automatically populated.
  6. In the Service Thresholds section of the Criteria dialog, set the Status operator to ‘=’ and the value as ‘Stopped’.
  7. In the left navigation pane of the Criteria page, click Alert.
  8. Enable the Override Rule Default option and change the Alert Text to ‘Anti-Virus software service had stopped. Automatically restarted by Halcyon NSS’. Click OK.
  9. Select the Actions tab in the left navigation pane of the Add Rule Detail dialog and click Add Action.
  10. Select the Send Enterprise Console Alert action. Click OK to open the Console Action dialog. Leave the fields as their default settings and click OK.
  11. On the Add Rule Detail dialog, click OK to create the rule, which is then displayed in the System Rule panel for the Service monitor.
  12. From the Central Configuration Manager menu ribbon, click Save. The rule is now active within the monitor.

Related Topics