[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a
nap
naparuba at gmail.com
Tue Feb 28 22:09:05 UTC 2012
The following commit has been merged in the debian/master branch:
commit 6441bcdcc92553ce733c9442e26f9709afcbfecf
Author: nap <naparuba at gmail.com>
Date: Sat Dec 17 18:36:15 2011 +0100
Add : bunch of defaults checks for mysql, esx and mssql. Need to finish the mssql services that are using it.
diff --git a/etc/commands.cfg b/etc/commands.cfg
index f7d7002..c39402a 100644
--- a/etc/commands.cfg
+++ b/etc/commands.cfg
@@ -37,6 +37,92 @@ define command {
}
+# -----------------------------------------------------------------
+#
+# Linux standard check
+#
+# -----------------------------------------------------------------
+
+#
+define command {
+ command_name check_linux_load
+ command_line $PLUGINSDIR$/check_by_ssh -H $HOSTADDRESS$ -C "$PLUGINSDIR$/check_load -w 3,3,3 -c 5,5,5"
+}
+
+define command {
+ command_name check_linux_disks
+ command_line $PLUGINSDIR$/check_by_ssh -H $HOSTADDRESS$ -C "$PLUGINSDIR$/check_disk -w 10% -c 5% -x /dev/shm -e -l"
+}
+
+
+
+# -----------------------------------------------------------------
+#
+# VMware standard check
+#
+# -----------------------------------------------------------------
+
+
+
+## Generic calls
+##ARG1 and take cpu, io, net or mem
+define command{
+ command_name check_esx_host
+ command_line $PLUGINSDIR$/check_esx3.pl -D $VCENTER$ -H $HOSTADDRESS$ -u $VCENTERLOGIN$ -p $VCENTERPASSWORD$ -l $ARG1$
+}
+
+define command{
+ command_name check_esx_vm
+ command_line $PLUGINSDIR$/check_esx3.pl -D $VCENTER$ -N $HOSTALIAS$ -u $VCENTERLOGIN$ -p $VCENTERPASSWORD$ -l $ARG1$
+}
+
+
+define command{
+ command_name check_esx_host_cpu
+ command_line $PLUGINSDIR$/check_esx3.pl -D $VCENTER$ -H $HOSTADDRESS$ -u $VCENTERLOGIN$ -p $VCENTERPASSWORD$ -l cpu
+}
+
+define command{
+ command_name check_esx_host_io
+ command_line $PLUGINSDIR$/check_esx3.pl -D $VCENTER$ -H $HOSTADDRESS$ -u $VCENTERLOGIN$ -p $VCENTERPASSWORD$ -l io
+}
+
+define command{
+ command_name check_esx_host_net
+ command_line $PLUGINSDIR$/check_esx3.pl -D $VCENTER$ -H $HOSTADDRESS$ -u $VCENTERLOGIN$ -p $VCENTERPASSWORD$ -l net
+}
+
+
+define command{
+ command_name check_esx_host_mem
+ command_line $PLUGINSDIR$/check_esx3.pl -D $VCENTER$ -H $HOSTADDRESS$ -u $VCENTERLOGIN$ -p $VCENTERPASSWORD$ -l mem
+}
+
+
+# Now for the VMs
+define command{
+ command_name check_esx_vm_cpu
+ command_line $PLUGINSDIR$/check_esx3.pl -D $VCENTER$ -N $HOSTALIAS$ -u $VCENTERLOGIN$ -p $VCENTERPASSWORD$ -l cpu
+}
+
+define command{
+ command_name check_esx_vm_io
+ command_line $PLUGINSDIR$/check_esx3.pl -D $VCENTER$ -N $HOSTALIAS$ -u $VCENTERLOGIN$ -p $VCENTERPASSWORD$ -l io
+}
+
+define command{
+ command_name check_esx_vm_net
+ command_line $PLUGINSDIR$/check_esx3.pl -D $VCENTER$ -N $HOSTALIAS$ -u $VCENTERLOGIN$ -p $VCENTERPASSWORD$ -l net
+}
+
+define command{
+ command_name check_esx_vm_mem
+ command_line $PLUGINSDIR$/check_esx3.pl -D $VCENTER$ -N $HOSTALIAS$ -u $VCENTERLOGIN$ -p $VCENTERPASSWORD$ -l mem
+}
+
+
+
+
# -----------------------------------------------------------------
@@ -132,13 +218,6 @@ define command {
command_line $PLUGINSDIR$/check_oracle --tns $HOSTADDRESS$
}
-# Same but for MSSQL
-# Look at http://labs.consol.de/nagios/check_mssql_health/ to get it
-# Don't forget to change $MSSQLUSER$ and $MSSQLPASSWORD$ in resources.cfg before you use this ;)
-define command {
- command_name check_mssql_connection
- command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode connection-time
-}
# Ldap query
@@ -155,25 +234,255 @@ define command {
command_line $PLUGINSDIR$/check_ldaps -H $HOSTADDRESS$ -b "$LDAPBASE$" -D $DOMAINUSER$ -P "$DOMAINPASSWORD$"
}
+
+# -----------------------------------------------------------------
+#
+# Mysql calls. It use the check_mysql_health from
+# http://labs.consol.de/lang/en/nagios/check_mysql_health/
+#
+# -----------------------------------------------------------------
+
+
# Distant mysql check
define command {
command_name check_mysql_connection
- command_line $PLUGINSDIR$/check_mysql -H $HOSTADDRESS$ -u $MYSQLUSER$ -p $MYSQLPASSWORD$
+ command_line $PLUGINSDIR$/check_mysql_health --hostname $HOSTADDRESS$ --username $MYSQLUSER$ --password $MYSQLPASSWORD$ --mode connection-time
+}
+
+define command {
+ command_name check_mysql_querycache_hitrate
+ command_line $PLUGINSDIR$/check_mysql_health --hostname $HOSTADDRESS$ --username $MYSQLUSER$ --password $MYSQLPASSWORD$ --mode querycache-hitrate
}
+define command {
+ command_name check_mysql_uptime
+ command_line $PLUGINSDIR$/check_mysql_health --hostname $HOSTADDRESS$ --username $MYSQLUSER$ --password $MYSQLPASSWORD$ --mode uptime
+}
-## Now ESX and VM checks
-##ARG1 and take cpu, io, net or mem
-define command{
- command_name check_esx_host
- command_line $PLUGINSDIR$/check_esx3.pl -D $VCENTER$ -H $HOSTADDRESS$ -u $VCENTERLOGIN$ -p $VCENTERPASSWORD$ l $ARG1$
+define command {
+ command_name check_mysql_threads_connected
+ command_line $PLUGINSDIR$/check_mysql_health --hostname $HOSTADDRESS$ --username $MYSQLUSER$ --password $MYSQLPASSWORD$ --mode threads-connected
}
-define command{
- command_name check_esx_vm
- command_line $PLUGINSDIR$/check_esx3.pl -D $VCENTER$ -N $HOSTALIAS$ -u $VCENTERLOGIN$ -p $VCENTERPASSWORD$ -l $ARG1$
+define command {
+ command_name check_mysql_qcache_lowmem_prunes
+ command_line $PLUGINSDIR$/check_mysql_health --hostname $HOSTADDRESS$ --username $MYSQLUSER$ --password $MYSQLPASSWORD$ --mode qcache-lowmem-prunes
+}
+
+define command {
+ command_name check_mysql_keycache_hitrate
+ command_line $PLUGINSDIR$/check_mysql_health --hostname $HOSTADDRESS$ --username $MYSQLUSER$ --password $MYSQLPASSWORD$ --mode keycache-hitrate
+}
+
+define command {
+ command_name check_mysql_bufferpool_hitrate
+ command_line $PLUGINSDIR$/check_mysql_health --hostname $HOSTADDRESS$ --username $MYSQLUSER$ --password $MYSQLPASSWORD$ --mode bufferpool-hitrate
+}
+
+define command {
+ command_name check_mysql_bufferpool_wait_free
+ command_line $PLUGINSDIR$/check_mysql_health --hostname $HOSTADDRESS$ --username $MYSQLUSER$ --password $MYSQLPASSWORD$ --mode bufferpool-wait-free
+}
+
+define command {
+ command_name check_mysql_log_waits
+ command_line $PLUGINSDIR$/check_mysql_health --hostname $HOSTADDRESS$ --username $MYSQLUSER$ --password $MYSQLPASSWORD$ --mode log-waits
+}
+
+define command {
+ command_name check_mysql_tablecache_hitrate
+ command_line $PLUGINSDIR$/check_mysql_health --hostname $HOSTADDRESS$ --username $MYSQLUSER$ --password $MYSQLPASSWORD$ --mode tablecache-hitrate
+}
+
+define command {
+ command_name check_mysql_table_lock_contention
+ command_line $PLUGINSDIR$/check_mysql_health --hostname $HOSTADDRESS$ --username $MYSQLUSER$ --password $MYSQLPASSWORD$ --mode table-lock-contention
+}
+
+define command {
+ command_name check_mysql_index_usage
+ command_line $PLUGINSDIR$/check_mysql_health --hostname $HOSTADDRESS$ --username $MYSQLUSER$ --password $MYSQLPASSWORD$ --mode index-usage
+}
+
+define command {
+ command_name check_mysql_tmp_disk_tables
+ command_line $PLUGINSDIR$/check_mysql_health --hostname $HOSTADDRESS$ --username $MYSQLUSER$ --password $MYSQLPASSWORD$ --mode tmp-disk-tables
+}
+
+define command {
+ command_name check_mysql_slow_queries
+ command_line $PLUGINSDIR$/check_mysql_health --hostname $HOSTADDRESS$ --username $MYSQLUSER$ --password $MYSQLPASSWORD$ --mode slow-queries
+}
+
+define command {
+ command_name check_mysql_long_running_procs
+ command_line $PLUGINSDIR$/check_mysql_health --hostname $HOSTADDRESS$ --username $MYSQLUSER$ --password $MYSQLPASSWORD$ --mode long-running-procs
+}
+
+define command {
+ command_name check_mysql_slave_lag
+ command_line $PLUGINSDIR$/check_mysql_health --hostname $HOSTADDRESS$ --username $MYSQLUSER$ --password $MYSQLPASSWORD$ --mode slave-lag
+}
+
+define command {
+ command_name check_mysql_slave_io_running
+ command_line $PLUGINSDIR$/check_mysql_health --hostname $HOSTADDRESS$ --username $MYSQLUSER$ --password $MYSQLPASSWORD$ --mode slave-io-running
+}
+
+define command {
+ command_name check_mysql_slave_sql_running
+ command_line $PLUGINSDIR$/check_mysql_health --hostname $HOSTADDRESS$ --username $MYSQLUSER$ --password $MYSQLPASSWORD$ --mode slave-sql-running
+}
+
+define command {
+ command_name check_mysql_open_files
+ command_line $PLUGINSDIR$/check_mysql_health --hostname $HOSTADDRESS$ --username $MYSQLUSER$ --password $MYSQLPASSWORD$ --mode open-files
+}
+
+define command {
+ command_name check_mysql_cluster_ndb_running
+ command_line $PLUGINSDIR$/check_mysql_health --hostname $HOSTADDRESS$ --username $MYSQLUSER$ --password $MYSQLPASSWORD$ --mode cluster-ndb-running
+}
+
+
+
+# -----------------------------------------------------------------
+#
+# Mssql calls. It use the check_mssql_health from
+# http://labs.consol.de/lang/en/nagios/check_mssql_health/
+#
+# -----------------------------------------------------------------
+
+
+# Look at http://labs.consol.de/nagios/check_mssql_health/ to get it
+# Don't forget to change $MSSQLUSER$ and $MSSQLPASSWORD$ in resources.cfg before you use this ;)
+define command {
+ command_name check_mssql_connection
+ command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode connection-time
+}
+
+define command {
+ command_name check_mssql_connected_users
+ command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode connected-users
+}
+
+define command {
+ command_name check_mssql_cpu_busy
+ command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode cpu-busy
+}
+
+define command {
+ command_name check_mssql_io_busy
+ command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode io-busy
+}
+
+define command {
+ command_name check_mssql_full_scans
+ command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode full-scans
+}
+
+define command {
+ command_name check_mssql_transactions
+ command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode transactions
+}
+
+define command {
+ command_name check_mssql_batch_requests
+ command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode batch-requests
}
+define command {
+ command_name check_mssql_latches_waits
+ command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode latches-waits
+}
+
+define command {
+ command_name check_mssql_latches_wait_time
+ command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode latches-wait-time
+}
+
+define command {
+ command_name check_mssql_locks_waits
+ command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode locks-waits
+}
+
+define command {
+ command_name check_mssql_locks_timeouts
+ command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode locks-timeouts
+}
+
+define command {
+ command_name check_mssql_locks_deadlocks
+ command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode locks-deadlocks
+}
+
+define command {
+ command_name check_mssql_sql_recompilations
+ command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode sql-recompilations
+}
+
+define command {
+ command_name check_mssql_sql_initcompilations
+ command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode sql-initcompilations
+}
+
+define command {
+ command_name check_mssql_total_server_memory
+ command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode total-server-memory
+}
+
+define command {
+ command_name check_mssql_mem_pool_data_buffer_hit_ratio
+ command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode mem-pool-data-buffer-hit-ratio
+}
+
+define command {
+ command_name check_mssql_lazy_writes
+ command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode lazy-writes
+}
+
+define command {
+ command_name check_mssql_page_life_expectancy
+ command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode page-life-expectancy
+}
+
+define command {
+ command_name check_mssql_free_list_stalls
+ command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode free-list-stalls
+}
+
+define command {
+ command_name check_mssql_checkpoint_pages
+ command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode checkpoint-pages
+}
+
+define command {
+ command_name check_mssql_database_free
+ command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode database-free
+}
+
+define command {
+ command_name check_mssql_database_backup_age
+ command_line $PLUGINSDIR$/check_mssql_health --hostname $HOSTADDRESS$ --username "$MSSQLUSER$" --password "$MSSQLPASSWORD$" --mode database-backup-age
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
#### Then samples which are not really useful in the real world
diff --git a/etc/services/esx/cpu.cfg b/etc/services/esx/cpu.cfg
new file mode 100644
index 0000000..7fe6e41
--- /dev/null
+++ b/etc/services/esx/cpu.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Cpu
+ use generic-service
+ register 0
+ host_name esx
+ check_command check_esx_host_cpu
+}
diff --git a/etc/services/esx/io.cfg b/etc/services/esx/io.cfg
new file mode 100644
index 0000000..6706be3
--- /dev/null
+++ b/etc/services/esx/io.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Io
+ use generic-service
+ register 0
+ host_name esx
+ check_command check_esx_host_io
+}
diff --git a/etc/services/esx/mem.cfg b/etc/services/esx/mem.cfg
new file mode 100644
index 0000000..425ffd3
--- /dev/null
+++ b/etc/services/esx/mem.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Mem
+ use generic-service
+ register 0
+ host_name esx
+ check_command check_esx_host_mem
+}
diff --git a/etc/services/esx/net.cfg b/etc/services/esx/net.cfg
new file mode 100644
index 0000000..4577e27
--- /dev/null
+++ b/etc/services/esx/net.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Net
+ use generic-service
+ register 0
+ host_name esx
+ check_command check_esx_host_net
+}
diff --git a/etc/services/ftp/ftp.cfg b/etc/services/ftp/ftp.cfg
new file mode 100644
index 0000000..a558dad
--- /dev/null
+++ b/etc/services/ftp/ftp.cfg
@@ -0,0 +1,7 @@
+define service{
+ name ftp
+ use generic-service
+ register 0
+ host_name ftp
+ check_command check_ftp
+}
diff --git a/etc/services/http/http.cfg b/etc/services/http/http.cfg
new file mode 100644
index 0000000..22eb937
--- /dev/null
+++ b/etc/services/http/http.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Http
+ use generic-service
+ register 0
+ host_name http
+ check_command check_http
+}
diff --git a/etc/services/https/certificate.cfg b/etc/services/https/certificate.cfg
new file mode 100644
index 0000000..7af6d06
--- /dev/null
+++ b/etc/services/https/certificate.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Https
+ use generic-service
+ register 0
+ host_name https
+ check_command check_https_certificate
+}
diff --git a/etc/services/https/https.cfg b/etc/services/https/https.cfg
new file mode 100644
index 0000000..f7292de
--- /dev/null
+++ b/etc/services/https/https.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Https
+ use generic-service
+ register 0
+ host_name https
+ check_command check_https
+}
diff --git a/etc/services/linux/load.cfg b/etc/services/linux/load.cfg
new file mode 100644
index 0000000..9749fc7
--- /dev/null
+++ b/etc/services/linux/load.cfg
@@ -0,0 +1,7 @@
+define service{
+ service_description Load
+ use generic-service
+ register 0
+ host_name linux
+ check_command check_linux_load
+}
diff --git a/etc/services/mssql/connection.cfg b/etc/services/mssql/connection.cfg
new file mode 100644
index 0000000..e902a4f
--- /dev/null
+++ b/etc/services/mssql/connection.cfg
@@ -0,0 +1,7 @@
+define service{
+ service_description Mssql-connection
+ use generic-service
+ register 0
+ host_name mysql
+ check_command check_mssql_connection
+}
diff --git a/etc/services/mysql/bufferpool_hitrate.cfg b/etc/services/mysql/bufferpool_hitrate.cfg
new file mode 100644
index 0000000..1b64402
--- /dev/null
+++ b/etc/services/mysql/bufferpool_hitrate.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Mysql-bufferpool-hitrate
+ use generic-service
+ register 0
+ host_name mysql
+ check_command check_mysql_bufferpool_hitrate
+}
diff --git a/etc/services/mysql/bufferpool_wait_free.cfg b/etc/services/mysql/bufferpool_wait_free.cfg
new file mode 100644
index 0000000..b76768e
--- /dev/null
+++ b/etc/services/mysql/bufferpool_wait_free.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Mysql-bufferpool-wait-free
+ use generic-service
+ register 0
+ host_name mysql
+ check_command check_mysql_bufferpool_wait_free
+}
diff --git a/etc/services/mysql/cluster_ndb_running.cfg b/etc/services/mysql/cluster_ndb_running.cfg
new file mode 100644
index 0000000..b77933d
--- /dev/null
+++ b/etc/services/mysql/cluster_ndb_running.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Mysql-cluster-ndb-running
+ use generic-service
+ register 0
+ host_name mysql
+ check_command check_mysql_cluster_ndb_running
+}
diff --git a/etc/services/mysql/connection.cfg b/etc/services/mysql/connection.cfg
new file mode 100644
index 0000000..a518131
--- /dev/null
+++ b/etc/services/mysql/connection.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Mysql-connection
+ use generic-service
+ register 0
+ host_name mysql
+ check_command check_mysql_connection
+}
diff --git a/etc/services/mysql/index_usage.cfg b/etc/services/mysql/index_usage.cfg
new file mode 100644
index 0000000..5bf4228
--- /dev/null
+++ b/etc/services/mysql/index_usage.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Mysql-index-usage
+ use generic-service
+ register 0
+ host_name mysql
+ check_command check_mysql_index_usage
+}
diff --git a/etc/services/mysql/keycache-hitrate.cfg b/etc/services/mysql/keycache-hitrate.cfg
new file mode 100644
index 0000000..f19ada1
--- /dev/null
+++ b/etc/services/mysql/keycache-hitrate.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Mysql-keycache-hitrate
+ use generic-service
+ register 0
+ host_name mysql
+ check_command check_mysql_keycache_hitrate
+}
diff --git a/etc/services/mysql/log_waits.cfg b/etc/services/mysql/log_waits.cfg
new file mode 100644
index 0000000..449687b
--- /dev/null
+++ b/etc/services/mysql/log_waits.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Mysql-log-waits
+ use generic-service
+ register 0
+ host_name mysql
+ check_command check_mysql_log_waits
+}
diff --git a/etc/services/mysql/long_running_procs.cfg b/etc/services/mysql/long_running_procs.cfg
new file mode 100644
index 0000000..da077f0
--- /dev/null
+++ b/etc/services/mysql/long_running_procs.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Mysql-long-running-procs
+ use generic-service
+ register 0
+ host_name mysql
+ check_command check_mysql_long_running_procs
+}
diff --git a/etc/services/mysql/open_files.cfg b/etc/services/mysql/open_files.cfg
new file mode 100644
index 0000000..448a6f5
--- /dev/null
+++ b/etc/services/mysql/open_files.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Mysql-open-files
+ use generic-service
+ register 0
+ host_name mysql
+ check_command check_mysql_open_files
+}
diff --git a/etc/services/mysql/qcache_hitrate.cfg b/etc/services/mysql/qcache_hitrate.cfg
new file mode 100644
index 0000000..c64e6ae
--- /dev/null
+++ b/etc/services/mysql/qcache_hitrate.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Mysql-qcache-hitrate
+ use generic-service
+ register 0
+ host_name mysql
+ check_command check_mysql_qcache_hitrate
+}
diff --git a/etc/services/mysql/qcache_lowmem_prunes.cfg b/etc/services/mysql/qcache_lowmem_prunes.cfg
new file mode 100644
index 0000000..56fcd7f
--- /dev/null
+++ b/etc/services/mysql/qcache_lowmem_prunes.cfg
@@ -0,0 +1,7 @@
+define service{
+ service_description Mysql-cache-lowmem-prunes
+ use generic-service
+ register 0
+ host_name mysql
+ check_command check_mysql_cache_lowmem_prunes
+}
diff --git a/etc/services/mysql/restart.cfg b/etc/services/mysql/restart.cfg
new file mode 100644
index 0000000..1573dbc
--- /dev/null
+++ b/etc/services/mysql/restart.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Mysql-restart
+ use generic-service
+ register 0
+ host_name mysql
+ check_command check_mysql_uptime
+}
diff --git a/etc/services/mysql/slave/slave_io_running.cfg b/etc/services/mysql/slave/slave_io_running.cfg
new file mode 100644
index 0000000..b1fe6e6
--- /dev/null
+++ b/etc/services/mysql/slave/slave_io_running.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Mysql-slave-io-running
+ use generic-service
+ register 0
+ host_name mysql
+ check_command check_mysql_slave_io_running
+}
diff --git a/etc/services/mysql/slave/slave_lag.cfg b/etc/services/mysql/slave/slave_lag.cfg
new file mode 100644
index 0000000..4eb3bf5
--- /dev/null
+++ b/etc/services/mysql/slave/slave_lag.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Mysql-slave-lag
+ use generic-service
+ register 0
+ host_name mysql
+ check_command check_mysql_slave_lag
+}
diff --git a/etc/services/mysql/slave/slave_sql_running.cfg b/etc/services/mysql/slave/slave_sql_running.cfg
new file mode 100644
index 0000000..e791d04
--- /dev/null
+++ b/etc/services/mysql/slave/slave_sql_running.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Mysql-slave-sql-running
+ use generic-service
+ register 0
+ host_name mysql
+ check_command check_mysql_slave_sql_running
+}
diff --git a/etc/services/mysql/slow_queries.cfg b/etc/services/mysql/slow_queries.cfg
new file mode 100644
index 0000000..f353ecd
--- /dev/null
+++ b/etc/services/mysql/slow_queries.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Mysql-slow-queries
+ use generic-service
+ register 0
+ host_name mysql
+ check_command check_mysql_slow_queries
+}
diff --git a/etc/services/mysql/table_lock_contention.cfg b/etc/services/mysql/table_lock_contention.cfg
new file mode 100644
index 0000000..5392e00
--- /dev/null
+++ b/etc/services/mysql/table_lock_contention.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Mysql-table-lock-contention
+ use generic-service
+ register 0
+ host_name mysql
+ check_command check_mysql_table_lock_contention
+}
diff --git a/etc/services/mysql/tablecache_hitrate.cfg b/etc/services/mysql/tablecache_hitrate.cfg
new file mode 100644
index 0000000..b49ffa0
--- /dev/null
+++ b/etc/services/mysql/tablecache_hitrate.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Mysql-tablecache-hitrate
+ use generic-service
+ register 0
+ host_name mysql
+ check_command check_mysql_tablecache_hitrate
+}
diff --git a/etc/services/mysql/threadcache_hitrate.cfg b/etc/services/mysql/threadcache_hitrate.cfg
new file mode 100644
index 0000000..535464e
--- /dev/null
+++ b/etc/services/mysql/threadcache_hitrate.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Mysql-threadcache-hitrate
+ use generic-service
+ register 0
+ host_name mysql
+ check_command check_mysql_threadcache_hitrate
+}
diff --git a/etc/services/mysql/threads_connected.cfg b/etc/services/mysql/threads_connected.cfg
new file mode 100644
index 0000000..cdc52ec
--- /dev/null
+++ b/etc/services/mysql/threads_connected.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Mysql-threads-connected
+ use generic-service
+ register 0
+ host_name mysql
+ check_command check_mysql_threads_connected
+}
diff --git a/etc/services/mysql/tmp_disk_tables.cfg b/etc/services/mysql/tmp_disk_tables.cfg
new file mode 100644
index 0000000..20ec53f
--- /dev/null
+++ b/etc/services/mysql/tmp_disk_tables.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Mysql-tmp-disk-tables
+ use generic-service
+ register 0
+ host_name mysql
+ check_command check_mysql_tmp_disk_tables
+}
diff --git a/etc/services/vm/cpu.cfg b/etc/services/vm/cpu.cfg
new file mode 100644
index 0000000..d271404
--- /dev/null
+++ b/etc/services/vm/cpu.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Cpu
+ use generic-service
+ register 0
+ host_name vm
+ check_command check_esx_vm_cpu
+}
diff --git a/etc/services/vm/io.cfg b/etc/services/vm/io.cfg
new file mode 100644
index 0000000..6cb44d3
--- /dev/null
+++ b/etc/services/vm/io.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Io
+ use generic-service
+ register 0
+ host_name vm
+ check_command check_esx_vm_io
+}
diff --git a/etc/services/vm/mem.cfg b/etc/services/vm/mem.cfg
new file mode 100644
index 0000000..66ca8ff
--- /dev/null
+++ b/etc/services/vm/mem.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Mem
+ use generic-service
+ register 0
+ host_name vm
+ check_command check_esx_vm_mem
+}
diff --git a/etc/services/vm/net.cfg b/etc/services/vm/net.cfg
new file mode 100644
index 0000000..7aa79c0
--- /dev/null
+++ b/etc/services/vm/net.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Net
+ use generic-service
+ register 0
+ host_name vm
+ check_command check_esx_vm_net
+}
diff --git a/etc/templates.cfg b/etc/templates.cfg
index 69964c7..f763007 100644
--- a/etc/templates.cfg
+++ b/etc/templates.cfg
@@ -45,7 +45,7 @@ define host{
}
-# windows template
+# WINDOWS World
define host{
name windows
use generic-host
@@ -54,7 +54,28 @@ define host{
}
-# Linux one
+define host{
+ name dc
+ use generic-host
+ register 0
+}
+
+define host{
+ name exchange
+ use generic-host
+ register 0
+}
+
+define host{
+ name mssql
+ use generic-host
+ register 0
+}
+
+
+
+
+# LINUX
define host{
name linux
use generic-host
@@ -73,22 +94,79 @@ define host{
# VM template
define host{
- name vmware-vm
+ name vm
use generic-host
- alias vmware-vm
register 0
}
# ESX one
define host{
- name vmware-host
+ name esx
use generic-host
- alias vmware-host
register 0
}
+# DATABASES HOSTS
+define host{
+ name mysql
+ use generic-host
+ register 0
+}
+
+define host{
+ name mysql-slave
+ use generic-host
+ register 0
+}
+
+
+define host{
+ name oracle
+ use generic-host
+ register 0
+}
+
+
+# NETWORK
+define host{
+ name http
+ use generic-host
+ register 0
+}
+
+define host{
+ name https
+ use generic-host
+ register 0
+}
+
+
+define host{
+ name ftp
+ use generic-host
+ register 0
+}
+
+
+define host{
+ name imap
+ use generic-host
+ register 0
+}
+
+define host{
+ name imaps
+ use generic-host
+ register 0
+}
+
+
+
+
+
+
# Routers
define host{
name router
--
UNNAMED PROJECT
More information about the Pkg-nagios-changes
mailing list