9 Apr
2015
9 Apr
'15
12:50 a.m.
Hi all, I do want to delay CPU load red alert. As you know the default yellow or red based on the >threshold number but I want that include time delay. If the CPU load 9 and stay like that for 15 >min the color to change red instead of turn red immidiatly reach 8.
Current setup
Load. 6.0 9.0
For idle
DS CPU vmstat.rrd:CPU_IDL <10 color=red "TEXT=CPU usage critical"
Thanks
Have a look at the help text in alerts.cfg. You can use the DURATION flag:
A sample rule:
HOST=www.foo.com SERVICE=http
MAIL webadmin at foo.com REPEAT=20 RECOVERED
MAIL cio at foo.com DURATION>60 COLOR=red
SCRIPT /usr/local/bin/sendsms 1234567890 FORMAT=SMS
cheers.