monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: receiving memory corruption when trying to run monit


From: Martin Pala
Subject: Re: receiving memory corruption when trying to run monit
Date: Wed, 10 Jan 2007 01:09:09 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061219 Iceape/1.0.7 (Debian-1.0.7-1)

Fixed in cvs, you can get the current version here:

http://savannah.nongnu.org/cvs/?group=monit

The cvs version should be safe to use, there are several bugfixes since 4.8.2 . We will soon start the release process of 4.9 based on this version.

Martin


Martin Pala wrote:
Your configuration has no access list for http interface, thus the http thread won't start ... you will find following message in your log (you can run monit using -v option as well):

--8<--
Jan  9 23:52:45 unicorn monit[3523]: monit: monit httpd not started
since no connect allowed
--8<--

Monit tries (erroneously) join the non-existing thread on quit ... i will fix it.

You can fix the problem by setting the ACL for the http thread - you can use password protection, IP ACL or combination of both, for example:

--8<--
set httpd port 8135 and allow monit:monit
--8<--


Thanks for report :)

Martin


Adam Greene wrote:
Hello,
I installed monit from source on CentOS.

-bash-3.00# uname -a
Linux <node name> 2.6.9-42.0.2.EL.xs148xenU #1 SMP Sun Oct 15 08:31:21 EDT 2006 i686 athlon i386 GNU/Linux


If the config file doesn't contain any monitoring checks, it boots up just fine. However, if I quit it, I see this:

-bash-3.00# pwd
/etc/monit.d
-bash-3.00# ls
includes  monitrc
-bash-3.00# monit
Starting monit daemon with http interface at [*:8135]
-bash-3.00# monit quit
monit daemon with pid [30556] killed
*** glibc detected *** double free or corruption (!prev): 0x090e7448 ***
Aborted

now if I put a basic cron check in the config file, it won't even startup...it will fail with this:

-bash-3.00# pwd
/etc/monit.d
-bash-3.00# ls
includes  monitrc
-bash-3.00# monit
Segmentation fault

I've tried recompiling with:
export MALLOC_CHECK_=0

but no luck. I'm totally stumped! Does anyone have any ideas on how to proceed?

thanks!
Adam


ps.  The config file in question:

set daemon     120
set logfile syslog facility log_daemon
set mailserver 127.0.0.1
set alert      address@hidden
set mail-format { from: address@hidden }
set httpd port 8135



--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general


--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general






reply via email to

[Prev in Thread] Current Thread [Next in Thread]