From 0a4a03172b43dd4f6a9ab52fe061fc5c3f8ccf08 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 24 Aug 2017 09:27:35 +0000 Subject: Fixed check_mk policy misbehavior --- services/check_mk.cf | 7 +++---- 1 file 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:: -- cgit v1.2.3