Can't load module "undefined symbol: delete_downtime....."

69 views
Skip to first unread message

Martin

unread,
Mar 23, 2013, 1:42:02 PM3/23/13
to na...@googlegroups.com

Hi,

I just installed nagmq on my nagios server. I want to be able to receives updates over server status on a other server (realtime). I think nagmq makes this possible.

But I'm unable to load the module. This is the error that I'm getting.

[code]
[1364060148] Nagios 3.2.0 starting... (PID=15905)
[1364060148] Local time is Sat Mar 23 18:35:48 CET 2013
[1364060148] LOG VERSION: 2.0
[1364060148] Error: Could not load module '/usr/local/lib/nagmq/nagmq.so' -> /var/lib/nagios3/spool/checkresults/nebmody2rdoY: undefined symbol: delete_downtime_by_hostname_service_description_start_time_comment
[/code]


I compiled it with zeromq 3.2.2 on ubunt with nagio 3.2.0. Am I missing something?

Jonathan Reams

unread,
Mar 23, 2013, 2:16:00 PM3/23/13
to Martin, na...@googlegroups.com
I've never tested NagMQ against a version of Nagios as old as 3.2.0, it looks like the delete_downtime_by_... function was introduced in 3.3.1. You could try applying the patch included below and recompiling, but there may be other missing symbols when trying to run against Nagios 3.2.x.

JBR

--- a/mods/nagmq_pull.c
+++ b/mods/nagmq_pull.c
@@ -425,6 +425,7 @@ static void process_cmd(json_t * payload) {
                        enable_and_propagate_notifications(host_target, level,
                                affect_top_host, affect_hosts, affect_services);
        }
+#if 0
        else if(strcmp(cmd_name, "delete_downtime") == 0) {
                char * comment = NULL;
                time_t start_time = 0;
@@ -435,6 +436,7 @@ static void process_cmd(json_t * payload) {
                delete_downtime_by_hostname_service_description_start_time_comment(
                        host_name, service_description, start_time, comment);
        }
+#endif
 
        json_decref(payload);
 }




--
You received this message because you are subscribed to the Google Groups "NagMQ Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nagmq+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Martin

unread,
Mar 23, 2013, 2:44:13 PM3/23/13
to na...@googlegroups.com, Martin
Tried that, now I get error:

[1364064054] Error: Function nebmodule_init() in module '/usr/local/lib/nagmq/nagmq.so' returned an error.  Module will be unloaded.


But I think it is better to upgrade to a newer nagios version and hope that it works when done that.

Jonathan Reams

unread,
Mar 23, 2013, 2:55:15 PM3/23/13
to Martin, na...@googlegroups.com
Sounds good. Any errors that would prevent NagMQ from running (excluding linker errors) do get logged to syslog, so you might check there if it says the module returned an error.

JBR

Martin

unread,
Mar 23, 2013, 3:22:23 PM3/23/13
to na...@googlegroups.com, Martin
Ah I see, now I broke my config. it works now on nagios 3.2 thanks for your help!
Reply all
Reply to author
Forward
0 new messages