Re: [Nagios-devel] nagios 4 issue creating precached object config
Posted: Sun Sep 16, 2012 8:54 am
Am 16.09.2012 um 11:28 schrieb Andreas Ericsson :
> On 09/16/2012 09:28 AM, Joerg Linge wrote:
>> Hi Andreas
>>=20
>> currently testing nagios 4.x cloned from gitub at ee2fdc2c
>>=20
>> nagios -v reports no errors
>>=20
>> reads my config without any issues running in foreground
>>=20
>> ----
>> /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
>>=20
>> 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
>> ----
>>=20
>> but if i use precached object config i run into trouble
>>=20
>> ----
>> 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
>>=20
>> Website: http://www.nagios.org
>> Object precache file created:
>> /omd/sites/ng4/var/nagios/objects.precache
>> ----
>>=20
>> using the precached object file will fail
>>=20
>> ----
>> 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
>>=20
>> 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)
>> ----
>>=20
>> Line 338 contains
>>=20
>> define service {
>> ...
>> notification_options r,w,u,c,f,d
>> ...
>> }
>>=20
>> But there is no "notification_option d" in any of my services or =
service templates
>>=20
>=20
> 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
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]