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

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


The following commit has been merged in the debian/master branch:
commit da1913a2dd5f46051dc034a585c57ca9bb8ee110
Author: nap <naparuba at gmail.com>
Date:   Sat Jan 14 14:57:36 2012 +0100

    Add : mongodb service pack. Need to finish it.

diff --git a/etc/packs/databases/mongodb/commands.cfg b/etc/packs/databases/mongodb/commands.cfg
new file mode 100644
index 0000000..f1b76c0
--- /dev/null
+++ b/etc/packs/databases/mongodb/commands.cfg
@@ -0,0 +1,28 @@
+# Get the moongodb script at https://raw.github.com/mzupan/nagios-plugin-mongodb/master/check_mongodb.py
+
+# Warn at 2s connection, crit at 4.
+define command {
+       command_name     check_mongodb_connection
+       command_line	$PLUGINSDIR$/check_mongodb.py -H $HOSTADDRESS$ -P 27017 -A connect -W 2 -c 4
+}
+
+
+# % of open connection
+define command {
+       command_name     check_mongodb_open_connections
+       command_line	$PLUGINSDIR$/check_mongodb.py -H $HOSTADDRESS$ -P 27017 -A connections -W 70 -c 80
+}
+
+
+# Replication lag. Warn at 15, crit at 30
+define command {
+       command_name     check_mongodb_replication_lag
+       command_line	$PLUGINSDIR$/check_mongodb.py -H $HOSTADDRESS$ -P 27017 -A replication_lag -W 15 -c 30
+}
+
+# % time wher the db is lock
+define command {
+       command_name     check_mongodb_lock_time
+       command_line	$PLUGINSDIR$/check_mongodb.py -H $HOSTADDRESS$ -P 27017 -A lock -W 5 -c 10
+}
+
diff --git a/etc/packs/databases/mongodb/discovery.cfg b/etc/packs/databases/mongodb/discovery.cfg
new file mode 100644
index 0000000..d998127
--- /dev/null
+++ b/etc/packs/databases/mongodb/discovery.cfg
@@ -0,0 +1,8 @@
+
+# Sample discovery rule. Uncomment it and edit the filter
+define discoveryrule {
+       discoveryrule_name       mongodb
+       creation_type            host
+       openports                ^27017$
+       +use                     mongodb
+}
diff --git a/contrib/alternative-installation/shinken-install/tools/__init__.py b/etc/packs/databases/mongodb/macros.cfg
similarity index 100%
copy from contrib/alternative-installation/shinken-install/tools/__init__.py
copy to etc/packs/databases/mongodb/macros.cfg
diff --git a/etc/packs/databases/mongodb/services/connection.cfg b/etc/packs/databases/mongodb/services/connection.cfg
new file mode 100644
index 0000000..a08c8e3
--- /dev/null
+++ b/etc/packs/databases/mongodb/services/connection.cfg
@@ -0,0 +1,9 @@
+
+# This is a sample service, please change it!
+define service{
+   service_description    Connection
+   use                    generic-service
+   register               0
+   host_name	          mongodb
+   check_command          check_mongodb_connection
+}
diff --git a/etc/packs/databases/mongodb/services/lock_time.cfg b/etc/packs/databases/mongodb/services/lock_time.cfg
new file mode 100644
index 0000000..5090189
--- /dev/null
+++ b/etc/packs/databases/mongodb/services/lock_time.cfg
@@ -0,0 +1,8 @@
+
+define service{
+   service_description    LockTime
+   use                    generic-service
+   register               0
+   host_name	          mongodb
+   check_command          check_mongodb_lock_time
+}
diff --git a/etc/packs/databases/mongodb/services/open_connections.cfg b/etc/packs/databases/mongodb/services/open_connections.cfg
new file mode 100644
index 0000000..d59d7ec
--- /dev/null
+++ b/etc/packs/databases/mongodb/services/open_connections.cfg
@@ -0,0 +1,8 @@
+
+define service{
+   service_description    OpenConnections
+   use                    generic-service
+   register               0
+   host_name	          mongodb
+   check_command          check_mongodb_open_connections
+}
diff --git a/etc/packs/databases/mongodb/services/replication_lag.cfg b/etc/packs/databases/mongodb/services/replication_lag.cfg
new file mode 100644
index 0000000..550baa5
--- /dev/null
+++ b/etc/packs/databases/mongodb/services/replication_lag.cfg
@@ -0,0 +1,8 @@
+
+define service{
+   service_description    ReplicationLag
+   use                    generic-service
+   register               0
+   host_name	          mongodb
+   check_command          check_mongodb_replication_lag
+}
diff --git a/etc/packs/databases/mongodb/templates.cfg b/etc/packs/databases/mongodb/templates.cfg
new file mode 100644
index 0000000..4a7340e
--- /dev/null
+++ b/etc/packs/databases/mongodb/templates.cfg
@@ -0,0 +1,7 @@
+
+define host{
+   name				mongodb
+   use				generic-host
+   check_command           	check_ping
+   register			0
+}

-- 
UNNAMED PROJECT



More information about the Pkg-nagios-changes mailing list