/
Adding process monitor

Adding process monitor

This section describes how to add Servwatch process monitoring.

Edit configuration file

To add a process monitor, add the monitored process name to the agent settings file on the monitored server and restart the agent.

Navigate to the location of the configuration file.

cd /opt/servwatch-agent/config

Edit the configuration file.

vim default.json

Add the service name (example: httpd) you want to monitor in the following places.

{ "device_id":"hostname", "user_id":"U000***", "device_token":"************************", "watch_service": "httpd" // List the services you want to monitor, separated by commas. }

Restart agent

Restarting agent to enable process monitor.

The metric "service: <service name>" is now available in the condition settings when creating the event.

The event threshold can be set as "OK" for operating normal and "NG" for operating abnormal.

 

Related content

Getting Started
Getting Started
More like this
Servwatch Developer Portal
Servwatch Developer Portal
More like this
Deploy server agent
Deploy server agent
More like this
Working with event
Working with event
More like this
API Reference (V2.0.0)
API Reference (V2.0.0)
More like this
Problem on connecting the agent
Problem on connecting the agent
More like this

© 2014-2022 SENSINICS,LLC