monit-general
[Top][All Lists]
Advanced

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

Re: [monit] no uptime/mem/cpu information


From: Jan-Henrik Haukeland
Subject: Re: [monit] no uptime/mem/cpu information
Date: Thu, 27 Nov 2008 19:11:37 +0100

Also try without mode manual as a service is then in unmonitored mode if I remember correctly. This would explain why it has no value and is colored orange.

On 27. nov.. 2008, at 19.06, Martin Pala wrote:

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





reply via email to

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