[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[monit] Monit LOG redirection issue
From: |
Navaneethakrishnan Goapl |
Subject: |
[monit] Monit LOG redirection issue |
Date: |
21 Feb 2008 12:45:25 -0000 |
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
|
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [monit] Monit LOG redirection issue,
Navaneethakrishnan Goapl <=