Control file statements¶
The agent reads Monit's control file. Each statement and variant of Monit's manual is listed here with what the agent does with it: it reads it, or it refuses the control file with an error naming the statement -- it never ignores one silently. This page is generated from the list the agent's tests check with every release.
Monit here is the reference Monit, Monit 6.1.0: the version the agent's tests check it against.
Of 197 statements and variants, the agent reads 22.
<credentials> stands for the collector's user and password, user:password.
Daemon and init¶
| Statement | The agent |
|---|---|
set daemon 60 |
read |
set daemon 30 with start delay 60 |
not yet -- the agent refuses it |
set daemon 30 start delay 60 |
not yet -- the agent refuses it |
set daemon 30 |
not yet -- the agent refuses it |
set terminal batch |
not yet -- the agent refuses it |
set onreboot start |
not yet -- the agent refuses it |
set onreboot nostart |
not yet -- the agent refuses it |
set onreboot laststate |
not yet -- the agent refuses it |
Logging and files¶
| Statement | The agent |
|---|---|
set idfile /var/lib/flyingmonit-agent/.flyingmonit-agent.id |
read |
set log syslog |
not yet -- the agent refuses it |
set log /tmp/flyingmonit-agent.log |
read |
set logfile syslog facility log_daemon |
not yet -- the agent refuses it |
set statefile /var/lib/monit/state |
not yet -- the agent refuses it |
set pidfile /var/lib/flyingmonit-agent/.flyingmonit-agent.pid |
read |
set eventqueue basedir /var/lib/monit/events slots 100 |
not yet -- the agent refuses it |
set eventqueue basedir /var/lib/monit/events |
not yet -- the agent refuses it |
set expectbuffer 10 kb |
not yet -- the agent refuses it |
Mmonit¶
| Statement | The agent |
|---|---|
set mmonit http://<credentials>@collector.example/collector |
read |
set mmonit https://<credentials>@collector.example/collector timeout 5 seconds |
read |
set mmonit https://<credentials>@collector.example/collector timeout 1 second |
read |
set mmonit http://<credentials>@collector.example/collector register without credentials |
not yet -- the agent refuses it |
set mmonit https://<credentials>@collector.example/collector with ssl { verify: enable } |
not yet -- the agent refuses it |
set mmonit http://<credentials>@a.example/collector |
not yet -- the agent refuses it |
Alerts and mail¶
| Statement | The agent |
|---|---|
set alert admin@example.org |
not yet -- the agent refuses it |
set alert admin@example.org only on { timeout, nonexist } |
not yet -- the agent refuses it |
set alert admin@example.org but not on { instance } |
not yet -- the agent refuses it |
set alert admin@example.org with reminder on 10 cycles |
not yet -- the agent refuses it |
set alert admin@example.org with mail-format { subject: alarm } |
not yet -- the agent refuses it |
set mail-format { from: monit@example.org } |
not yet -- the agent refuses it |
set mail-format { from: monit@example.org |
not yet -- the agent refuses it |
set mailserver smtp.example.org |
not yet -- the agent refuses it |
set mailserver smtp.example.org port 587 username "monit" password "secret" using tls |
not yet -- the agent refuses it |
set mailserver smtp.example.org, localhost with timeout 15 seconds |
not yet -- the agent refuses it |
Httpd¶
| Statement | The agent |
|---|---|
set httpd port 2812 |
read |
set httpd port 2812 address 127.0.0.1 |
read |
set httpd port 2812 and use address localhost |
read |
set httpd port 2812 |
read |
set httpd |
read |
set httpd port 2812 |
read |
set httpd port 2812 and use address localhost |
read |
set httpd port 2812 |
read |
set httpd port 2812 |
not yet -- the agent refuses it |
set httpd port 2812 |
not yet -- the agent refuses it |
set httpd port 2812 |
not yet -- the agent refuses it |
set httpd port 2812 |
not yet -- the agent refuses it |
set httpd unixsocket /run/monit.sock |
not yet -- the agent refuses it |
set httpd port 2812 |
not yet -- the agent refuses it |
set httpd port 2812 |
not yet -- the agent refuses it |
set httpd port 2812 |
not yet -- the agent refuses it |
Ssl, fips and limits¶
| Statement | The agent |
|---|---|
set ssl { verify: enable, selfsigned: reject } |
not yet -- the agent refuses it |
set ssl options { version: tlsv13 } |
not yet -- the agent refuses it |
set fips |
not yet -- the agent refuses it |
set limits { programoutput: 1 kB, sendexpectbuffer: 512 B, filecontentbuffer: 512 B, httpcontentbuffer: 1 MB, networktimeout: 5 s } |
not yet -- the agent refuses it |
Include¶
| Statement | The agent |
|---|---|
include /etc/monit.d/*.cfg |
read |
include "/etc/monit conf.d/*" |
read |
Check types¶
| Statement | The agent |
|---|---|
check system $HOST |
read |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app matching "^app$" |
not yet -- the agent refuses it |
check file app path /etc/app.conf |
not yet -- the agent refuses it |
check fifo app path /run/app.fifo |
not yet -- the agent refuses it |
check filesystem rootfs path / |
read |
check filesystem data with path /dev/sda1 |
read |
check directory app path /var/lib/app |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check program app path /bin/true |
not yet -- the agent refuses it |
check program app path /bin/true with timeout 60 seconds |
not yet -- the agent refuses it |
check network eth0 with interface eth0 |
not yet -- the agent refuses it |
check network lan with address 192.0.2.1 |
not yet -- the agent refuses it |
Service methods¶
| Statement | The agent |
|---|---|
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
Poll time, groups and mode¶
| Statement | The agent |
|---|---|
check system $HOST |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
Dependencies and restarts¶
| Statement | The agent |
|---|---|
check process db with pidfile /run/db.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
Service alerts¶
| Statement | The agent |
|---|---|
check system $HOST |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
Existence and resources¶
| Statement | The agent |
|---|---|
check system $HOST |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check file app path /etc/app.conf |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
Process tests¶
| Statement | The agent |
|---|---|
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app matching "^app$" |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
File and directory tests¶
| Statement | The agent |
|---|---|
check file app path /etc/app.conf |
not yet -- the agent refuses it |
check file app path /etc/app.conf |
not yet -- the agent refuses it |
check file app path /etc/app.conf |
not yet -- the agent refuses it |
check file app path /etc/app.conf |
not yet -- the agent refuses it |
check file app path /etc/app.conf |
not yet -- the agent refuses it |
check file app path /etc/app.conf |
not yet -- the agent refuses it |
check file app path /etc/app.conf |
not yet -- the agent refuses it |
check file app path /etc/app.conf |
not yet -- the agent refuses it |
check file app path /etc/app.conf |
not yet -- the agent refuses it |
check file app path /etc/app.conf |
not yet -- the agent refuses it |
check file app path /etc/app.conf |
not yet -- the agent refuses it |
check file app path /etc/app.conf |
not yet -- the agent refuses it |
check file app path /etc/app.conf |
not yet -- the agent refuses it |
check file app path /etc/app.conf |
not yet -- the agent refuses it |
check file app path /etc/app.conf |
not yet -- the agent refuses it |
check file app path /etc/app.conf |
not yet -- the agent refuses it |
check directory app path /var/lib/app |
not yet -- the agent refuses it |
check directory app path /var/lib/app |
not yet -- the agent refuses it |
check fifo app path /run/app.fifo |
not yet -- the agent refuses it |
Filesystem tests¶
| Statement | The agent |
|---|---|
check filesystem rootfs path / |
not yet -- the agent refuses it |
check filesystem var path /var |
read |
check filesystem home path /home |
read |
check filesystem rootfs path / |
not yet -- the agent refuses it |
check filesystem rootfs path / |
not yet -- the agent refuses it |
check filesystem rootfs path / |
not yet -- the agent refuses it |
check filesystem rootfs path / |
not yet -- the agent refuses it |
check filesystem rootfs path / |
not yet -- the agent refuses it |
check filesystem rootfs path / |
not yet -- the agent refuses it |
check filesystem rootfs path / |
not yet -- the agent refuses it |
check filesystem rootfs path / |
not yet -- the agent refuses it |
Program tests¶
| Statement | The agent |
|---|---|
check program app path /bin/true |
not yet -- the agent refuses it |
check program app path /bin/true |
not yet -- the agent refuses it |
check program app path /bin/true |
not yet -- the agent refuses it |
check program app path /bin/true |
not yet -- the agent refuses it |
Network tests¶
| Statement | The agent |
|---|---|
check network eth0 with interface eth0 |
not yet -- the agent refuses it |
check network eth0 with interface eth0 |
not yet -- the agent refuses it |
check network eth0 with interface eth0 |
not yet -- the agent refuses it |
check network eth0 with interface eth0 |
not yet -- the agent refuses it |
check network eth0 with interface eth0 |
not yet -- the agent refuses it |
check network eth0 with interface eth0 |
not yet -- the agent refuses it |
check network eth0 with interface eth0 |
not yet -- the agent refuses it |
check network eth0 with interface eth0 |
not yet -- the agent refuses it |
check network eth0 with interface eth0 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check network eth0 with interface eth0 |
not yet -- the agent refuses it |
Connection tests¶
| Statement | The agent |
|---|---|
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
check host web with address 192.0.2.10 |
not yet -- the agent refuses it |
Actions and fault tolerance¶
| Statement | The agent |
|---|---|
check system $HOST |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check process app with pidfile /run/app.pid |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |
check system $HOST |
not yet -- the agent refuses it |