Re: [Nagios-devel] semicolons as comments?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] semicolons as comments?

Post by Guest »

To complicate things. Semicolon comments only work within objects and
not in nagios.cfg, cgi.cfg et all ;)

Just got a big error showing the CGI couldn't read the logfile ".. ;
blabla". But 'nagios -v' gave no error.

Yes Chris, you found a bug or a missing check :)

Geert

On Fri, 2002-04-26 at 01:04, Geert Vanderkelen wrote:
> Hey Chris,
>
> You mailed me about this problem in Nagat and I didn't look at it this
> way.
>
> IMHO, ;-comments after a "variable value" in an object is rather useless
> and compromises readability. Although they should be kept intact.
> What I did for Nagat is keeping the layout of the object configuration
> files as much as possible. I just forgot about the semicolon stuff.
> Consider it a feature request :)
>
> Well it looks natural to me, the commenting I mean.
>
>
> Regards,
>
> Geert
>
> On Thu, 2002-04-25 at 23:56, Chris Meador wrote:
> > Hello all,
> >
> > What is the official status of using semicolons as comments within block
> > definitions (as per the example template configuration files)? All of
> > the documentation seems to say that hash-comments are the only valid
> > comments... But nagios understands the files with semicolons anyway.
> >
> > # here is an example of a definition block using semicolon comments
> > define host {
> > use generic-host ;Name of host
> > template to use
> > ;questionable comment
> > host_name localhost
> > alias localhost
> > address 127.0.0.1
> > }
> >
> > regards
> > Chris
> >
> > --
> > Chris Meador
> > dotLogix, Inc.
> > (901) 260-7148
> > (901) 634-3430 cell
> >
> >
> > _______________________________________________
> > Nagios-devel mailing list
> > Nagios-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/lis ... gios-devel
> --
> Geert Vanderkelen
> Kemuri.Org
>
> http://kemuri.org
>
>
>
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/lis ... gios-devel
--
Geert Vanderkelen
Kemuri.Org

http://kemuri.org







This post was automatically imported from historical nagios-devel mailing list archives
Original poster: geert@kemuri.org
Locked