[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: very high cpu percentage
From: |
Mike Robertson |
Subject: |
RE: very high cpu percentage |
Date: |
Tue, 27 Jun 2006 09:10:00 -0500 |
Attached is the info you requested
-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf
Of Martin Pala
Sent: Tuesday, June 27, 2006 8:55 AM
To: address@hidden; This is the general mailing list for monit
Subject: Re: very high cpu percentage
Hi,
1.) please try to run monit in foreground for few cycles and send us the
output (stop monit daemon and run "monit -vI" for few cycles).
2.) please attach the output of:
cat /proc/stat
cat /proc/cpuinfo
Thanks,
Martin
Mike Robertson wrote:
>
>
> I am receiving erroneous cpu percentages on a system that has this
> configuration, this happens on every cycle - could somebody help me out.
>
>
>
>
>
> address@hidden ~]$ cat /etc/redhat-rel*
>
> CentOS release 4.3 (Final)
>
> address@hidden ~]$ uname -a
>
> Linux lhummer 2.6.9-34.0.1.EL #1 Wed May 24 07:40:56 CDT 2006 i686
> athlon i386 GNU/Linux
>
> address@hidden ~]$ monit -V
>
> This is monit version 4.8.1
>
> Copyright (C) 2000-2006 by the monit project group. All Rights Reserved.
>
>
>
> Monit.conf
>
> set daemon 120
>
> set logfile /var/log/monit
>
> set eventqueue
>
> set httpd port 2813 and
>
> check system myhost.mydomain.tld
>
> if loadavg (1min) > 4 then alert
>
> if loadavg (5min) > 2 then alert
>
> if memory usage > 75% then alert
>
> if cpu usage (user) > 70% then alert
>
> if cpu usage (system) > 70% then alert
>
> if cpu usage (wait) > 20% then alert
>
> check process httpd with pidfile /var/run/httpd.pid
>
> start program = "/etc/init.d/httpd start"
>
> stop program = "/etc/init.d/httpd stop"
>
> if cpu > 60% for 2 cycles then alert
>
> if cpu > 80% for 5 cycles then restart
>
> if totalmem > 200.0 MB for 5 cycles then restart
>
> if children > 250 then restart
>
> if loadavg(5min) greater than 10 for 8 cycles then stop
>
> if failed host localhost port 80 protocol http
>
> and request "/bb/bb.html"
>
> then restart
>
> include /etc/monit.d/*.conf
>
>
>
> email messages
>
>
>
> Resource limit matched Service myhost.mydomain.tld
>
>
>
> Date: Tue, 27 Jun 2006 08:20:54 -0500
>
> Action: alert
>
> Host: lhummer
>
> Description: 'myhost.mydomain.tld' cpu user usage of 687.8%
> matches resource limit [cpu user usage>70.0%]
>
>
>
> Your faithful employee,
>
> monit
>
>
>
> Resource limit matched Service myhost.mydomain.tld
>
>
>
> Date: Tue, 27 Jun 2006 08:20:54 -0500
>
> Action: alert
>
> Host: lhummer
>
> Description: 'myhost.mydomain.tld' cpu system usage of 687.8%
> matches resource limit [cpu system usage>30.0%]
>
>
>
> Your faithful employee,
>
> monit
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general
proc.cpuinfo
Description: Binary data
monit.log
Description: Binary data
proc.stat
Description: Binary data