Skip to content

How to manage Zenoss Data Monitor

You manage the service with standard systemd utilities, and manage datasources through their configuration files.

Service

Use the systemctl utility to start, stop, and manage the zendatamon-agent service. For example, to stop the service, enter the following command:

systemctl stop zendatamon-agent

To review the log file, use the journalctl command:

journalctl -f -u zendatamon-agent

Most of the user-configurable properties in Zenoss Data Monitor service configuration file are set when you install the service. The service configuration file is /etc/zendatamon-configs/agent.yaml. Here is an example file:

agent.yaml
apiVersion: v1
agent:
  name: zencollector
  source: host.example.com
  defaultInterval: 30s
configurationSource:
  local:
    - name: "default local config"
      directory: "/etc/zendatamon-configs/configs"
datasinks:
  - name: api.zenoss.eu
    type: zenoss
    conf:
      address: api.zenoss.eu:443
      apiKey: <YOUR_API_KEY>
secretlookup:
  type: noop

The defaultInterval field sets the collection interval to 30 seconds. The Zenoss Data Monitor service loads configuration file changes immediately.

Datasources

You can configure the following datasources from the host-linux-device datasource configuration file, if enabled; configure datasources individually; or configure both the host-linux-device file and individual host-* files.

The icmp configuration file is independent of the host-linux-device configuration file.

The Zenoss Data Monitor service loads configuration file changes immediately.