summaryrefslogtreecommitdiffstats
path: root/conf.d/health.d
diff options
context:
space:
mode:
authorjnogol <jano.catorce@gmail.com>2017-05-30 09:21:29 +0200
committerjnogol <jano.catorce@gmail.com>2017-05-30 09:21:29 +0200
commitb566bfc4ab1768f2b345d64efebff27ff74f7a3b (patch)
treec30bb13afdefebd6f2c8dafa5f4975109d9810a7 /conf.d/health.d
parent78cca3e0a2050f911681a45e5eb37369384dc098 (diff)
Added MongoDB alarm configuration
Diffstat (limited to 'conf.d/health.d')
-rw-r--r--conf.d/health.d/mongo.conf13
1 files changed, 13 insertions, 0 deletions
diff --git a/conf.d/health.d/mongo.conf b/conf.d/health.d/mongo.conf
new file mode 100644
index 0000000000..a80cb3112f
--- /dev/null
+++ b/conf.d/health.d/mongo.conf
@@ -0,0 +1,13 @@
+
+# make sure mongodb is running
+
+template: mongodb_last_collected_secs
+ on: mongodb.read_operations
+ calc: $now - $last_collected_t
+ units: seconds ago
+ every: 10s
+ warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every))
+ crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every))
+ delay: down 5m multiplier 1.5 max 1h
+ info: number of seconds since the last successful data collection
+ to: dba