Problem with cfg_dir
Giles Coochey
GilesC at CarmenMedia.com
Fri Nov 10 13:55:41 CET 2006
>
> Hello,
>
> i tried to change the location of the config files of a good
> working Nagios 2.5-Installation.
> I put a # in front of all cfg_file= parameter in nagios.cfg
> and wrote two new lines with cfg_dir=
>
> cfg_dir=/etc/nagios/Global
> cfg_dir=/etc/nagios/LiveSystem
>
> After that i moved all *.cfg files (except nagios.cfg) from
> /etc/nagios to the two new directories.
> The reason is a project to install some more nagios servers
> for distributed monitoring with one central server and some
> remote nagios machine in different locations.
>
> Unfortunatly i can not get this to work. A quick test showed:
>
> Reading configuration data...
>
> Error: Unexpected token or statement in file
> '/etc/nagios/Global/cgi.cfg' on line 15.
>
> The cgi.cfg is a known good working one, without Non-ASCII Chars etc.!
> If i take the cgi.cfg away the same error is shown with
> resource.cfg or any other cfg file. The only difference is
> then the line number of the error. It is always the first
> non-comment line.
>
Hi Joerg,
I believe, but may be wrong, that cgi.cfg and resource.cfg need to be
specified in the nagios.cfg file and need to be (usually) in the same
folder as nagios.cfg
It is possible to have more than one resource.cfg file. I think only one
cgi.cfg is possible though.
The configuration files that you may put in the 'cfg_dir' directories
are those for definitions, i.e. check commands, notifications, services,
hosts, etc...
Thanks
Giles
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list