Re: [gentoo-user] NdoUtils Wont Load module in nagios
On Monday, September 08, 2014 05:19:24 PM Jeff Smelser wrote: On Mon, Sep 8, 2014 at 5:04 PM, Alan McKinnon alan.mckin...@gmail.com wrote: Looks like your problem is not the same. I'm just starting myself to come to grips with this part of nagios, so I don't know how much further hhelp I can be. One thing that does stick out though is the taken literally, your error output cannot be correct. The file cannot possibly be not found when it quite obviously is right there on the disk :-) So one must now think further out the box. Either the error is completely wrong and the error handling code is buggy, or the message is incomplete somehow (eg maybe it's not the module that is not found but rather a file it references - or something like that). I recommend your next stop is the nagios user lists. Sorry I couldn;t assist more. I would agree. I just dont know how to get more info from it. I will head over there. One extra thing you could try is to do a trace of what the module is trying to do when it is loaded. Maybe it is missing a file (or not allowed to open it) after loading. The ldd output looks simple and it didn't show any other errors. Good luck with this and let us know when you do find the solution. I don't use this module with nagios, so can't help further. -- Joost
Re: [gentoo-user] NdoUtils Wont Load module in nagios
On Sunday, September 07, 2014 07:32:52 PM Jeff Smelser wrote: I have been racking my head trying to figure out why this module wont load. All the privs are correct as far as I can see. Sep 7 19:22:32 kyle nagios: Nagios 3.5.1 starting... (PID=32513) Sep 7 19:22:32 kyle nagios: Local time is Sun Sep 07 19:22:32 CDT 2014 Sep 7 19:22:32 kyle nagios: LOG VERSION: 2.0 Sep 7 19:22:32 kyle nagios: Error: Could not load module '/usr/bin/ndomod.o' - file not found What is the result of the following: # ls -lsah /usr/bin/ndomod.o ? -- Joost
Re: [gentoo-user] NdoUtils Wont Load module in nagios
On Sun, 7 Sep 2014 19:32:52 -0500, Jeff Smelser wrote: Sep 7 19:22:32 kyle nagios: Nagios 3.5.1 starting... (PID=32513) Sep 7 19:22:32 kyle nagios: Local time is Sun Sep 07 19:22:32 CDT 2014 Sep 7 19:22:32 kyle nagios: LOG VERSION: 2.0 Sep 7 19:22:32 kyle nagios: Error: Could not load module '/usr/bin/ndomod.o' - file not found That seems an odd location for a module. -- Neil Bothwick If a parsley farmer is sued, can they garnish his wages? signature.asc Description: PGP signature
Re: [gentoo-user] NdoUtils Wont Load module in nagios
On Mon, Sep 8, 2014 at 7:02 AM, J. Roeleveld jo...@antarean.org wrote: What is the result of the following: # ls -lsah /usr/bin/ndomod.o ? --()-[0s)# ls -lsah /usr/bin/ndomod.o 76K -rwxr-xr-x 1 nagios nagios 75K Sep 7 19:26 /usr/bin/ndomod.o
Re: [gentoo-user] NdoUtils Wont Load module in nagios
On 08/09/2014 02:32, Jeff Smelser wrote: I have been racking my head trying to figure out why this module wont load. All the privs are correct as far as I can see. Sep 7 19:22:32 kyle nagios: Nagios 3.5.1 starting... (PID=32513) Sep 7 19:22:32 kyle nagios: Local time is Sun Sep 07 19:22:32 CDT 2014 Sep 7 19:22:32 kyle nagios: LOG VERSION: 2.0 Sep 7 19:22:32 kyle nagios: Error: Could not load module '/usr/bin/ndomod.o' - file not found I cant even figure out how to get more debugging from the startup. :( Thanks, Jeff This post seems relevant: http://support.nagios.com/forum/viewtopic.php?t=8678p=41799 Also, selinux and such things might be interfering. Are you running selinux? -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] NdoUtils Wont Load module in nagios
Thanks, I saw that one. If I am reading it right, he was missing the broker_command= which I have: broker_module=/usr/bin/ndomod.o config_file=/etc/nagios/ndomod.cfg Then when he add's it, its loading he just doesnt have it config'd correctly: [18-12-2012 17:39:07] Finished daemonizing... (New PID=10105) [18-12-2012 17:39:07] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully. [18-12-2012 17:39:07] ndomod: Could not open data sink! I'll keep trying, but some output may get lost... [18-12-2012 17:39:07] ndomod: NDOMOD 1.5.2 (06-08-2012) Copyright (c) 2009 Nagios Core Development Team and Community Contributors [18-12-2012 17:39:07] LOG VERSION: 2.0 [ Let me know if I missed something. On Mon, Sep 8, 2014 at 10:02 AM, Alan McKinnon alan.mckin...@gmail.com wrote: On 08/09/2014 02:32, Jeff Smelser wrote: I have been racking my head trying to figure out why this module wont load. All the privs are correct as far as I can see. Sep 7 19:22:32 kyle nagios: Nagios 3.5.1 starting... (PID=32513) Sep 7 19:22:32 kyle nagios: Local time is Sun Sep 07 19:22:32 CDT 2014 Sep 7 19:22:32 kyle nagios: LOG VERSION: 2.0 Sep 7 19:22:32 kyle nagios: Error: Could not load module '/usr/bin/ndomod.o' - file not found I cant even figure out how to get more debugging from the startup. :( Thanks, Jeff This post seems relevant: http://support.nagios.com/forum/viewtopic.php?t=8678p=41799 Also, selinux and such things might be interfering. Are you running selinux? -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] NdoUtils Wont Load module in nagios
On 8 September 2014 16:52:58 CEST, Jeff Smelser trade...@gmail.com wrote: On Mon, Sep 8, 2014 at 7:02 AM, J. Roeleveld jo...@antarean.org wrote: What is the result of the following: # ls -lsah /usr/bin/ndomod.o ? --()-[0s)# ls -lsah /usr/bin/ndomod.o 76K -rwxr-xr-x 1 nagios nagios 75K Sep 7 19:26 /usr/bin/ndomod.o Assuming nagios runs as user 'nagios', can you run: # ldd /usr/bin/ndomod.o -- Joost -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Re: [gentoo-user] NdoUtils Wont Load module in nagios
On Mon, Sep 8, 2014 at 12:52 PM, J. Roeleveld jo...@antarean.org wrote: Assuming nagios runs as user 'nagios', can you run: # ldd /usr/bin/ndomod.o --()-[78s)# sudo su - nagios nagios@kyle ~ $ ldd /usr/bin/ndomod.o linux-vdso.so.1 (0x7fff6e1c7000) libc.so.6 = /lib64/libc.so.6 (0x7f9dee041000) /lib64/ld-linux-x86-64.so.2 (0x7f9dee608000)
Re: [gentoo-user] NdoUtils Wont Load module in nagios
On 08/09/2014 17:14, Jeff Smelser wrote: Thanks, I saw that one. If I am reading it right, he was missing the broker_command= which I have: broker_module=/usr/bin/ndomod.o config_file=/etc/nagios/ndomod.cfg Then when he add's it, its loading he just doesnt have it config'd correctly: [18-12-2012 17:39:07] Finished daemonizing... (New PID=10105) [18-12-2012 17:39:07] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully. [18-12-2012 17:39:07] ndomod: Could not open data sink! I'll keep trying, but some output may get lost... [18-12-2012 17:39:07] ndomod: NDOMOD 1.5.2 (06-08-2012) Copyright (c) 2009 Nagios Core Development Team and Community Contributors [18-12-2012 17:39:07] LOG VERSION: 2.0 [ Let me know if I missed something. Looks like your problem is not the same. I'm just starting myself to come to grips with this part of nagios, so I don't know how much further hhelp I can be. One thing that does stick out though is the taken literally, your error output cannot be correct. The file cannot possibly be not found when it quite obviously is right there on the disk :-) So one must now think further out the box. Either the error is completely wrong and the error handling code is buggy, or the message is incomplete somehow (eg maybe it's not the module that is not found but rather a file it references - or something like that). I recommend your next stop is the nagios user lists. Sorry I couldn;t assist more. On Mon, Sep 8, 2014 at 10:02 AM, Alan McKinnon alan.mckin...@gmail.com mailto:alan.mckin...@gmail.com wrote: On 08/09/2014 02:32, Jeff Smelser wrote: I have been racking my head trying to figure out why this module wont load. All the privs are correct as far as I can see. Sep 7 19:22:32 kyle nagios: Nagios 3.5.1 starting... (PID=32513) Sep 7 19:22:32 kyle nagios: Local time is Sun Sep 07 19:22:32 CDT 2014 Sep 7 19:22:32 kyle nagios: LOG VERSION: 2.0 Sep 7 19:22:32 kyle nagios: Error: Could not load module '/usr/bin/ndomod.o' - file not found I cant even figure out how to get more debugging from the startup. :( Thanks, Jeff This post seems relevant: http://support.nagios.com/forum/viewtopic.php?t=8678p=41799 Also, selinux and such things might be interfering. Are you running selinux? -- Alan McKinnon alan.mckin...@gmail.com mailto:alan.mckin...@gmail.com -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] NdoUtils Wont Load module in nagios
On Mon, Sep 8, 2014 at 5:04 PM, Alan McKinnon alan.mckin...@gmail.com wrote: Looks like your problem is not the same. I'm just starting myself to come to grips with this part of nagios, so I don't know how much further hhelp I can be. One thing that does stick out though is the taken literally, your error output cannot be correct. The file cannot possibly be not found when it quite obviously is right there on the disk :-) So one must now think further out the box. Either the error is completely wrong and the error handling code is buggy, or the message is incomplete somehow (eg maybe it's not the module that is not found but rather a file it references - or something like that). I recommend your next stop is the nagios user lists. Sorry I couldn;t assist more. I would agree. I just dont know how to get more info from it. I will head over there. Thanks for the help so far, Jeff
[gentoo-user] NdoUtils Wont Load module in nagios
I have been racking my head trying to figure out why this module wont load. All the privs are correct as far as I can see. Sep 7 19:22:32 kyle nagios: Nagios 3.5.1 starting... (PID=32513) Sep 7 19:22:32 kyle nagios: Local time is Sun Sep 07 19:22:32 CDT 2014 Sep 7 19:22:32 kyle nagios: LOG VERSION: 2.0 Sep 7 19:22:32 kyle nagios: Error: Could not load module '/usr/bin/ndomod.o' - file not found I cant even figure out how to get more debugging from the startup. :( Thanks, Jeff