Services being monitored with Monitor Solution not restarting and return error code 1060
search cancel

Services being monitored with Monitor Solution not restarting and return error code 1060

book

Article ID: 152974

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

Monitor policies with an associated task fail to run the task and return the error 1060.

The Task history in the SMP Console shows all instances of the error 1060.

The Windows Application logs may (or may not) show messages about the Metric Provider changing from uninitialized to retry states.

Environment

ITMS 8.x

Cause

The service you are monitoring has a special character in it.

Resolution

  • Use a WMI metric instead of the Windows Service metric.  As an example:
    • Namespace = "root\cimv2"
    • Class name = "Win32_Service"
    • Counter = "State"
    • Instance = "Name="<service>""
    • In the evaluation window make sure you set the 'Value': 0=stopped, 1=running
  • Also use a Run Script task instead of a Control Service State task
    • If you are using the task to restart the service, you can use the script "net start "<serviceName>" "
       Note: Make sure you add the quotes to the service name