PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /opt/puppetlabs/puppet/share/augeas/lenses/dist/tests/ |
| Server: Linux server1.ngambekcore.com 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 04:00:07 EDT 2025 x86_64 IP: 159.198.77.92 |
| Dir : //opt/puppetlabs/puppet/share/augeas/lenses/dist/tests/test_monit.aug |
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\"" }
}