monit-general
[Top][All Lists]
Advanced

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

[monit] check system resource con dition with action alert not work‏


From: noobss
Subject: [monit] check system resource con dition with action alert not work‏
Date: Thu, 11 Mar 2010 13:02:52 -0800 (PST)

 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.





reply via email to

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