nagios 4 issue creating precached object config

Joerg Linge pitchfork at ederdrom.de
Sun Sep 16 11:53:57 CEST 2012


Am 16.09.2012 um 11:28 schrieb Andreas Ericsson <ae at op5.se>:

> 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.


Hi Andreas,
thats correct.

define service {
  name	                          check_mk_default
  register	                  0
  notification_options            u,c,w,r,f,s
...
}


git pull and now running on dc2caf36
Issue is fixed and i will continue testing.

Cheers Joerg






------------------------------------------------------------------------------
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