Hi,

there are two kinds of CPU checks:

1.) system wide (with user/system/wait granularity) ... in the context of 
"check system ..."
2.) per-process (the Spamassassin example) ... in the context of "check process 
..."

On system-wide level there is no "total cpu" load ... in practice it's usually 
sufficient to use some reasonable value for usr/sys/wait and/or combine it with 
loadavg test, which is good indicator for real system load.

Regards,
Martin


On 31 Jul 2014, at 18:55, Francisco Reyes <[email protected]> wrote:

> I had this in my monitrc
>     if cpu usage (user) > 85% then alert
>     if cpu usage (system) > 65% then alert
>     if cpu usage (wait) > 30% then alert
> 
> CPU got to 100% and when I checked MMonit it was 65% user and 35% system.
> I went to the monit site to look for a syntax for cpu without specific type 
> and found
> 
> http://mmonit.com/wiki/Monit/ConfigurationExamples
> Spamassassin daemon (spam scan daemon) 
> if cpu usage > 99% for 5 cycles then alert
> 
> However, when I try 
> if cpu usage > 85 for 5 cycles then alert
> if cpu usage > 95 then alert
> 
> Both of those lines give errors.
> 
> monit --version
> This is Monit version 5.8
> 
> There is no way to check total CPU instead of user or system separately?
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general

--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
  • CPU syntax Francisco Reyes
    • Re: CPU syntax Martin Pala

Reply via email to