On Tue, 17 Jan 2012, Michael Friedrich wrote:

> Just keep in mind that this won't solve the libdbi problem you are
> having on your arch.

    Indeed it didn't, but I got some time today to fiddle with it and
it looks like I've got it solved.

    This was a multi-pronged problem, some of which was in my build
environment (two concurrent versions of MySQL running and limking
against the "wrong" one) and some code problems in the ido2db.c
file.

    The former I got rid of by removing the old MySQL-4 installation
and the latter by cleaning up some stuff.

    Specifically, in ido2db.c, at line 1457, changing

printf("  USED1: %lu, BYTES: %lu, LINES: %lu\n", dbuf->used_size,
    idi->bytes_processed, idi->lines_processed);

to

printf("  USED1: %lu, BYTES: %lu, LINES: %lu\n", dbuf.used_size, 
idi->bytes_processed, idi->lines_processed);

which was causing compilation errors when DEBUG_IDO2DB2 was defined,
This was a by-product of the ndoutils code passing "dbuf" in via
the function call where idoutils has "dbuf" as a global.

commenting out a debug statement at line 1510 (not the best avenue,
I know, and I'll come up with something beter),

and adding some sanity-checking at lines 1820 and 1821 to avoid
passing a null pointer:

(val == NULL) ? "" : val

instead of passing val out unchecked.

    Once I have a proper fix for the debug statement (which can
be called when the instance_name is still unset) I'll do up a
proper patch.  Should I submit this, and if so, to where?

    By the by, all the work was done on gcc 2.95.3, so that means
that I wasn't staring at a compiler error.

    Now it's just a matter of lightly massaging some of my plugins
and I can retire Nagios.

    Cheers!

+------------------------------------------------+---------------------+
| Carl Richard Friend (UNIX Sysadmin)            | West Boylston       |
| Minicomputer Collector / Enthusiast            | Massachusetts, USA  |
| mailto:crfri...@rcn.com                        +---------------------+
| http://users.rcn.com/crfriend/museum           | ICBM: 42:22N 71:47W |
+------------------------------------------------+---------------------+

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to