Cluster Server 8.0 Bundled Agents Reference Guide - Windows
- Introducing VCS bundled agents
- Storage agents
- Network agents
- FileShare agents
- Services and applications agents
- VCS infrastructure and support agents
- VCS hardware replication agent for NetApp
- Troubleshooting bundled agents
ServiceMonitor agent
The ServiceMonitor agent monitors a service or starts a user-defined script and interprets the exit code of the script. A service is an application type supported by Windows that conforms to the interface rules of the SCM. The agent can be configured to monitor a service using the Service Control Manager (SCM) or through a user-defined script.
When configured to monitor using the SCM, the agent queries the SCM database for the status of the service. When configured to monitor using a script or an executable, the agent executes the script on each system in the cluster, once every monitor cycle. The agent returns ONLINE, OFFLINE, or UNKNOWN depending on the exit code of the script. The exit code must conform to VCS standards.
Refer to chapter on agent functions in the Cluster Server Agent Developer's Guide for details.
The ServiceMonitor agent supports intelligent resource monitoring and uses Intelligent Monitoring Framework (IMF) for resource state change notifications. The agent traps the Windows service related events and takes appropriate action if a configured service stops or fails to respond.
For more information about IMF, refer to the Cluster Server Administrator's Guide.
You can monitor a service or run a script in a user-context by specifying the user name, password, and domain. Configure a service group for ServiceMonitor agent using the Application Configuration wizard.
The Application Configuration wizard is described in the Cluster Server Administrator's Guide.
Note:
The ServiceMonitor resource cannot be made dependent on other resources.