monit-general
[Top][All Lists]
Advanced

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

Re: <2nd Try>Re: [monit] Monit LOG redirection issue


From: Martin Pala
Subject: Re: <2nd Try>Re: [monit] Monit LOG redirection issue
Date: Mon, 25 Feb 2008 21:04:45 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080129 Iceape/1.1.8 (Debian-1.1.8-2)

When the -I option is used, the logs go to the console. The -v option stands for "verbose" and as such logs lot of messages intended for diagnostics.

I recommend to remove the -v option (keep just "-Ic /etc/monitrc") and you should get just what you want.


Martin



Navaneethakrishnan Goapl wrote:
Could some one provide solution to this?

On Thu, 21 Feb 2008 Navaneethakrishnan  Goapl wrote :
 >
 >Hi,
 >
>I have query in MONIT log redirection. I am trying to start monit by INIT process.
 >
 >MONIT Version
 >-------------
 >-monit version 4.9
 >-CentOS release 4.4 (Final)
 >
 >Following is my initial configuration
 >-------------------------------------
 >
 >/etc/inittab
 >mo:2345:respawn:/usr/bin/monit -Ivc /etc/monitrc
 >m0:06:wait:/usr/bin/monit -Ivc /etc/monitrc stop all
 >
 >
 ><monitrc>
 >set init
 >set daemon 60
 >set httpd port 2812
 >        allow localhost
 >set logfile /var/log/monit_errors.log
 >
 >
>Monit is started properly and logs are redirected to monit_errors.log. But after every one minute log messages are shown in my console terminal(display window)even though I have redirected logs to monit_errors.log(It also redirects the log to LOG file).
 >
>Is there any way to avoid the above problem? MONIT log messages should not be shown in the console terminal( user display).
 >
>I tried the following config in /etc/inittab to avoid the redirection problem.
 >
 >Modified /etc/inittab
 >mo:2345:respawn:/usr/bin/monit -Ivc /etc/monitrc  > /dev/null 2>&1
 >m0:06:wait:/usr/bin/monit -Ivc /etc/monitrc stop all
 >
>The above config does solve the log redirection problem. But I am facing yet another issue(needs to be confirmed is an issue or not).
 >
>Due to above config I am not seeing "MONIT http server stopped" message in the display window, while REBOOTing the machine.
 >
>But with the earlier config in inittab (without "> /dev/null" redirection), I WAS seeing "MONIT http server stopped" message in the display window while REBOOTing machine.
 >
 >So my concern is, whether MONIT stops properly before shutdown/reboot.
>I didn't re-direct m0 entry in /etc/inittab, but still "MONIT shutdown" message is not shown.
 >
 >Could some one point me a solution to solve above issues?
 >
 >Regards,
 >Navanee
 >--
 >To unsubscribe:
 >http://lists.nongnu.org/mailman/listinfo/monit-general



Nokia <http://adworks.rediff.com/cgi-bin/AdWorks/click.cgi/www.rediff.com/signature-home.htm/address@hidden/2049419_2042109/2049429/1?PARTNER=3&OAS_QUERY=null>


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

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




reply via email to

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