The agent configuration file is stored in the following directory on the server.
/opt/servwatch-agent/config/default.json |
The configuration file is in JSON format and contains the following items.
{ "device_id":"<DEVICE_ID>", // Device ID(hostname) "user_id":"<USER_ID>", // Servwatch user ID "device_token":"<DEVICE_TOKEN>", // Servwatch device token "watch_service": "<SERVICE1>,<SERVICE2>,.." // List the services you want to monitor, separated by commas. } |
Element | Description | |
---|---|---|
device_id | Set the Device ID (hostname). It is automatically set when the agent is installed. | |
user_id | Set the Servwatch user ID. It is automatically set when the agent is installed. | |
device_token | Set the Servwatch device token. It is automatically set when the agent is installed. | |
watch_service | Set the process monitoring settings. List the service names as they are, separated by commas. It is necessary to restart the agent when adding / deleting the service name. (restart agent)
|