[Nagios-devel] Nagios 4 ignores object_cache_file and log_file
Posted: Sun Sep 16, 2012 10:02 am
Hi Andreas,
its me again
Now running on git HEAD dc2caf36
i use customized path to object_cache_file and log_file inside of =
nagios.cfg
----
OMD[ng4]:~$ grep objects.cache tmp/nagios/nagios.cfg=20
object_cache_file=3D/omd/sites/ng4/var/nagios/objects.cache
OMD[ng4]:~$ grep nagios.log tmp/nagios/nagios.cfg=20
log_file=3D/omd/sites/ng4/var/nagios/nagios.log
----
But nagios uses the default locations out of include/locations.h
----
OMD[ng4]:~$ ./bin/nagios /omd/sites/ng4/tmp/nagios/nagios.cfg=20
Nagios Core 3.99.95
Copyright (c) 2009-2011 Nagios Core Development Team and Community =
Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 09-14-2012
License: GPL
Website: http://www.nagios.org
Warning: Could not open object cache file =
'/usr/local/nagios/var/objects.cache' for writing!
Warning: Cannot open log file '/usr/local/nagios/var/nagios.log' for =
writing
Nagios 3.99.95 starting... (PID=3D29838)
Local time is Sun Sep 16 12:54:34 CEST 2012
command_wproc->ioc: 0x105ed40
Successfully launched command file worker with pid 29839
Workers spawned: 4
----
Some events are written to /usr/local/nagios/var/nagios.log and later to =
the correct location /omd/sites/ng4/var/nagios/nagios.log
Also /usr/local/nagios/var/objects.cache is created but never updated
Joerg
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
its me again
Now running on git HEAD dc2caf36
i use customized path to object_cache_file and log_file inside of =
nagios.cfg
----
OMD[ng4]:~$ grep objects.cache tmp/nagios/nagios.cfg=20
object_cache_file=3D/omd/sites/ng4/var/nagios/objects.cache
OMD[ng4]:~$ grep nagios.log tmp/nagios/nagios.cfg=20
log_file=3D/omd/sites/ng4/var/nagios/nagios.log
----
But nagios uses the default locations out of include/locations.h
----
OMD[ng4]:~$ ./bin/nagios /omd/sites/ng4/tmp/nagios/nagios.cfg=20
Nagios Core 3.99.95
Copyright (c) 2009-2011 Nagios Core Development Team and Community =
Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 09-14-2012
License: GPL
Website: http://www.nagios.org
Warning: Could not open object cache file =
'/usr/local/nagios/var/objects.cache' for writing!
Warning: Cannot open log file '/usr/local/nagios/var/nagios.log' for =
writing
Nagios 3.99.95 starting... (PID=3D29838)
Local time is Sun Sep 16 12:54:34 CEST 2012
command_wproc->ioc: 0x105ed40
Successfully launched command file worker with pid 29839
Workers spawned: 4
----
Some events are written to /usr/local/nagios/var/nagios.log and later to =
the correct location /omd/sites/ng4/var/nagios/nagios.log
Also /usr/local/nagios/var/objects.cache is created but never updated
Joerg
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]