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 using the native HTTP web server. Monit does the 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"
By default, _status?format=xml
URI is used to collect metrics.
Validate
Go to Resources under the Infrastructure tab to check if your resources are onboarded and the metrics are collected.
Supported metrics
OpsRamp Metric | Metric Display Name | Unit |
---|---|---|
monitd_processes Monitors the services managed by monit daemon. Alerts if the managed services are stopped or restared or not-monitored. | Processes | Status |