Agent configuration

Agent configuration

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. "iface": "<NETWORK_IF_NAME>", // target monitor I/F name "mount": "<STORAGE_MOUNTPOINT>" // target monitor storage mount point }

Element

Description

Element

Description

device_id

Configure the Device ID (hostname). It is automatically set when the agent is installed.

user_id

Configure the Servwatch user ID. It is automatically set when the agent is installed.

device_token

Configure the Servwatch device token. It is automatically set when the agent is installed.

watch_service

Configure 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)

systemctl restart servwatch.service

iface

Configure the server's network I/F name. The setup script will set the I/F connected to the Internet.

mount

Configure the storage mount point to be monitored. The setup script configures the / root file system.

 

© 2014-2022 SENSINICS,LLC