summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2017-08-24 09:27:35 +0000
committerJulien Dessaux2017-08-24 09:27:35 +0000
commit0a4a03172b43dd4f6a9ab52fe061fc5c3f8ccf08 (patch)
treebc60070efaca6d9cf582fe5f655bfb7e7b7638ea
parentGeneralised the rc.conf management for freebsd (diff)
downloadmasterfiles-0a4a03172b43dd4f6a9ab52fe061fc5c3f8ccf08.tar.gz
masterfiles-0a4a03172b43dd4f6a9ab52fe061fc5c3f8ccf08.tar.bz2
masterfiles-0a4a03172b43dd4f6a9ab52fe061fc5c3f8ccf08.zip
Fixed check_mk policy misbehavior
Diffstat (limited to '')
-rw-r--r--services/check_mk.cf7
1 files changed, 3 insertions, 4 deletions
diff --git a/services/check_mk.cf b/services/check_mk.cf
index dde8219..fef8549 100644
--- a/services/check_mk.cf
+++ b/services/check_mk.cf
@@ -25,11 +25,10 @@ bundle agent check_mk
classes:
freebsd::
"inetd_service_running" expression => returnszero("/usr/sbin/service inetd status", "noshell");
- "sshd_service_running" expression => returnszero("/usr/sbin/service sshd status", "noshell");
commands:
- freebsd.!sshd_service_running::
- "/usr/sbin/service inetd start" classes => if_repaired("inetd_service_repaired");
- freebsd.(!inetd_service_running|check_mk_inetd_conf_file_repaired)::
+ freebsd.!inetd_service_running::
+ "/usr/sbin/service inetd start" classes => if_repaired("inet_service_repaired");
+ freebsd.check_mk_inetd_conf_file_repaired::
"/usr/sbin/service inetd restart" classes => if_repaired("inetd_service_restarted");
reports:
any::