[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a

nap naparuba at gmail.com
Tue Feb 28 22:13:53 UTC 2012


The following commit has been merged in the debian/master branch:
commit 6efa5794a68f7a939f54dc562681258e4905f33a
Author: nap <naparuba at gmail.com>
Date:   Sat Jan 14 21:10:20 2012 +0100

    Add : end of mongodb service pack.

diff --git a/etc/packs/databases/mongodb/commands.cfg b/etc/packs/databases/mongodb/commands.cfg
index f1b76c0..83ed8a2 100644
--- a/etc/packs/databases/mongodb/commands.cfg
+++ b/etc/packs/databases/mongodb/commands.cfg
@@ -26,3 +26,35 @@ define command {
        command_line	$PLUGINSDIR$/check_mongodb.py -H $HOSTADDRESS$ -P 27017 -A lock -W 5 -c 10
 }
 
+
+# Average flush time, in ms
+define command {
+       command_name     check_mongodb_flush_time
+       command_line	$PLUGINSDIR$/check_mongodb.py -H $HOSTADDRESS$ -P 27017 -A flushing -W 100 -c 200
+}
+
+
+# Lastf lush time in ms
+define command {
+       command_name     check_mongodb_last_flush
+       command_line	$PLUGINSDIR$/check_mongodb.py -H $HOSTADDRESS$ -P 27017 -A last_flush_time -W 200 -c 400
+}
+
+
+
+# Check the replicaset
+define command {
+       command_name     check_mongodb_replicaset
+       command_line	$PLUGINSDIR$/check_mongodb.py -H $HOSTADDRESS$ -P 27017 -A replset_state -W 0 -c 0
+}
+
+
+
+# Check the index miss ratio
+define command {
+       command_name     check_mongodb_index_miss_ratio
+       command_line	$PLUGINSDIR$/check_mongodb.py -H $HOSTADDRESS$ -P 27017 -A index_miss_ration -W .005 -c .01
+}
+
+
+
diff --git a/etc/packs/databases/mongodb/services/lock_time.cfg b/etc/packs/databases/mongodb/services/flush_time.cfg
similarity index 57%
copy from etc/packs/databases/mongodb/services/lock_time.cfg
copy to etc/packs/databases/mongodb/services/flush_time.cfg
index 5090189..2838512 100644
--- a/etc/packs/databases/mongodb/services/lock_time.cfg
+++ b/etc/packs/databases/mongodb/services/flush_time.cfg
@@ -1,8 +1,8 @@
 
 define service{
-   service_description    LockTime
+   service_description    FlushTime
    use                    generic-service
    register               0
    host_name	          mongodb
-   check_command          check_mongodb_lock_time
+   check_command          check_mongodb_flush_time
 }
diff --git a/etc/packs/databases/mongodb/services/lock_time.cfg b/etc/packs/databases/mongodb/services/index_miss_ratio.cfg
similarity index 55%
copy from etc/packs/databases/mongodb/services/lock_time.cfg
copy to etc/packs/databases/mongodb/services/index_miss_ratio.cfg
index 5090189..0bf35ce 100644
--- a/etc/packs/databases/mongodb/services/lock_time.cfg
+++ b/etc/packs/databases/mongodb/services/index_miss_ratio.cfg
@@ -1,8 +1,8 @@
 
 define service{
-   service_description    LockTime
+   service_description    IndexMissRatio
    use                    generic-service
    register               0
    host_name	          mongodb
-   check_command          check_mongodb_lock_time
+   check_command          check_mongodb_index_miss_ratio
 }
diff --git a/etc/packs/databases/mongodb/services/lock_time.cfg b/etc/packs/databases/mongodb/services/last_flush.cfg
similarity index 57%
copy from etc/packs/databases/mongodb/services/lock_time.cfg
copy to etc/packs/databases/mongodb/services/last_flush.cfg
index 5090189..54cac90 100644
--- a/etc/packs/databases/mongodb/services/lock_time.cfg
+++ b/etc/packs/databases/mongodb/services/last_flush.cfg
@@ -1,8 +1,8 @@
 
 define service{
-   service_description    LockTime
+   service_description    LastFlush
    use                    generic-service
    register               0
    host_name	          mongodb
-   check_command          check_mongodb_lock_time
+   check_command          check_mongodb_last_flush
 }
diff --git a/etc/packs/databases/mongodb/services/lock_time.cfg b/etc/packs/databases/mongodb/services/replicatset.cfg
similarity index 57%
copy from etc/packs/databases/mongodb/services/lock_time.cfg
copy to etc/packs/databases/mongodb/services/replicatset.cfg
index 5090189..b8d9ad6 100644
--- a/etc/packs/databases/mongodb/services/lock_time.cfg
+++ b/etc/packs/databases/mongodb/services/replicatset.cfg
@@ -1,8 +1,8 @@
 
 define service{
-   service_description    LockTime
+   service_description    Replicaset
    use                    generic-service
    register               0
    host_name	          mongodb
-   check_command          check_mongodb_lock_time
+   check_command          check_mongodb_replicaset
 }

-- 
UNNAMED PROJECT



More information about the Pkg-nagios-changes mailing list