Blame SOURCES/0030-Fix-NagiosCfg-lense-so-etc-nagios-nrpe.cfg-is-parsed.patch

ab36df
From ef4f4f7c1276a55d0171bde4bc3693b63e12b24f Mon Sep 17 00:00:00 2001
ab36df
From: Yanis Guenane <yguenane@gmail.com>
ab36df
Date: Sat, 7 Sep 2013 17:24:34 -0400
ab36df
Subject: [PATCH] Fix NagiosCfg lense so /etc/nagios/nrpe.cfg is parsed by Nrpe
ab36df
 and not NagiosCfg
ab36df
ab36df
Currently NagiosCfg lense is in charge of parsing all files under /etc/nagios/*.cfg
ab36df
but /etc/nagios/commands.cfg. /etc/nagios/nrpe.cfg should be also added as an exception
ab36df
since it needs to be parsed by the Nrpe lense. This issue currently causes the following
ab36df
error : "Lenses @NagiosCfg and @Nrpe could be used to load this file"
ab36df
ab36df
(cherry picked from commit 7efe87199ec254a5cfd2c34968220c4dc4e05643)
ab36df
---
ab36df
 lenses/nagioscfg.aug | 1 +
ab36df
 1 file changed, 1 insertion(+)
ab36df
ab36df
diff --git a/lenses/nagioscfg.aug b/lenses/nagioscfg.aug
ab36df
index a2180f6..31220c4 100644
ab36df
--- a/lenses/nagioscfg.aug
ab36df
+++ b/lenses/nagioscfg.aug
ab36df
@@ -68,6 +68,7 @@ let filter = incl "/etc/nagios3/*.cfg"
ab36df
 	   . incl "/etc/icinga/*.cfg"
ab36df
 	   . excl "/etc/nagios3/commands.cfg"
ab36df
 	   . excl "/etc/nagios/commands.cfg"
ab36df
+	   . excl "/etc/nagios/nrpe.cfg"
ab36df
 	   . incl "/etc/icinga/commands.cfg"
ab36df
 
ab36df
 let xfm = transform lns filter