Am Freitag 01 Dezember 2006 15:09 schrieb Amias Channer:

> I feel your pain  , have you checked for empty lines near your
> service definitions ?
>
> e.g.
>
> hostname foobar 10.0.0.2
>
> watch foobar
>       service wibble_ok
>       service wibble_also_ok
>
>       service wibble_will_be_ignored
>
> hostname foobaz 10.0.0.3
>
> watch foobar
>
>       service wibble_will_also be_ignored
>       service none_of_the_others_will_run_despite_being_ok

Yes, I had a look; there were indeed such blank lines, but removing
them didn't improve the matter in any way.

> This one bites my ass regularly especially with m4 generated configs.
>
> I'm looking at solving this problem in general and i think it can be done
> by piping the config file through sed which could run a regex to filter
> newlines around services.  That said i am wary of adding more
> post-processing to my config files and would like to fix it in the mon
> source .

That sounds nice.

> I'm happy to produce a patch to solve this if people feed me the necessary
> tuits.
>
> Anyone else implemented this or similar ?
>
> Toodle-pip
> Amias

Regards,
Steven

_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to