/usr/share/augeas/lenses/dist/tests/test_monit.aug is in augeas-lenses 1.2.0-0ubuntu1.3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | module Test_monit =
let conf = "# Configuration file for monit.
#
set alert root@localhost
include /my/monit/conf
check process sshd
start program \"/etc/init.d/ssh start\"
if failed port 22 protocol ssh then restart
check process httpd with pidfile /usr/local/apache2/logs/httpd.pid
group www-data
start program \"/usr/local/apache2/bin/apachectl start\"
stop program \"/usr/local/apache2/bin/apachectl stop\"
"
test Monit.lns get conf =
{ "#comment" = "Configuration file for monit." }
{}
{ "set"
{"alert" = "root@localhost" } }
{ "include" = "/my/monit/conf" }
{}
{ "check"
{ "process" = "sshd" }
{ "start" = "program \"/etc/init.d/ssh start\"" }
{ "if" = "failed port 22 protocol ssh then restart" } }
{}
{ "check"
{ "process" = "httpd with pidfile /usr/local/apache2/logs/httpd.pid" }
{ "group" = "www-data" }
{ "start" = "program \"/usr/local/apache2/bin/apachectl start\"" }
{ "stop" = "program \"/usr/local/apache2/bin/apachectl stop\"" }
}
|