nagios 4 issue creating precached object config
Andreas Ericsson
ae at op5.se
Sun Sep 16 11:28:07 CEST 2012
On 09/16/2012 09:28 AM, Joerg Linge wrote:
> 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
>
> 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=5095)
> 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
>
> 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
>
> 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=7333)
> 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=7333)
> ----
>
> 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
>
Right. I guess there's "s" though, right? I fscked up a bit when
I added the bitgate patch. I'll push a fix out in a few minutes.
Thanks for the report :)
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
More information about the Developers
mailing list