[Nagiosplug-devel] [ nagiosplug-Bugs-1386144 ] Bug in check_mrtg plug-in

SourceForge.net noreply at sourceforge.net
Tue Jul 10 22:54:53 CEST 2007


Bugs item #1386144, was opened at 2005-12-20 14:16
Message generated for change (Settings changed) made by psychotrahe
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1386144&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General plugin execution
Group: None
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: James Turnbull (kartar)
Assigned to: Matthias Eble (psychotrahe)
Summary: Bug in check_mrtg plug-in

Initial Comment:
I get a segmentation fault when I run the check_mrtg
plugin on Red Hat Linux Enterprise 4.  The plug-in
version is 1.4.2.

I poked into the code of the plug-in and noticed this line:

int expire_minutes = 0;

I changed it to:

int expire_minutes = -1;

I recompiled the code and the segementation fault was
corrected.



----------------------------------------------------------------------

Comment By: Matthias Eble (psychotrahe)
Date: 2007-06-11 21:29

Message:
Logged In: YES 
user_id=1694341
Originator: NO

Thanks for your reply James,

it has really long time gone.
Is anyone of the devs running a rhel4 server with mrtg to check this?
If there are any other bugs concerning rhel4, i'll probably set up a
vmware image.
If not, i'll close it in the next days.

Again, thanks for your report.




----------------------------------------------------------------------

Comment By: James Turnbull (kartar)
Date: 2007-06-11 15:46

Message:
Logged In: YES 
user_id=1364759
Originator: YES

Matthias

Doesn't seem to but I only have RHEL 5 to test it on - may behave
differently on RHEL 4.  I know it's odd - I have no idea why the change
impacted it either - but it worked after that change.  I could find nothing
else in the compile environment to explain it working.  I am trying to rack
my brains as to what triggered me to change expire_minutes but *shrugs* it
was over a year ago.



----------------------------------------------------------------------

Comment By: Matthias Eble (psychotrahe)
Date: 2007-06-11 10:16

Message:
Logged In: YES 
user_id=1694341
Originator: NO

Announced pending state by sending emails to the participants.

----------------------------------------------------------------------

Comment By: Matthias Eble (psychotrahe)
Date: 2007-06-05 14:28

Message:
Logged In: YES 
user_id=1694341
Originator: NO

Hi James,

could you please tell us if this problem persists in the latest version
(1.4.9 or cvs snapshot)? If so, we need the command line you used (i guess
verbose output isn't possible with check_mrtg).
I watched the source and can, up to now, hardly imagine how setting
expire_minutes to -1 can prevent the plugin from segfaulting. We'll see..

Matthias

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1386144&group_id=29880




More information about the Devel mailing list