On Tue, Jun 7, 2016 at 2:19 AM, Dominic Cleal <email address hidden>
wrote:
> Ryan, changing an existing value will preserve the whitespace (something
> Augeas tries hard to do), so you'll probably need to add a new setting
> to observe the behaviour.
>
> You could delete the existing cfg_file entry and create a new one, e.g.
>
> augtool> rm /files/etc/nagios3/nagios.cfg/cfg_file
> augtool> set /files/etc/nagios3/nagios.cfg/cfg_file
> /etc/nagios3/commands.cfg.local
>
> or if Nagios supports any setting name then you could define something
> new:
>
> augtool> set /files/etc/nagios3/nagios.cfg/example test
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1491406
>
> Title:
> augeas-lenses-1.2.0 - NagiosCfg lens broken for /etc/nagios.cfg due to
> spaces
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/augeas/+bug/1491406/+subscriptions
>
Dominic,
Thanks! That's exactly what I needed.
On Tue, Jun 7, 2016 at 2:19 AM, Dominic Cleal <email address hidden>
wrote:
> Ryan, changing an existing value will preserve the whitespace (something etc/nagios3/ nagios. cfg/cfg_ file etc/nagios3/ nagios. cfg/cfg_ file commands. cfg.local etc/nagios3/ nagios. cfg/example test /bugs.launchpad .net/bugs/ 1491406 /bugs.launchpad .net/ubuntu/ +source/ augeas/ +bug/1491406/ +subscriptions
> Augeas tries hard to do), so you'll probably need to add a new setting
> to observe the behaviour.
>
> You could delete the existing cfg_file entry and create a new one, e.g.
>
> augtool> rm /files/
> augtool> set /files/
> /etc/nagios3/
>
> or if Nagios supports any setting name then you could define something
> new:
>
> augtool> set /files/
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> augeas-lenses-1.2.0 - NagiosCfg lens broken for /etc/nagios.cfg due to
> spaces
>
> To manage notifications about this bug go to:
>
> https:/
>