Windows Service Monitoring in OpsRamp enables users to monitor Windows services defined in the parameters section. Multiple services can be monitored by providing the necessary information.

Users can monitor Windows services based on server activities and apply multiple templates. Creating templates with different service names as metrics allows for monitoring multiple services. If the same service name is used under different metrics, OpsRamp merges the metric graphs as one instance.

Using Windows services monitoring, you can:

  • Monitor service status
  • Monitor specific or all Windows services state changes
  • Generate alerts using Agent-based monitoring templates

Use the following global template and metric name for Windows services monitoring:

  • Template name: Agent G2 - Windows Services Monitoring
  • Metric name: system.windows.service.status

Prerequisites

  • Include service names (with comma separated) in the Value text-box while assigning the template to a device. For example, opsramp-agent,opsramp-shield,svsvc,vmickvpexchange,wuauserv.

    Service Names
  • Install the agent on the target device to run the scripts.

Create Windows Services Monitoring

To define a windows service monitors includes 3 steps.

  • Metric Configuration
  • Monitor Configuration
  • Template Configurations

Metric Configuration

Create a copy of the “system.windows.service.status” metric for all services that you want to monitor.

  1. Select a client from the All Clients list.
  2. Navigate to Setup > Monitoring > Metrics.
  3. Search for the global “system.windows.service.status” metric and take note of all of the fields.
    Service Names
  4. From Metrics, click +Add. Add all of the same detail copied from step 3 but change the below:
    Name - system.windows.service.status.{SERVICE NAME}
    Display Name - {SERVICE NAME} or {SERVICE DESCRIPTION}

    Examples:
    • For Single Services
      Name - system.windows.service.status.AppHostSvc
      Display Name = Application Host Helper Service
    • For Multiple Services
      Metric Name - system.windows.service.status.default.windows.services
      Display Name - App Readiness, SNMP Trap, Windows Event log

Monitor Configuration

The next step is to create copies of the “Agent G2 - Windows Services Custom Monitor” monitor for each metric.

  1. Select a client from the All Clients list.
  2. Navigate to Setup > Monitoring > Monitors.
  3. Search for the global “Agent G2 - Windows Services Custom Monitor” monitor and take a copy of it.
  4. Select the monitor scope and name the monitor with the service name.
    • Monitor Scope - ? e.g. client
    • Name - Test_service_monitor_ AppHostSvc
  5. Click Save to save the changes.
  6. Edit the new monitor and delete the “system.windows.service.status metric”.
    Service Names
  7. Add the metric for the service you created earlier.
  8. Repeat the steps 1 to 7 for each metric that you want to monitor.

Template Configurations

The next step is to create copies of the “Agent G2 - Windows Services Monitoring” template for each monitor.

  1. Select a client from the All Clients list.
  2. Navigate to Setup > Monitoring > Templates.
  3. Search for the global “Agent G2 - Windows Services Monitoring” template and take a copy of it.
  4. Select the template scope and name the template with the service name.
    • Partner =
    • Client =
    • Name = Test_AppHostSvc_Agent G2 - Windows Services Monitoring
  5. Click Save to save the changes.
  6. Edit the new template and delete the “Agent G2 - Windows Services Custom Monitor” monitor.
    Service Names
  7. Add the monitor for the service you created earlier.
  8. Repeat the steps 1 to 7 for each metric that you want to monitor.

Validate Templates

After the configured services are running on the target devices, view the metric graph using Infrastructure > Resources > Device Details > Metrics. The graph displays the following metric values:

  • 1 - Services are running
  • 0 - Services are not running
Validating Templates

Windows Services Monitor Alerts

View the Windows services alerts in the Alert browser. Examine the alert description to view the last modified time.

Windows Services Monitor Alerts