[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a
Naparuba
naparuba at gmail.com
Tue Feb 28 22:11:38 UTC 2012
The following commit has been merged in the debian/master branch:
commit 129b19efccc2f7914a48045ae3359d5b274a9d35
Author: Naparuba <naparuba at gmail.com>
Date: Tue Jan 3 14:51:47 2012 +0100
Add : cut templates.cfg into several pack files.
diff --git a/etc/packs/asterisk/templates.cfg b/etc/packs/asterisk/templates.cfg
new file mode 100644
index 0000000..fda90ca
--- /dev/null
+++ b/etc/packs/asterisk/templates.cfg
@@ -0,0 +1,5 @@
+define host{
+ name asterisk
+ use generic-host
+ register 0
+}
diff --git a/etc/packs/dhcp/templates.cfg b/etc/packs/dhcp/templates.cfg
new file mode 100644
index 0000000..48f794c
--- /dev/null
+++ b/etc/packs/dhcp/templates.cfg
@@ -0,0 +1,5 @@
+define host{
+ name dhcp
+ use generic-host
+ register 0
+}
diff --git a/etc/packs/dns/templates.cfg b/etc/packs/dns/templates.cfg
new file mode 100644
index 0000000..7616f62
--- /dev/null
+++ b/etc/packs/dns/templates.cfg
@@ -0,0 +1,5 @@
+define host{
+ name dns
+ use generic-host
+ register 0
+}
diff --git a/etc/packs/ftp/templates.cfg b/etc/packs/ftp/templates.cfg
new file mode 100644
index 0000000..23574d0
--- /dev/null
+++ b/etc/packs/ftp/templates.cfg
@@ -0,0 +1,5 @@
+define host{
+ name ftp
+ use generic-host
+ register 0
+}
diff --git a/etc/packs/http/templates.cfg b/etc/packs/http/templates.cfg
new file mode 100644
index 0000000..b996745
--- /dev/null
+++ b/etc/packs/http/templates.cfg
@@ -0,0 +1,5 @@
+define host{
+ name http
+ use generic-host
+ register 0
+}
diff --git a/etc/packs/https/templates.cfg b/etc/packs/https/templates.cfg
new file mode 100644
index 0000000..d74211a
--- /dev/null
+++ b/etc/packs/https/templates.cfg
@@ -0,0 +1,6 @@
+
+define host{
+ name https
+ use generic-host
+ register 0
+}
diff --git a/etc/packs/ldap/templates.cfg b/etc/packs/ldap/templates.cfg
new file mode 100644
index 0000000..897b423
--- /dev/null
+++ b/etc/packs/ldap/templates.cfg
@@ -0,0 +1,5 @@
+define host{
+ name ldap
+ use generic-host
+ register 0
+}
diff --git a/etc/packs/ldaps/templates.cfg b/etc/packs/ldaps/templates.cfg
new file mode 100644
index 0000000..d42e55e
--- /dev/null
+++ b/etc/packs/ldaps/templates.cfg
@@ -0,0 +1,6 @@
+
+define host{
+ name ldaps
+ use generic-host
+ register 0
+}
diff --git a/etc/packs/linux/templates.cfg b/etc/packs/linux/templates.cfg
new file mode 100644
index 0000000..3d616b2
--- /dev/null
+++ b/etc/packs/linux/templates.cfg
@@ -0,0 +1,7 @@
+# The LINUX template. It's a standard host with a simple check_ssh
+define host{
+ name linux
+ use generic-host
+ check_command check_ssh
+ register 0
+}
diff --git a/etc/packs/mssql/templates.cfg b/etc/packs/mssql/templates.cfg
new file mode 100644
index 0000000..3a192af
--- /dev/null
+++ b/etc/packs/mssql/templates.cfg
@@ -0,0 +1,5 @@
+define host{
+ name mssql
+ use generic-host
+ register 0
+}
diff --git a/etc/packs/mysql/templates.cfg b/etc/packs/mysql/templates.cfg
new file mode 100644
index 0000000..0dcbe43
--- /dev/null
+++ b/etc/packs/mysql/templates.cfg
@@ -0,0 +1,12 @@
+# DATABASES HOSTS
+define host{
+ name mysql
+ use generic-host
+ register 0
+}
+
+define host{
+ name mysql-slave
+ use generic-host
+ register 0
+}
diff --git a/etc/packs/oracle/templates.cfg b/etc/packs/oracle/templates.cfg
new file mode 100644
index 0000000..facf998
--- /dev/null
+++ b/etc/packs/oracle/templates.cfg
@@ -0,0 +1,7 @@
+
+define host{
+ name oracle
+ use generic-host
+ register 0
+ _databases TEST,PROD
+}
diff --git a/etc/packs/printers/hp/templates.cfg b/etc/packs/printers/hp/templates.cfg
new file mode 100644
index 0000000..89eb5eb
--- /dev/null
+++ b/etc/packs/printers/hp/templates.cfg
@@ -0,0 +1,5 @@
+define host{
+ name printer-hp
+ use printer
+ register 0
+}
diff --git a/etc/packs/printers/templates.cfg b/etc/packs/printers/templates.cfg
new file mode 100644
index 0000000..42b5a99
--- /dev/null
+++ b/etc/packs/printers/templates.cfg
@@ -0,0 +1,8 @@
+define host{
+ name printer
+ use generic-host
+ check_command check_ping
+ register 0
+ # No need for notify for a printer problem when there is no users
+ notification_period workhours
+}
diff --git a/etc/packs/smtp/templates.cfg b/etc/packs/smtp/templates.cfg
new file mode 100644
index 0000000..9545eec
--- /dev/null
+++ b/etc/packs/smtp/templates.cfg
@@ -0,0 +1,5 @@
+define host{
+ name smtp
+ use generic-host
+ register 0
+}
diff --git a/etc/packs/smtps/templates.cfg b/etc/packs/smtps/templates.cfg
new file mode 100644
index 0000000..6d67f61
--- /dev/null
+++ b/etc/packs/smtps/templates.cfg
@@ -0,0 +1,5 @@
+define host{
+ name smtps
+ use generic-host
+ register 0
+}
diff --git a/etc/packs/vmware/esx/templates.cfg b/etc/packs/vmware/esx/templates.cfg
new file mode 100644
index 0000000..97d50e5
--- /dev/null
+++ b/etc/packs/vmware/esx/templates.cfg
@@ -0,0 +1,6 @@
+# ESX one
+define host{
+ name esx
+ use generic-host
+ register 0
+}
diff --git a/etc/packs/vmware/vm/templates.cfg b/etc/packs/vmware/vm/templates.cfg
new file mode 100644
index 0000000..02624f9
--- /dev/null
+++ b/etc/packs/vmware/vm/templates.cfg
@@ -0,0 +1,6 @@
+# VM template
+define host{
+ name vm
+ use generic-host
+ register 0
+}
diff --git a/etc/templates.cfg b/etc/templates.cfg
index 013b62f..6a77ec6 100644
--- a/etc/templates.cfg
+++ b/etc/templates.cfg
@@ -1,8 +1,3 @@
-
-
-
-
-
###############################################################################
###############################################################################
#
@@ -15,21 +10,28 @@
# Generic host definition template - This is NOT a real host, just a template!
+# Most hosts should inherit from this one
define host{
name generic-host
alias generic-host
# Checking part
- # no check_command by default
+ # no check_command by default. check each 5 min when all is OK/UP
+ # and make 3 checks (one bad then 2 others) for going HARD and so
+ # raise notifications
max_check_attempts 2
check_interval 5
+ # Check every time
active_checks_enabled 1
check_period 24x7
# Notification part
+ # One notification each day (1440 = 60min* 24h)
+ # every time, and for all 'errors'
+ # notify the admins contactgroups by default
contact_groups admins
- notification_interval 60
+ notification_interval 1440
notification_period 24x7
notification_options d,u,r,f
notifications_enabled 1
@@ -38,7 +40,10 @@ define host{
event_handler_enabled 0
flap_detection_enabled 1
process_perf_data 1
+
+ # Dispatching
#poller_tag DMZ
+ #realm All
# This said that it's a template
register 0
@@ -66,22 +71,10 @@ define host{
register 0
}
-define host{
- name mssql
- use generic-host
- register 0
-}
-# LINUX
-define host{
- name linux
- use generic-host
- check_command check_ssh
- register 0
-}
# HPUX template
define host{
@@ -92,94 +85,18 @@ define host{
}
-# VM template
-define host{
- name vm
- use generic-host
- register 0
-}
-# ESX one
-define host{
- name esx
- use generic-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
- _databases TEST,PROD
-}
# NETWORK
-define host{
- name http
- use generic-host
- register 0
-}
-define host{
- name https
- use generic-host
- register 0
-}
-
-define host{
- name dns
- use generic-host
- register 0
-}
-
-
-define host{
- name ftp
- use generic-host
- register 0
-}
-
-
-define host{
- name smtp
- use generic-host
- register 0
-}
-define host{
- name smtps
- use generic-host
- register 0
-}
-define host{
- name ldap
- use generic-host
- register 0
-}
-define host{
- name ldaps
- use generic-host
- register 0
-}
@@ -196,10 +113,6 @@ define host{
}
-define host{
- name dhcp
- register 0
-}
@@ -215,28 +128,10 @@ define host{
####### Printers
-define host{
- name printer
- use generic-host
- check_command check_ping
- register 0
- # No need for notify for a printer problem when there is no users
- notification_period workhours
-}
-define host{
- name printer-hp
- use printer
- register 0
-}
###### Others apps
-define host{
- name asterisk
- use generic-host
- register 0
-}
@@ -289,7 +184,7 @@ define service{
-#This one is a real one
+# For local shinken machine only
define service{
name local-service ; The name of this service template
use generic-service ; Inherit default values from the generic-service definition
--
UNNAMED PROJECT
More information about the Pkg-nagios-changes
mailing list