[Pkg-nagios-changes] [pkg-icinga2] 03/15: Update example configuration

Alexander Wirt formorer at debian.org
Thu Nov 20 13:22:56 UTC 2014


This is an automated email from the git hooks/post-receive script.

formorer pushed a commit to branch master
in repository pkg-icinga2.

commit 5db614619a4db5f82ed54dcdf2af12538d271bec
Author: Alexander Wirt <formorer at debian.org>
Date:   Thu Nov 20 09:24:51 2014 +0100

    Update example configuration
---
 debian/config/apt.conf    | 5 +++--
 debian/config/kernel.conf | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/debian/config/apt.conf b/debian/config/apt.conf
index 0222f2b..b2c77a0 100644
--- a/debian/config/apt.conf
+++ b/debian/config/apt.conf
@@ -1,6 +1,7 @@
-object Service "apt" {
+apply Service "apt" {
   import "generic-service"
 
-  host_name = "localhost"
   check_command = "apt"
+
+  assign where host.name == NodeName
 }
diff --git a/debian/config/kernel.conf b/debian/config/kernel.conf
index d8b061f..8817b2e 100644
--- a/debian/config/kernel.conf
+++ b/debian/config/kernel.conf
@@ -1,6 +1,7 @@
-object Service "kernel" {
+apply Service "kernel" {
   import "generic-service"
 
-  host_name = "localhost"
   check_command = "running_kernel"
+
+  assign where host.name == NodeName
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-icinga2.git



More information about the Pkg-nagios-changes mailing list