Bump to 1.14.1
[platform/upstream/augeas.git] / lenses / tests / test_monit.aug
1 module Test_monit =
2
3 let conf = "# Configuration file for monit.
4 #
5 set alert root@localhost
6 include /my/monit/conf
7
8 check process sshd
9    start program \"/etc/init.d/ssh start\"
10    if failed port 22 protocol ssh then restart
11
12 check process httpd with pidfile /usr/local/apache2/logs/httpd.pid
13    group www-data
14          start program \"/usr/local/apache2/bin/apachectl start\"
15    stop program \"/usr/local/apache2/bin/apachectl stop\"
16 "
17
18 test Monit.lns get conf =
19    { "#comment"  = "Configuration file for monit." }
20    {}
21    { "set"
22      {"alert"    = "root@localhost" } }
23    { "include"   = "/my/monit/conf" }
24    {}
25    { "check"
26      { "process" = "sshd" }
27      { "start"   = "program \"/etc/init.d/ssh start\"" }
28      { "if"      = "failed port 22 protocol ssh then restart" } }
29    {}
30    { "check"
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\"" }
35 }