Re: [Nagios-devel] Error: Function nebmodule_init() in

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Error: Function nebmodule_init() in

Post by Guest »

Hi,

Thanks to Denis, who wrote us this excellent little tip, we now have NDO =
working (yay!):

------

I saw your post on NDOUtils, =
http://archive.netbsd.se/?ml=3Dnagios-d ... 5574880=20

And I just had a similar problem. To debug I added checkpoint to =
nebmodule_init()

i.e.=20

/* process arguments */
if(ndomod_process_module_args(args)=3D=3DNDO_ERROR) {
ndomod_write_to_logs("arguments =
error\x0",NSLOG_INFO_MESSAGE);
return -1;
}

and it was an args error, which turned out to be the fact that in =
nagios.cfg I had two spaces before 'config_file' (I suspect because I =
copy-pasted the line from a how-to):=20

broker_module=3D/gw/nagios/bin/ndomod.o =
config_file=3D/gw/nagios/etc/ndomod.cfg=20

When I deleted one, it started working fine.=20

-------

So, beware of the two-spaces-cut-and-paste error out there :-)

Best regards,
Steffen



> -----Oprindelig meddelelse-----
> Fra: [email protected]=20
> [mailto:[email protected]] P=E5 vegne=20
> af Steffen Poulsen
> Sendt: 1. november 2007 13:55
> Til: Nagios Developers List
> Emne: [Nagios-devel] Error: Function nebmodule_init() in=20
> module'/usr/local/nagios/bin/ndomod.o' returned an error.
>=20
> Hi,
>=20
> We have just tried upgrading to 3.0b6, and ndo 1.4b7.
>=20
> While nagios itself definetely seems more stable in this=20
> version (thanks!), ndo is not able to load properly:
>=20
> [1193912686] Caught SIGHUP, restarting...
> [1193912688] Nagios 3.0b6 starting... (PID=3D1125) [1193912688]=20
> LOG VERSION: 2.0 [1193912688] ndomod: NDOMOD 1.4b7=20
> (10-31-2007) Copyright (c) 2005-2007 Ethan Galstad=20
> ([email protected]) [1193912688] Error: Function=20
> nebmodule_init() in module '/usr/local/nagios/bin/ndomod.o'=20
> returned an error. Module will be unloaded.
> [1193912688] Event broker module=20
> '/usr/local/nagios/bin/ndomod.o' deinitialized successfully.
>=20
> Unfortunately it is not explicit in what the error is, and we=20
> are unsure how to debug.
>=20
> Any ideas?
>=20
> Best regards,
> Steffen





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked