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