monit-general
[Top][All Lists]
Advanced

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

Re: [monit] check system resource condition with actio n alert not work‏


From: Martin Pala
Subject: Re: [monit] check system resource condition with actio n alert not work‏
Date: Thu, 11 Mar 2010 22:39:46 +0100

Hi,

do you have some alert target defined? (using global "set alert" or per-service 
"alert") If you have not added any mail address with alert statement, the alert 
action which is defined in your 5 cycles tests won't send anything because it 
doesn't know where to.

Regards,
Martin


On Mar 11, 2010, at 10:02 PM, noobss wrote:

> 
> i have problem this is my monit configuration file
> 
>         set daemon 1
>         check system localhost
>         if cpu usage (user) > 80% for 5 cycles then alert
>         if cpu usage (wait) > 90% for 5 cycles then alert
>         if cpu usage (system) > 60% for 10 cycles then exec "/bin/bash -c
> '/sbin/shutdown -r now'"
> 
> I expect with this configuration if cpu user > 90 % more than or equal 5
> seconds then alert but when i see in log file they are 5 alerts cpu usage
> message and it timestamps increse every second like this
> [ICT Mar 12 00:55:10] error    : 'localhost' cpu user usage of 92.2% matches
> resource limit [cpu user usage>80.0%]
> [ICT Mar 12 00:55:11] error    : 'localhost' cpu user usage of 89.1% matches
> resource limit [cpu user usage>80.0%]
> [ICT Mar 12 00:55:12] error    : 'localhost' cpu user usage of 94.2% matches
> resource limit [cpu user usage>80.0%]
> [ICT Mar 12 00:55:13] error    : 'localhost' cpu user usage of 92.1% matches
> resource limit [cpu user usage>80.0%]
> [ICT Mar 12 00:55:14] error    : 'localhost' cpu user usage of 87.2% matches
> resource limit [cpu user usage>80.0%]
> 
> but with action exec everything is fine after 10th cycles my machine restart
> immedietly 
> My Linux os is UBUNTU desktop 9.10 
> monit version 5.0.1
> 
> what is cause of this problem and how can i solve it 
> ---Thank you----
> -- 
> View this message in context: 
> http://old.nabble.com/-monit--check-system-resource-condition-with-action-alert-not-work%E2%80%8F-tp27869824p27869824.html
> Sent from the monit-general mailing list archive at Nabble.com.
> 
> 
> 
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general





reply via email to

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