Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 599452 - net-analyzer/nagios-4.2.2 with net-analyzer/ndoutils-2.0.0 - ndomod: I've been compiled with support for revision 402 of the internal Nagios object structures, but the Nagios daemon is currently using revision 403. I'm going to unload ...
Summary: net-analyzer/nagios-4.2.2 with net-analyzer/ndoutils-2.0.0 - ndomod: I've bee...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Orlitzky
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-11 10:09 UTC by Niels Dettenbach
Modified: 2017-11-07 12:35 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Niels Dettenbach 2016-11-11 10:09:39 UTC
The current Nagios 4.2.2 within Gentoo is not able to load the NDO module / subsystem (if configured) when build by ndoutils-2.0.0 from current portage, because the API/ABI seems to be at a incompatible revision (see errors from nagios.log in "Actual Results").

I tried to build the current available ndoutils-2.1.1 from 2016 by hand which seems to work:
https://sourceforge.net/projects/nagios/files/ndoutils-2.x/ndoutils-2.1.1/

The only thing i had is that the included ./db/upgradedb.sh script throws some SQL errors on my system, but this may related to my special setup. ndo2db is running fine and ndomod.o is loaded as expected by nagios.

Seems that someone has to update the ebuild of ndoutils to a current version.





Reproducible: Always

Steps to Reproduce:
1.build current ndoutils-2.0.0 + nagios-4.2.2
2.try to start nagios with ndomod
3.see your nagios.log
Actual Results:  
nagios.log:
[1478856265] ndomod: NDOMOD 2.0.0 (02-28-2014) Copyright (c) 2009 Nagios Core Development Team and Community Contributors
[1478856265] ndomod: I've been compiled with support for revision 402 of the internal Nagios object structures, but the Nagios daemon is currently using revision 403.  I'm going to unload so I don't cause any problems...
[1478856265] Error: Function nebmodule_init() in module '/usr/bin/ndomod.o' returned an error.  Module will be unloaded.
[1478856265] Event broker module '/usr/bin/ndomod.o' deinitialized successfully.
[1478856265] Error: Failed to load module '/usr/bin/ndomod.o'.
[1478856265] Error: Module loading failed. Aborting.
[1478856265] Event broker module 'NERD' deinitialized successfully.

Expected Results:  
ndomod should be loaded by nagios:

[1478856894] ndomod: NDOMOD 2.1.1 (09-06-2016) Copyright (c) 2009 Nagios Core Development Team and Community Contributors
[1478856894] ndomod: Successfully connected to data sink.  0 queued items to flush.
[1478856894] ndomod registered for process data
[1478856894] ndomod registered for timed event data
[1478856894] ndomod registered for log data'
[1478856894] ndomod registered for system command data'
[1478856894] ndomod registered for event handler data'
[1478856894] ndomod registered for notification data'
[1478856894] ndomod registered for service check data'
[1478856894] ndomod registered for host check data'
[1478856894] ndomod registered for comment data'
[1478856894] ndomod registered for downtime data'
[1478856894] ndomod registered for flapping data'
[1478856894] ndomod registered for program status data'
[1478856894] ndomod registered for host status data'
[1478856894] ndomod registered for service status data'
[1478856894] ndomod registered for adaptive program data'
[1478856894] ndomod registered for adaptive host data'
[1478856894] ndomod registered for adaptive service data'
[1478856894] ndomod registered for external command data'
[1478856894] ndomod registered for aggregated status data'
[1478856894] ndomod registered for retention data'
[1478856894] ndomod registered for contact data'
[1478856894] ndomod registered for contact notification data'
[1478856894] ndomod registered for acknowledgement data'
[1478856894] ndomod registered for state change data'
[1478856894] ndomod registered for contact status data'
[1478856894] ndomod registered for adaptive contact data'
[1478856894] Event broker module '/usr/bin/ndomod.o' initialized successfully.


If you need help fiddeling a current ebuild for ndoutils 2.0.0 pls just ask - will take the time then here to provide one.


Niels Dettenbach.
Comment 1 Michael Orlitzky gentoo-dev 2016-11-13 15:17:28 UTC
CANTFIX at the moment:

https://github.com/NagiosEnterprises/ndoutils/issues/28
Comment 2 Michael Orlitzky gentoo-dev 2016-11-15 00:43:58 UTC
Eventual reminder: one of the patches we're carrying (the one that adds the unistd.h include) can now be dropped. That include is handled by include/config.h.
Comment 3 Niels Dettenbach 2016-12-16 09:23:24 UTC
So does it makes sense to correct the dependencies of nodutils ebuild against a maximum possible nagios version? This may / could help others to not run into the same scenario...

tnx + best regards,

Niels.
Comment 4 Michael Orlitzky gentoo-dev 2016-12-16 22:17:13 UTC
(In reply to Niels Dettenbach from comment #3)
> So does it makes sense to correct the dependencies of nodutils ebuild
> against a maximum possible nagios version? This may / could help others to
> not run into the same scenario...
> 
> tnx + best regards,
> 
> Niels.

Yes, it makes sense. The DESTDIR issue I ran into when I tried to update our ebuild has been fixed. The next version of ndoutils (not yet released) should work and I'll add it to the tree.
Comment 5 Larry the Git Cow gentoo-dev 2017-11-07 12:35:20 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a76473925572d2be605f50db49f33d2a19efbafd

commit a76473925572d2be605f50db49f33d2a19efbafd
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2017-11-07 00:37:59 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2017-11-07 12:34:23 +0000

    net-analyzer/ndoutils: new version 2.1.3.
    
    This is somewhat of a work in progress. The new version 2.1.3 is
    intended mainly to fix the compatibility with modern versions of
    nagios-core. However, there are still several fixes in the pipeline
    that we're having to carry patches for in the meantime:
    
      * format-security warnings (upstream pull request 42)
      * default PID file location (upstream pull request 44)
      * asprintf compile warnings (upstream issue 43)
      * openrc service file improvements (not yet submitted)
    
    The last patch has not been submitted because I'm waiting on a
    response for upstream issue 45 that affects the init scripts.
    Regardless, we might as well push out v2.1.3 now, since it has
    to work better than v2.0.0.
    
    Closes: https://bugs.gentoo.org/599452
    Package-Manager: Portage-2.3.8, Repoman-2.3.3

 net-analyzer/ndoutils/Manifest                     |   2 +-
 net-analyzer/ndoutils/files/format-security.patch  | 115 +++++++++++++++++++++
 net-analyzer/ndoutils/files/ndo2db.init-nagios3    |  24 -----
 .../ndoutils/files/ndoutils-2.0.0-asprintf.patch   |   6 ++
 .../ndoutils/files/ndoutils-2.0.0-sleep.patch      |  10 --
 net-analyzer/ndoutils/files/openrc-init.patch      | 100 ++++++++++++++++++
 .../ndoutils/files/sample-config-piddir.patch      |  32 ++++++
 net-analyzer/ndoutils/ndoutils-2.0.0.ebuild        |  67 ------------
 net-analyzer/ndoutils/ndoutils-2.1.3.ebuild        |  89 ++++++++++++++++
 9 files changed, 343 insertions(+), 102 deletions(-)