[op5-users] [PATCH] NOC/poller check disabling fixes

Sean Millichamp sean at bruenor.org
Thu Oct 29 20:46:55 CET 2009


On Wed, 2009-10-28 at 15:50 +0100, Andreas Ericsson wrote:

> You're on the right track. The proper solution is to allocate one integer
> value and stash that in the hash-table instead of relying on the int-to-
> pointer juggling we're currently doing.  Incidentally, this will also get
> rid of some compilation warnings on 64-bit systems.

I have patched Merlin to behave that way and while the hosts get
properly categorized and added to the hash table now I get an almost
immediate Nagios segfault.  Despite a fair amount of invested time, I
haven't been able to hunt down the cause.

I am going to stop looking into this particular issue as I have hit a
limit somewhere in my understanding of Nagios/Merlin/debugging C but I
wanted to post the patch anyway in case it was of interest to someone
else.  For now I am going to disable all active checks on the NOC, as
suggested by Russell Jennings, and not rely on Merlin to handle check
activation/deactivation.

Sean

-------------- next part --------------
A non-text attachment was scrubbed...
Name: merlin-hashvalues-as-pointers.patch
Type: text/x-patch
Size: 3350 bytes
Desc: not available
Url : http://lists.op5.com/pipermail/op5-users/attachments/20091029/b74782c3/attachment.bin 


More information about the op5-users mailing list