Hi Andreas
currently testing nagios 4.x cloned from gitub at ee2fdc2c
nagios -v reports no errors
reads my config without any issues running in foreground
----
/bin/nagios ./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
Nagios 3.99.95 starting... (PID=3D5095)
Local time is Sun Sep 16 09:17:04 CEST 2012
command_wproc->ioc: 0x16add90
Successfully launched command file worker with pid 5096
Workers spawned: 4
----
but if i use precached object config i run into trouble
----
OMD[ng4]:~$ ./bin/nagios -p ./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
Object precache file created:
/omd/sites/ng4/var/nagios/objects.precache
----
using the precached object file will fail
----
OMD[ng4]:~$ ./bin/nagios -u ./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
Nagios 3.99.95 starting... (PID=3D7333)
Local time is Sun Sep 16 09:20:52 CEST 2012
Error: Invalid notification option 'd' in service definition.
Error: Could not add object property in file =
'/omd/sites/ng4/var/nagios/objects.precache' on line 338.
Bailing out due to one or more errors encountered in the configuration =
files. Run Nagios from the command line with the -v option to verify =
your config before restarting. (PID=3D7333)
----
Line 338 contains
define service {
...
notification_options r,w,u,c,f,d
...
}
But there is no "notification_option d" in any of my services or service =
templates
Cheers
Joerg
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]