Nagios-1.1 config file parsing bug
Florian.Kirchmeir at infineon.com
Florian.Kirchmeir at infineon.com
Fri Sep 26 13:52:40 CEST 2003
Uhm, not that easy either:
The data collected via Nagios is written back to the database, so we need to
keep the object names the same.
We would have to add an entire layer of object name re-writing, just to work
around a trivial bug.
Anyways, thanks for your suggestion!
Regards,
Florian Kirchmeir
-----Original Message-----
From: Stefano Coletta [mailto:creator at mindcreations.com]
Sent: Freitag, 26. September 2003 12:39
To: Kirchmeir Florian (IFDA IT RD)
Cc: nagios-devel at lists.sourceforge.net
Subject: Re: [Nagios-devel] Nagios-1.1 config file parsing bug
In the while you can substitute spaces with underscores while creating
configuration file (just patch your script that imports configuration
from DB).
Hope to be of help.
--
Stefano Coletta
http://www.mindcreations.com
Florian.Kirchmeir at infineon.com wrote:
>Well, thanks. ;-)
>
>Unfortunately, the configuration file is auto-generated from a
>database; the object-names used are not under my control. Names with
>blanks have been no problem with the old, "default" configuration
>system, so I consider this new restriction a bug. Also, blanks don't
>show up in the list of restricted characters in nagios.cfg...
>
>Anyone that can come up with a fix?
>
>Regards,
>Florian Kirchmeir
>
>-----Original Message-----
>From: Stefano Coletta [mailto:creator at mindcreations.com]
>Sent: Donnerstag, 25. September 2003 17:37
>To: Florian.Kirchmeir at infineon.com
>Cc: nagios-devel at lists.sourceforge.net
>Subject: Re: [Nagios-devel] Nagios-1.1 config file parsing bug
>
>
>Do not use spaces for object names and your problem will vanish :)
>
>Florian.Kirchmeir at infineon.com wrote:
>
>
>
>>Hi all!
>>
>>I noticed a problem with the config file parsing code in Nagios 1.1,
>>when using the new (template-based) format: Blanks in various object
>>names (hosts, contact-groups, ...) are not handled correctly when they
>>appear in a list.
>>Example: with a service definition like this:
>>
>>define service{
>> use my_template
>> host_name host a,host b,host c
>> service_description Connectivity Check
>> check_command check_ping
>> }
>>
>>Nagios will complain that host "host" is undefined, instead of looking
>>up "host a".
>>
>>Can anyone please make a patch available? Thanks!
>>
>>Regards,
>>Florian Kirchmeir
>>
>>
>>
>>-------------------------------------------------------
>>This sf.net email is sponsored by:ThinkGeek
>>Welcome to geek heaven.
>>http://thinkgeek.com/sf
>>_______________________________________________
>>Nagios-devel mailing list
>>Nagios-devel at lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/nagios-devel
>>
>>
>>
>>
>
>
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
More information about the Developers
mailing list