Blame lenses/tests/test_monit.aug
|
Packit Service |
a2ae7a |
module Test_monit =
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
let conf = "# Configuration file for monit.
|
|
Packit Service |
a2ae7a |
#
|
|
Packit Service |
a2ae7a |
set alert root@localhost
|
|
Packit Service |
a2ae7a |
include /my/monit/conf
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
check process sshd
|
|
Packit Service |
a2ae7a |
start program \"/etc/init.d/ssh start\"
|
|
Packit Service |
a2ae7a |
if failed port 22 protocol ssh then restart
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
check process httpd with pidfile /usr/local/apache2/logs/httpd.pid
|
|
Packit Service |
a2ae7a |
group www-data
|
|
Packit Service |
a2ae7a |
start program \"/usr/local/apache2/bin/apachectl start\"
|
|
Packit Service |
a2ae7a |
stop program \"/usr/local/apache2/bin/apachectl stop\"
|
|
Packit Service |
a2ae7a |
"
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
test Monit.lns get conf =
|
|
Packit Service |
a2ae7a |
{ "#comment" = "Configuration file for monit." }
|
|
Packit Service |
a2ae7a |
{}
|
|
Packit Service |
a2ae7a |
{ "set"
|
|
Packit Service |
a2ae7a |
{"alert" = "root@localhost" } }
|
|
Packit Service |
a2ae7a |
{ "include" = "/my/monit/conf" }
|
|
Packit Service |
a2ae7a |
{}
|
|
Packit Service |
a2ae7a |
{ "check"
|
|
Packit Service |
a2ae7a |
{ "process" = "sshd" }
|
|
Packit Service |
a2ae7a |
{ "start" = "program \"/etc/init.d/ssh start\"" }
|
|
Packit Service |
a2ae7a |
{ "if" = "failed port 22 protocol ssh then restart" } }
|
|
Packit Service |
a2ae7a |
{}
|
|
Packit Service |
a2ae7a |
{ "check"
|
|
Packit Service |
a2ae7a |
{ "process" = "httpd with pidfile /usr/local/apache2/logs/httpd.pid" }
|
|
Packit Service |
a2ae7a |
{ "group" = "www-data" }
|
|
Packit Service |
a2ae7a |
{ "start" = "program \"/usr/local/apache2/bin/apachectl start\"" }
|
|
Packit Service |
a2ae7a |
{ "stop" = "program \"/usr/local/apache2/bin/apachectl stop\"" }
|
|
Packit Service |
a2ae7a |
}
|