[monitor] watch nagios-nrpe-daemon (wip)
authorArthur Lutz <arthur.lutz@logilab.fr>
Tue, 26 Jan 2016 10:48:17 +0100
changeset 65 e2e1874eae79
parent 64 64b6455771b5
child 66 52f94ff67a77
[monitor] watch nagios-nrpe-daemon (wip)
cubicweb/monitor.sls
--- a/cubicweb/monitor.sls	Thu Dec 03 17:58:22 2015 +0100
+++ b/cubicweb/monitor.sls	Tue Jan 26 10:48:17 2016 +0100
@@ -1,5 +1,7 @@
+# TODO - avoid having this dependency
 include: 
     - monit
+    - nagios
 
 # TODO replace by debian package installation
 # cf https://intranet.logilab.fr/jpl/ticket/199142
@@ -15,7 +17,11 @@
     file.managed:
         - source: salt://shinken/scripts/check_cubicweb
         - mode: 0755
+        - watch:
+          - service: nagios-nrpe
 
 /etc/nagios/nrpe.d/check_cubicweb.cfg:
     file.managed:
         - source: salt://shinken/nrpe.d/check_cubicweb.cfg
+        - watch:
+          - service: nagios-nrpe