nagios needs to be able to run systemctl as root otherwise dbus is needed
authorPaul Wise <pabs@debian.org>
Mon, 15 Dec 2014 22:47:47 +0000 (06:47 +0800)
committerPaul Wise <pabs@debian.org>
Mon, 15 Dec 2014 22:47:47 +0000 (06:47 +0800)
config/nagios-master.cfg

index 572565c..dc320fd 100644 (file)
@@ -2627,7 +2627,7 @@ services:
   # {{{ misc
   -
     name: system - all services running
-    nrpe: "/bin/systemctl is-system-running"
+    nrpe: "/usr/bin/sudo /bin/systemctl is-system-running"
     hostgroups: jessie
   ###
   -