[augeas-devel] [Augeas] #367: augeas /etc/nagios/nrpe.cfg cannot be parsed
Augeas
trac at fedorahosted.org
Thu Oct 10 13:31:44 UTC 2013
#367: augeas /etc/nagios/nrpe.cfg cannot be parsed
--------------------------+---------------------
Reporter: eduardguloiu | Owner: lutter
Type: defect | Status: new
Priority: major | Milestone: next
Component: Augeas | Version: 1.1.0
Keywords: | Blocked By:
Blocking: |
--------------------------+---------------------
Hi,
After downloading multiple versions of the lens
/usr/share/augeas/lenses/dist/nrpe.aug
and modify it to overcome syntax error
found that there is another lens
(/usr/share/augeas/lenses/dist/nagioscfg.aug) that includes that file
so nrpe lens is not taken into consideration.
modifying nagioscfg.aug lens to exclude nrpe.cfg fixed it:
(* View: filter *)
let filter = incl "/etc/nagios3/*.cfg"
. incl "/etc/nagios/*.cfg"
. incl "/etc/icinga/*.cfg"
. excl "/etc/nagios3/commands.cfg"
. excl "/etc/nagios/commands.cfg"
. excl "/etc/nagios/nrpe.cfg"
. incl "/etc/icinga/commands.cfg"
Tested on Centos 5 augeas from epel repo.
on EL5
rpm -qa | grep aug
augeas-1.1.0-1.el5
augeas-libs-1.1.0-1.el5
ruby-augeas-0.4.1-1.el5
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/367>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list