3 let conf = "# Configuration file for monit.
5 set alert root@localhost
9 start program \"/etc/init.d/ssh start\"
10 if failed port 22 protocol ssh then restart
12 check process httpd with pidfile /usr/local/apache2/logs/httpd.pid
14 start program \"/usr/local/apache2/bin/apachectl start\"
15 stop program \"/usr/local/apache2/bin/apachectl stop\"
18 test Monit.lns get conf =
19 { "#comment" = "Configuration file for monit." }
22 {"alert" = "root@localhost" } }
23 { "include" = "/my/monit/conf" }
26 { "process" = "sshd" }
27 { "start" = "program \"/etc/init.d/ssh start\"" }
28 { "if" = "failed port 22 protocol ssh then restart" } }
31 { "process" = "httpd with pidfile /usr/local/apache2/logs/httpd.pid" }
32 { "group" = "www-data" }
33 { "start" = "program \"/usr/local/apache2/bin/apachectl start\"" }
34 { "stop" = "program \"/usr/local/apache2/bin/apachectl stop\"" }