[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a
Naparuba
naparuba at gmail.com
Tue Feb 28 22:17:49 UTC 2012
The following commit has been merged in the debian/master branch:
commit e6c14d3c109978dae1bbadc5c81888030b0b7b8b
Author: Naparuba <naparuba at gmail.com>
Date: Mon Jan 30 11:38:47 2012 +0100
Fix : get back LS on the 50K port by default. + some comments fiexes.
diff --git a/etc/shinken-specific.cfg b/etc/shinken-specific.cfg
index c8e5a66..3ccac09 100755
--- a/etc/shinken-specific.cfg
+++ b/etc/shinken-specific.cfg
@@ -1,51 +1,52 @@
-#This config file defines Shinken specific objects like
-#satellites or Realms
-#
-#This file can be used for defining a simple environment :
-#*one scheduler that schedules the checks (but doesn't launch them)
-#*one poller (that launches the checks)
-#*one reactionner (that sends the notifications)
-#*one broker (that gives jobs to modules. Modules export data such as logs, status.dat, mysql export, etc etc)
-#*some of the broker modules (that do the jobs)
-#*one arbiter (that reads the configuration and dispatches it to all others)
-
-#So there is no high availability here, just a simple "Nagios equivalent" (but with
-#more perf and less code! )
-
-#The scheduler is a "Host manager". It gets the hosts and their
-#services and it schedules the checks for the pollers.
+# This config file defines Shinken specific objects like
+# satellites or Realms
+#
+# This file can be used for defining a simple environment :
+# *one scheduler that schedules the checks (but doesn't launch them)
+# *one poller (that launches the checks)
+# *one reactionner (that sends the notifications)
+# *one broker (that gives jobs to modules. Modules export data such as logs, status.dat, mysql export, etc etc)
+# *some of the broker modules (that do the jobs)
+# *one arbiter (that reads the configuration and dispatches it to all others)
+
+# So there is no high availability here, just a simple "Nagios equivalent" (but with
+# more perf and less code! )
+
+# The scheduler is a "Host manager". It gets the hosts and their
+# services and it schedules the checks for the pollers.
define scheduler{
scheduler_name scheduler-1 ; just the name
address localhost ; ip or dns address of the daemon
port 7768 ; tcp port of the daemon
- #optional
+ # optional
spare 0 ; (0 = not a spare, 1 = is spare)
weight 1 ; (some schedulers can manage more hosts than others)
timeout 3 ; 'ping' timeout
data_timeout 120 ; 'data send' timeout
max_check_attempts 3 ; if at least max_check_attempts ping failed, the node is DEAD
check_interval 60 ; ping it every minute
-# modules PickleRetention
+# modules PickleRetention
-# Interesting modules :
-# PickleRetention : Save data before exiting in flat file
-# MemcacheRetention : Same but in a memcache server
-# RedisRetention : same, but in a Redis server :)
-# NagiosRetention : only READ retention info from a nagios retention file
+# Interesting modules :
+# PickleRetention : Save data before exiting in flat file
+# MemcacheRetention : Same but in a memcache server
+# RedisRetention : same, but in a Redis server :)
+# MongodbRetention : Same, but with a mongodb server :)
+# NagiosRetention : only READ retention info from a nagios retention file
- #advanced feature
- realm All ; optional (realm are multisites features)
+ # advanced feature
+ realm All ; optional (realm are multi-datacenters features)
}
-#Pollers launch checks
+# Pollers launch checks
define poller{
poller_name poller-1
address localhost
port 7771
- #optional
+ # optional
manage_sub_realms 0 ; optional and advanced: does it take jobs from schedulers of sub realms?
min_workers 0 ; optional : starts with N worker processes. 0 means : "number of cpus"
max_workers 0 ; optional : no more than N worker processes. 0 means : "number of cpus"
@@ -57,38 +58,38 @@ define poller{
max_check_attempts 3 ; if at least max_check_attempts ping failed, the node is DEAD
- # advanced features
- #modules NrpeBooster,CommandFile
- # NRPE Boster will avoid to use the check_nrpe binary
- # and so can enhance your performances if you got
- # lot of nrpe calls
- # CommandFile can allow a nagios.cmd named pipe to be read by your
- # poller, and so use a distributed check_mk check is you want
-
- #poller_tags None
+ # advanced features
+ # modules NrpeBooster,CommandFile
+ # NRPE Boster will avoid to use the check_nrpe binary
+ # and so can enhance your performances if you got
+ # lot of nrpe calls
+ # CommandFile can allow a nagios.cmd named pipe to be read by your
+ # poller, and so use a distributed check_mk check is you want
+
+ # poller_tags None
realm All
}
-# Poller can have a nrpe module : commands tagged with
-# nrpe_poller as module_type will be managed by this module.
-# it will bypass the launch of check_nrpe, and will do the
-# connection itself.
+# Poller can have a nrpe module : commands tagged with
+# nrpe_poller as module_type will be managed by this module.
+# it will bypass the launch of check_nrpe, and will do the
+# connection itself.
define module{
module_name NrpeBooster
module_type nrpe_poller
}
-#Reactionner launch notifications
+# Reactionner launch notifications
define reactionner{
reactionner_name reactionner-1
address localhost
port 7769
spare 0
- #optionnal
+ # optionnal
manage_sub_realms 0 ;optionnal : like for poller
min_workers 1 ;optionnal : like for poller
max_workers 15 ;optionnal : like for poller
@@ -99,38 +100,38 @@ define reactionner{
check_interval 60 ; ping it every minute
max_check_attempts 3 ; if at least max_check_attempts ping failed, the node is DEAD
- # Modules
- # modules AndroidSMS
+ # Modules
+ # modules AndroidSMS
- #optionnal
+ # optionnal
realm All
}
-#The broker manages data export (in flat file or in database)
-#with its modules
-#Here just log files and status.dat file modules
+# The broker manages data export (in flat file or in database)
+# with its modules
+# Here just log files and status.dat file modules
define broker{
broker_name broker-1
address localhost
port 7772
spare 0
- # Which modules to load? LiveSatus and logs by default.
+ # Which modules to load? LiveSatus and logs by default.
modules Livestatus, Simple-log, WebUI
-# Other interesting modules to add :
-# PickleRetentionBroker : save data when quitting
-# ToNdodb_Mysql : NDO database support
-# NPCDMOD : Use the PNP addon
-# Graphite-Perfdata : Use teh Graphite backend for perfdata
-# WebUI : Shinken Web interface
+# Other interesting modules to add :
+# PickleRetentionBroker : save data when quitting
+# ToNdodb_Mysql : NDO database support
+# NPCDMOD : Use the PNP addon
+# Graphite-Perfdata : Use teh Graphite backend for perfdata
+# WebUI : Shinken Web interface
- # Optional
+ # Optional
manage_sub_realms 1 ; optional, like for poller
manage_arbiters 1 ; optional : take data from Arbiter. There should be
;only one broker for the arbiter
@@ -140,14 +141,14 @@ define broker{
data_timeout 120 ; 'data send' timeout
max_check_attempts 3 ; if at least max_check_attempts ping failed, the node is DEAD
- # Advanced
+ # Advanced
realm All
}
-##Now the modules for the broker. The first 2 that are used, and all the others :)
+# # Now the modules for the broker. The first 2 that are used, and all the others :)
-#The log management for ALL daemons (all in one log, cool isn't it? ).
+# The log management for ALL daemons (all in one log, cool isn't it? ).
define module{
module_name Simple-log
module_type simple_log
@@ -156,8 +157,8 @@ define module{
}
-#Status.dat and objects.cache export. For the old Nagios
-#interface
+# Status.dat and objects.cache export. For the old Nagios
+# interface
define module{
module_name Status-Dat
module_type status_dat
@@ -166,7 +167,7 @@ define module{
status_update_interval 15 ; update status.dat every 15s
}
-#The log management for ALL daemons (all in one log, cool isn't it? ).
+# The log management for ALL daemons (all in one log, cool isn't it? ).
define module{
module_name WebUI
module_type webui
@@ -174,48 +175,48 @@ define module{
host 0.0.0.0 ; mean all interfaces
port 7767
- # CHANGE THIS VALUE or someone may forge cookies !!!!!!!
+ # CHANGE THIS VALUE or someone may forge cookies !!!!!!!
auth_secret CHANGE_ME
- # Allow or not the html characters in plugins output
- # WARNING : so far, it can be a security issue
+ # Allow or not the html characters in plugins output
+ # WARNING : so far, it can be a security issue
allow_html_output 0
- # Uncomment to present a text in the login form
- # login_text Welcome on Shinken WebUI.
+ # Uncomment to present a text in the login form
+ # login_text Welcome on Shinken WebUI.
- # Advanced options. Do not touch it if you don't
- # know what you are doing
+ # Advanced options. Do not touch it if you don't
+ # know what you are doing
- #http_backend auto
- # ; can be also : wsgiref, cherrypy, paste, tornado, twisted
- # ; or gevent. automeans beast find in the system.
+ # http_backend auto
+ # ; can be also : wsgiref, cherrypy, paste, tornado, twisted
+ # ; or gevent. automeans beast find in the system.
- # Maybe the WebUI is behind a web server which has already authentified the user
- # So let's use the Remote_user variable
- # See documentation for an example of the configuration of Apache in front of the WebUI
- # remote_user_enable 1
- # remote_user_variable X_Remote_User
+ # Maybe the WebUI is behind a web server which has already authentified the user
+ # So let's use the Remote_user variable
+ # See documentation for an example of the configuration of Apache in front of the WebUI
+ # remote_user_enable 1
+ # remote_user_variable X_Remote_User
modules Apache_passwd,ActiveDir_UI,Cfg_password
- # Modules for the WebUI.
- # Apache_passwd : use an Apache htpasswd files for auth
- # ActiveDir_UI : use AD for auth and photo collect
- # Cfg_password : use passwords in contacts configuration for auth
- # PNP_UI : Use PNP graphs in the UI
- # GRAPHITE_UI : Use graphs from Graphite
+ # Modules for the WebUI.
+ # Apache_passwd : use an Apache htpasswd files for auth
+ # ActiveDir_UI : use AD for auth and photo collect
+ # Cfg_password : use passwords in contacts configuration for auth
+ # PNP_UI : Use PNP graphs in the UI
+ # GRAPHITE_UI : Use graphs from Graphite
}
-#The log management for ALL daemons (all in one log, cool isn't it? ).
+# The log management for ALL daemons (all in one log, cool isn't it? ).
define module{
module_name ActiveDir_UI
module_type ad_webui
-# UNCOMMENT this line to really enable this module and allow it to
-# connect!
-# ldap_uri ldaps://myserver
+# UNCOMMENT this line to really enable this module and allow it to
+# connect!
+# ldap_uri ldaps://myserver
username user
password password
basedn DC=google,DC=com
@@ -223,18 +224,18 @@ define module{
}
-#The log management for ALL daemons (all in one log, cool isn't it? ).
+# The log management for ALL daemons (all in one log, cool isn't it? ).
define module{
module_name Apache_passwd
module_type passwd_webui
- # WARNING : put the full PATH for this value!
+ # WARNING : put the full PATH for this value!
passwd /etc/shinken/htpasswd.users
}
-#The log management for ALL daemons (all in one log, cool isn't it? ).
+# The log management for ALL daemons (all in one log, cool isn't it? ).
define module{
module_name Cfg_password
module_type cfg_password_webui
@@ -242,11 +243,11 @@ define module{
}
-##All other modules that can be called if you have installed
-#the databases, or if you want to test something else :)
+# # All other modules that can be called if you have installed
+# the databases, or if you want to test something else :)
-#Here the NDO/MySQL module
-#So you can use with NagVis or Centreon
+# Here the NDO/MySQL module
+# So you can use with NagVis or Centreon
define module{
module_name ToNdodb_Mysql
module_type ndodb_mysql
@@ -257,15 +258,15 @@ define module{
character_set utf8 ; optionnal, UTF8 is the default
port 3306 ; mysql port
- # If you want to mix Shinken AND Nagios/icinga in the same db
- # enable this. It will use in database isntance_id, and not use the shinken ones
- # override/delete other ones. It can slow a little the performance
+ # If you want to mix Shinken AND Nagios/icinga in the same db
+ # enable this. It will use in database isntance_id, and not use the shinken ones
+ # override/delete other ones. It can slow a little the performance
synchronise_database_id 0
}
-#Here a NDO/Oracle module. For Icinga web connection
-#Or for DBAs who don't like MySQL
+# Here a NDO/Oracle module. For Icinga web connection
+# Or for DBAs who don't like MySQL
define module{
module_name ToNdodb_Oracle
module_type ndodb_oracle
@@ -276,7 +277,7 @@ define module{
}
-#Here for Merlin/MySQL. For the cool Ninja connection
+# Here for Merlin/MySQL. For the cool Ninja connection
define module{
module_name ToMerlindb_Mysql
module_type merlindb
@@ -289,9 +290,9 @@ define module{
}
-#Here the Merlin/Sqlite. No one uses it for now :)
-#You look at something : it's also the merlindb module, like the previous,
-#it's the same code, only the backend parameter (and path, of course ;-) has changed .
+# Here the Merlin/Sqlite. No one uses it for now :)
+# You look at something : it's also the merlindb module, like the previous,
+# it's the same code, only the backend parameter (and path, of course ;-) has changed .
define module{
module_name ToMerlindb_Sqlite
module_type merlindb
@@ -300,11 +301,11 @@ define module{
}
-#Here the couchdb export. Maybe use someday...
-#I should do a mangodb too some other day...
-#and casandra...
-#and voldemort...
-#and all other NoSQL databases in fact :)
+# Here the couchdb export. Maybe use someday...
+# I should do a mangodb too some other day...
+# and casandra...
+# and voldemort...
+# and all other NoSQL databases in fact :)
define module{
module_name ToCouchdb
module_type couchdb
@@ -314,31 +315,31 @@ define module{
}
-#Export services perfdata to flat file. For centreon or
-#perfparse
+# Export services perfdata to flat file. For centreon or
+# perfparse
define module{
module_name Service-Perfdata
module_type service_perfdata
path service-perfdata
-# mode a ; optionnal. a = append, w = overwrite, p =pipe
-# template $LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\t$SERVICESTATE$\n
+# mode a ; optionnal. a = append, w = overwrite, p =pipe
+# template $LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\t$SERVICESTATE$\n
}
-#For hosts this time
-#like the previous, but for hosts...
+# For hosts this time
+# like the previous, but for hosts...
define module{
module_name Host-Perfdata
module_type host_perfdata
path host-perfdata
-# mode a ; optionnal. a = append, w = overwrite, p =pipe
-# template $LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTOUTPUT$\t$HOSTSTATE$\t$HOSTPERFDATA$\n
+# mode a ; optionnal. a = append, w = overwrite, p =pipe
+# template $LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTOUTPUT$\t$HOSTSTATE$\t$HOSTPERFDATA$\n
}
-# Graphite is a Graph backend
-# http://graphite.wikidot.com/start
+# Graphite is a Graph backend
+# http://graphite.wikidot.com/start
define module{
module_name Graphite-Perfdata
module_type graphite_perfdata
@@ -347,7 +348,7 @@ define module{
}
-# Use PNP graphs in the WebUI
+# Use PNP graphs in the WebUI
define module{
module_name GRAPHITE_UI
module_type graphite_webui
@@ -355,96 +356,66 @@ define module{
; by the localname of the server
}
-# You know Livestatus? Yes, there is a Livestatus module for Shinken too :)
-#define module{
-# module_name Livestatus
-# module_type livestatus
-# host * ; * = listen on all configured ip addresses
-# port 50000 ; port to listen
-#
-# # If you want to use a unix socket file, uncomment it
-# socket /usr/local/shinken/var/rw/live
-# modules logsqlite
-# # modules should be logsqlite or mongologs
-# # Only set debug if you're having problems with this module
-# # debug /tmp/ls.debug
-# # Set to 1 if you want to dump queries/responses too
-# # warning : it's very verbose
-# # debug_queries 0
-#}
-
+# LIVESTATUS API for getting states access
define module{
module_name Livestatus
module_type livestatus
host * ; * = listen on all configured ip addresses
- port 6557 ; port to listen
- socket /usr/local/shinken/var/rw/live
+ port 50000 ; port to listen
+ # uncomment the socket line if you want to open
+ # an unix socket for the connection
+ #socket /usr/local/shinken/var/rw/live
modules logsqlite
+
+ # Only set debug if you're having problems with this module
+ # debug /tmp/ls.debug
+ # Set to 1 if you want to dump queries/responses too
+ # warning : it's very verbose
+ # debug_queries 0
}
+# Put the logs in a sqlite database, and so LS can query them
define module{
module_name logsqlite
module_type logstore_sqlite
database_file /usr/local/shinken/var/livelogs.db
max_logs_age 3m ; three months. Other time intervals are d=days, w=weeks, y=years
}
+# Same with a Mongodb database
define module{
module_name mongologs
module_type logstore_mongodb
mongodb_uri mongodb://127.0.0.1:27017
}
-# store logs in mongodb
-define module{
- module_name mongologs
- module_type logstore_mongodb
- mongodb_uri mongodb://127.0.0.1:27017
-}
-# store logs in sqlite
-define module{
- module_name logsqlite
- module_type logstore_sqlite
- database_file /usr/local/shinken/var/livelogs.db
- max_logs_age 3m ; three months. Other time intervals are d=days, w=weeks, y=years
-}
-#Send all logs to syslog
+
+# Send all logs to syslog
define module{
module_name Syslog
module_type syslog
}
-#Use with the PNP interface
+# Module to send perfdata to a NPCD daemon. This last one
+# should be launched.
define module{
module_name NPCDMOD
module_type npcdmod
config_file /usr/local/pnp4nagios/etc/npcd.cfg
}
-# Use PNP graphs in the WebUI
+# Use PNP graphs in the WebUI
define module{
module_name PNP_UI
module_type pnp_webui
uri http://YOURSERVERNAME/pnp4nagios/ ; put the real PNP uri here. YOURSERVERNAME will be changed
- ; bu the localname of the server
-
-}
-
-# send into GLPI DB
-# =============== Work with Plugin Monitoring of GLPI ===============
-define module{
- module_name glpidb
- module_type glpidb
- database glpi ; database name
- user root ; database user
- password root ; must be changed
- host localhost ; host to connect to
+ ; but the localname of the server
}
-############################# For the schedulers
-#Now the good flat file for retention module
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # # For the schedulers
+# Now the good flat file for retention module
define module{
module_name PickleRetention
module_type pickle_retention_file_generic
@@ -452,14 +423,14 @@ define module{
}
-#Now the good flat file for retention module
+# Now the good flat file for retention module
define module{
module_name PickleRetentionBroker
module_type pickle_retention_file_generic
path /tmp/retention_broker.dat
}
-#Now the good flat file for retention module
+# Now the good flat file for retention module
define module{
module_name PickleRetentionArbiter
module_type pickle_retention_file_generic
@@ -467,8 +438,8 @@ define module{
}
-############################# For the schedulers
-#Now the good flat file for retention module
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # # For the schedulers
+# Now the good flat file for retention module
define module{
module_name NagiosRetention
module_type nagios_retention_file
@@ -476,7 +447,7 @@ define module{
}
-# A Mongodb retention module for the scheduler
+# A Mongodb retention module for the scheduler
define module{
module_name MongodbRetention
module_type mongodb_retention
@@ -485,8 +456,8 @@ define module{
}
-#Now the memcache one
-#Now the good flat file for retention module
+# Now the memcache one
+# Now the good flat file for retention module
define module{
module_name MemcacheRetention
module_type memcache_retention
@@ -495,8 +466,8 @@ define module{
}
-#And the redis one
-#Now the good flat file for retention module
+# And the redis one
+# Now the good flat file for retention module
define module{
module_name RedisRetention
module_type redis_retention
@@ -504,7 +475,7 @@ define module{
}
-# The old namaed pipe way from Nagios
+# The old namaed pipe way from Nagios
define module{
module_name CommandFile
module_type named_pipe
@@ -512,12 +483,12 @@ define module{
}
-#You know GLPI? You can load all configuration from this app(
-#with the webservices plugins for GLPI, in xmlrpc mode
-#and with plugin monitoring for GLPI)
-# =============== Work with Plugin Monitoring of GLPI ===============
-#All configuration read from this will be added to the others of the
-#standard flat file
+# You know GLPI? You can load all configuration from this app(
+# with the webservices plugins for GLPI, in xmlrpc mode
+# and with plugin monitoring for GLPI)
+# =============== Work with Plugin Monitoring of GLPI ===============
+# All configuration read from this will be added to the others of the
+# standard flat file
define module{
module_name GLPI
module_type glpi
@@ -526,8 +497,21 @@ define module{
login_password glpi
}
+# send into GLPI DB, it's a BROKER MODULE!
+# =============== Work with Plugin Monitoring of GLPI ===============
+define module{
+ module_name glpidb
+ module_type glpidb
+ database glpi ; database name
+ user root ; database user
+ password root ; must be changed
+ host localhost ; host to connect to
+}
-# Read objects in a mongodb database
+
+
+
+# Read objects in a mongodb database
define module{
module_name Mongodb
module_type mongodb
@@ -536,8 +520,8 @@ define module{
}
-#You know NSCA? You can send check results to Shinken
-#using send_nsca command
+# You know NSCA? You can send check results to Shinken
+# using send_nsca command
define module{
module_name NSCA
module_type nsca_server
@@ -547,7 +531,7 @@ define module{
password helloworld
}
-#This module implements TSCA, a thrift interface to submit check results
+# This module implements TSCA, a thrift interface to submit check results
define module{
module_name TSCA
module_type tsca_server
@@ -555,9 +539,9 @@ define module{
port 9090
}
-# You know VMWare? It's cool to VMotion VM, but after it's hard to
-# follow host dependencies when it moves. With this module, you can
-# just lookup at the vcenter from time to time and update dependencies
+# You know VMWare? It's cool to VMotion VM, but after it's hard to
+# follow host dependencies when it moves. With this module, you can
+# just lookup at the vcenter from time to time and update dependencies
define module{
module_name VMWare_auto_linking
module_type hot_dependencies
@@ -566,13 +550,13 @@ define module{
mapping_command_interval 60 ; optionnal
mapping_command_timeout 300 ; optionnal
- # Only useful if you want debug output. Can
- # be verbose for large installations
- # debug 1
+ # Only useful if you want debug output. Can
+ # be verbose for large installations
+ # debug 1
}
-# Another way to update dependencies is to update a flat file
-# See some examples to do that in the python script
+# Another way to update dependencies is to update a flat file
+# See some examples to do that in the python script
define module{
module_name External_auto_linking
module_type hot_dependencies
@@ -582,10 +566,10 @@ define module{
mapping_command_timeout 300 ; optionnal
}
-# Arbiter module to change on the fly a poller tag of a
-# command by another.
-# Useful when you use a fixed configuration tool that doesn't allow you
-# to configure poller_tag.
+# Arbiter module to change on the fly a poller tag of a
+# command by another.
+# Useful when you use a fixed configuration tool that doesn't allow you
+# to configure poller_tag.
define module{
module_name HackCommandsPollerTag
module_type hack_commands_poller_tag
@@ -594,10 +578,10 @@ define module{
}
-# Arbiter module to change on the fly a poller tag of hosts
-# and services by search a custom macro
-# Useful when you use a fixed configuration tool that doesn't allow you
-# to configure poller_tag.
+# Arbiter module to change on the fly a poller tag of hosts
+# and services by search a custom macro
+# Useful when you use a fixed configuration tool that doesn't allow you
+# to configure poller_tag.
define module{
module_name HackPollerTagByMacros
module_type hack_poller_tag_by_macros
@@ -606,12 +590,12 @@ define module{
}
-#Hosts and Services configuration can be pulled from a MySQL database
-#All hosts and services read from the database will be added to the others of the
-#standard flat file
-#You can easily use an existing database, you just have to define the queries.
-#It can be a useful module to use for HA too :)
-#Warning : only for hosts and services
+# Hosts and Services configuration can be pulled from a MySQL database
+# All hosts and services read from the database will be added to the others of the
+# standard flat file
+# You can easily use an existing database, you just have to define the queries.
+# It can be a useful module to use for HA too :)
+# Warning : only for hosts and services
define module{
module_name MySQLImport
module_type mysql_import
@@ -624,14 +608,14 @@ define module{
reqcontacts SELECT contact_name, email, template AS 'use' FROM contacts
}
-# Will "tag" hosts by looking at their hostadress, and find the IP
-# ifthe ip is in the range below, it will apply the property with
-# the value like if the line
-# property value
-# was in the define of the host.
-# Method : replace or append.
-# replace will put the value if not another one is in place
-# append will add with a , if a value already exist
+# Will "tag" hosts by looking at their hostadress, and find the IP
+# ifthe ip is in the range below, it will apply the property with
+# the value like if the line
+# property value
+# was in the define of the host.
+# Method : replace or append.
+# replace will put the value if not another one is in place
+# append will add with a , if a value already exist
define module{
module_name IpTag
module_type ip_tag
@@ -639,69 +623,68 @@ define module{
property poller_tag
value LOCAL
- # Optionnal
+ # Optionnal
method replace
}
-#The arbiter definition is optional
-#WARNING : You must change host_name with the
-#hostname of your machine !!!!
+# The arbiter definition is optional
+# WARNING : You must change host_name with the
+# hostname of your machine !!!!
define arbiter{
arbiter_name Arbiter-Master
-# host_name node1 ;result of the hostname command under Unix
+# host_name node1 ;result of the hostname command under Unix
address localhost ;IP or DNS adress
port 7770
spare 0
-# uncomment the line below if you want to use some modules for your arbiter
-# modules CommandFile, Mongodb, NSCA, VMWare_auto_linking
-
-# List of interesting modules :
-# CommandFile : open the named pipe nagios.cmd
-# Mongodb : load hosts from a mongodb database
-# PickleRetentionArbiter : save data before exiting
-# NSCA : NSCA server
-# VMWare_auto_linking : lookup at Vphere server for dependencies
-# GLPI : import hosts from GLPI
-# TSCA : TSCA server
-
-
-# Uncomment these lines in a HA architecture so the master
-# and slaves know how long they may wait for each other
-# check_interval 60 ; ping it every minute
-# timeout 3 ; 'ping' timeout
-# data_timeout 120 ; 'data send' timeout
-# max_check_attempts 3 ; if at least max_check_attempts ping failed, the node is DEAD
-
+# uncomment the line below if you want to use some modules for your arbiter
+# modules CommandFile, Mongodb, NSCA, VMWare_auto_linking
+
+# List of interesting modules :
+# CommandFile : open the named pipe nagios.cmd
+# Mongodb : load hosts from a mongodb database
+# PickleRetentionArbiter : save data before exiting
+# NSCA : NSCA server
+# VMWare_auto_linking : lookup at Vphere server for dependencies
+# GLPI : import hosts from GLPI
+# TSCA : TSCA server
+
+
+# Uncomment these lines in a HA architecture so the master
+# and slaves know how long they may wait for each other
+# check_interval 60 ; ping it every minute
+# timeout 3 ; 'ping' timeout
+# data_timeout 120 ; 'data send' timeout
+# max_check_attempts 3 ; if at least max_check_attempts ping failed, the node is DEAD
}
-# The receiver manages passive information. It's just a "buffer" that
-# will be read from the arbiter to dispatch data
+# The receiver manages passive information. It's just a "buffer" that
+# will be read from the arbiter to dispatch data
define receiver{
receiver_name receiver-1
address localhost
port 7773
spare 0
- # The main goal of the receiver is to load
- # Passive modules, like the NSCA one
- #modules NSCA,CommandFile
+ # The main goal of the receiver is to load
+ # Passive modules, like the NSCA one
+ # modules NSCA,CommandFile
timeout 3 ; 'ping' timeout
data_timeout 120 ; 'data send' timeout
max_check_attempts 3 ; if at least max_check_attempts ping failed, the node is DEAD
check_interval 60 ; ping it every minute
- #advanced
+ # advanced
realm All
}
-#Very advanced feature for multisite management.
-#Read the docs VERY CAREFULLY before changing these settings :)
+# Very advanced feature for multisite management.
+# Read the docs VERY CAREFULLY before changing these settings :)
define realm{
realm_name All
default 1
@@ -711,34 +694,34 @@ define realm{
-# Sample of an android SMS reactionner.
-# 2 requirements :
-# * modules AndroidSMS : so you will load SMS sending code
-# * reactionner_tags android_sms : so ONLY commands with this tag will
-# be sent to this reactionner, no mail things.
-#define reactionner{
-# reactionner_name reactionner-Android
-# address IPOFYOURANDROIDPHONE
-# port 7769
-# spare 0
-#
-# timeout 3 ; 'ping' timeout
-# data_timeout 120 ; 'data send' timeout
-# check_interval 60 ; ping it every minute
-# max_check_attempts 3 ; if at least max_check_attempts ping failed, the node is DEAD
-#
-# # Modules
-# modules AndroidSMS
-#
-# reactionner_tags android_sms
-#
-# #optional
-# realm All
-# }
+# Sample of an android SMS reactionner.
+# 2 requirements :
+# * modules AndroidSMS : so you will load SMS sending code
+# * reactionner_tags android_sms : so ONLY commands with this tag will
+# be sent to this reactionner, no mail things.
+# define reactionner{
+# reactionner_name reactionner-Android
+# address WIFI-IP-OF-YOUR-ANDROID-PHONE
+# port 7769
+# spare 0
+#
+# timeout 3 ; 'ping' timeout
+# data_timeout 120 ; 'data send' timeout
+# check_interval 60 ; ping it every minute
+# max_check_attempts 3 ; if at least max_check_attempts ping failed, the node is DEAD
+#
+# # Modules
+# modules AndroidSMS
+#
+# reactionner_tags android_sms
+#
+# # optional
+# realm All
+# }
-# Reactionner can be launched under an android device
-# and can be used to send SMS with this module
+# Reactionner can be launched under an android device
+# and can be used to send SMS with this module
define module{
module_name AndroidSMS
module_type android_sms
--
UNNAMED PROJECT
More information about the Pkg-nagios-changes
mailing list