Monit is a free, open-source process supervision tool for Unix and Linux and only supports Virtual machines. With Monit, system status can be viewed directly from the command line, or via the native HTTP web server. Monit can perform automatic maintenance, repair, and run meaningful causal actions in error situations.

Prerequisite

For Virtual Machines, install the Linux Agent.

Configuring the credentials

Configure the credentials in the directory /opt/opsramp/agent/conf/app.d/creds.yaml

monit:
- name: monit
  user: <username>
  pwd: <Password>
  encoding-type: plain
  labels:
    key1: val1
    key2: val2

Configuring the application

Virtual machine

Configure the application in the directory /opt/opsramp/agent/conf/app/discovery/auto-detection.yaml

- name: monitd
  instance-checks:
    service-check:
      - monit
    process-check:
      - monit
    port-check:
      - 2812
    uri-check:
      - "_status?format=xml"

Validate

Go to Resources under the Infrastructure tab to check if your resources are onboarded and the metrics are collected.

Metrics

OpsRamp MetricMetric Display NameUnitDescription
monitd_processesProcessesStatusMonitors the services managed by monit daemon. Alerts if the managed services are stopped or restared or not-monitored.