Page 1 of 1

Re: [Nagios-devel] command-line config directives

Posted: Tue Jul 27, 2004 10:18 am
by Guest
Hello Jason,

How about including a config file from nagios.cfg, say
'cfg_file=failover.cfg' and have that file either be empty or contain the
extra options needed for that instance? On startup you can either null the
file or copy the contents of a template to it.


Regards,

Atle
-
Flying Crocodile Inc, Junior Unix Systems Administrator

On Tue, 27 Jul 2004, Jason Martin wrote:

> Has any thought been given to allowing Nagios to accept
> command-line directives at startup? For example, I was thinking
> that for some failover conditions it would be handy to be able
> to invoke Nagios with 1 or more extra cfg_dir or cfg_file
> directives without having to play games with rewriting or
> overwriting the nagios.cfg. Would this be hard to do?
>
> I'd imagine the syntax would be something like ./nagios -c
> ../etc/nagios.cfg -o cfg_dir=/some/dir
>
> Thanks,
> -Jason Martin
> --
> After all is said and done, usually more is said.
> This message is PGP/MIME signed.
>





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]