Created
December 7, 2015 19:45
-
-
Save ctdk/e7220c64ef72299feaeb to your computer and use it in GitHub Desktop.
Revisions
-
ctdk created this gist
Dec 7, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ lookup load_host { entry host=cassandra* { highCrit = 10 highWarn = 8 } entry host=mariadb* { highCrit = 8 highWarn = 6 } entry host=* { highCrit = 1 highWarn = 0 } } alert load { template = generic $metric = collectd.*.*.*.load.load.longterm $query = aliasByNode(perSecond($metric),3) $graphData = graphite("movingAverage($query,40)", "20m", "", "host") $val = avg(graphite("$query","5m", "","host")) warn = $val > lookup("load_host", "highWarn") crit = $val > lookup("load_host", "highCrit") critNotification = critNot warnNotification = default }