Please run monit with -v option (verbose) and check output ... there
are several possible reasons why the cpu/memory usage is not returned:
1.) the user under which monit is running doesn't have permissions
to read cpu and memory usage of processes (usually monit will need
to run as root)
2.) the cpu/memory usage monitoring was not enabled during compile
time
3.) the cpu/memory usage monitoring failed to initialize for some
other reason
The -v option should reveal the root cause.
Few questions:
- what monit version it is?
- what platform/OS it is?
- what user is used to run monit? root or other user?
Martin
On Nov 27, 2008, at 11:34 AM, address@hidden wrote:
Hi,
the html status page of monit shows no uptime/mem/cpu information
for these
processes, and then return an orange warning, so my customer has
difficulties
to know if its servers are OK or not... he has to call me to
verify... but
everything is fine.
Any idea ?
Regards,
Christophe
-----------------------------------------
The monitrc for theses processes :
#
## Courrier-imap
#
check process imapd with pidfile /var/run/imapd.pid
start program = "/etc/init.d/courier-imap start"
stop program = "/etc/init.d/courier-imap stop"
if failed port 143 protocol imap then restart
if 5 restarts within 5 cycles then timeout
group mail
mode manual
#
## ClamAV
#
check process clamd with pidfile /var/run/clamav/clamd.pid
start program = "/etc/init.d/clamav-daemon start"
stop program = "/etc/init.d/clamav-daemon stop"
if 5 restarts within 5 cycles then timeout
group mail
mode manual
#
## Freshclam
#
check process freshclam with pidfile /var/run/clamav/freshclam.pid
start program = "/etc/init.d/clamav-freshclam start"
stop program = "/etc/init.d/clamav-freshclam stop"
if 5 restarts within 5 cycles then timeout
group mail
mode manual
#
## SpamAssassin
#
check process spamd with pidfile /var/run/spamd.pid
start program = "/etc/init.d/spamassassin start"
stop program = "/etc/init.d/spamassassin stop"
if 5 restarts within 5 cycles then timeout
group mail
mode manual
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general