mirror of https://github.com/zulip/zulip.git
Add Nagios config files to git.
(imported from commit 5d6ba166cf35afdd76ca4f2cfc8a13988cfdeaea)
This commit is contained in:
parent
b81ef9cca7
commit
c0b75ed93a
|
@ -0,0 +1,370 @@
|
||||||
|
#################################################################
|
||||||
|
#
|
||||||
|
# CGI.CFG - Sample CGI Configuration File for Nagios
|
||||||
|
#
|
||||||
|
#################################################################
|
||||||
|
|
||||||
|
|
||||||
|
# MAIN CONFIGURATION FILE
|
||||||
|
# This tells the CGIs where to find your main configuration file.
|
||||||
|
# The CGIs will read the main and host config files for any other
|
||||||
|
# data they might need.
|
||||||
|
|
||||||
|
main_config_file=/etc/nagios3/nagios.cfg
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# PHYSICAL HTML PATH
|
||||||
|
# This is the path where the HTML files for Nagios reside. This
|
||||||
|
# value is used to locate the logo images needed by the statusmap
|
||||||
|
# and statuswrl CGIs.
|
||||||
|
|
||||||
|
physical_html_path=/usr/share/nagios3/htdocs
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# URL HTML PATH
|
||||||
|
# This is the path portion of the URL that corresponds to the
|
||||||
|
# physical location of the Nagios HTML files (as defined above).
|
||||||
|
# This value is used by the CGIs to locate the online documentation
|
||||||
|
# and graphics. If you access the Nagios pages with an URL like
|
||||||
|
# http://www.myhost.com/nagios, this value should be '/nagios'
|
||||||
|
# (without the quotes).
|
||||||
|
|
||||||
|
url_html_path=/nagios3
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# CONTEXT-SENSITIVE HELP
|
||||||
|
# This option determines whether or not a context-sensitive
|
||||||
|
# help icon will be displayed for most of the CGIs.
|
||||||
|
# Values: 0 = disables context-sensitive help
|
||||||
|
# 1 = enables context-sensitive help
|
||||||
|
|
||||||
|
show_context_help=1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# PENDING STATES OPTION
|
||||||
|
# This option determines what states should be displayed in the web
|
||||||
|
# interface for hosts/services that have not yet been checked.
|
||||||
|
# Values: 0 = leave hosts/services that have not been check yet in their original state
|
||||||
|
# 1 = mark hosts/services that have not been checked yet as PENDING
|
||||||
|
|
||||||
|
use_pending_states=1
|
||||||
|
|
||||||
|
# NAGIOS PROCESS CHECK COMMAND
|
||||||
|
# This is the full path and filename of the program used to check
|
||||||
|
# the status of the Nagios process. It is used only by the CGIs
|
||||||
|
# and is completely optional. However, if you don't use it, you'll
|
||||||
|
# see warning messages in the CGIs about the Nagios process
|
||||||
|
# not running and you won't be able to execute any commands from
|
||||||
|
# the web interface. The program should follow the same rules
|
||||||
|
# as plugins; the return codes are the same as for the plugins,
|
||||||
|
# it should have timeout protection, it should output something
|
||||||
|
# to STDIO, etc.
|
||||||
|
#
|
||||||
|
# Note: The command line for the check_nagios plugin below may
|
||||||
|
# have to be tweaked a bit, as different versions of the plugin
|
||||||
|
# use different command line arguments/syntaxes.
|
||||||
|
|
||||||
|
nagios_check_command=/usr/lib/nagios/plugins/check_nagios /var/cache/nagios3/status.dat 5 '/usr/sbin/nagios3'
|
||||||
|
|
||||||
|
|
||||||
|
# AUTHENTICATION USAGE
|
||||||
|
# This option controls whether or not the CGIs will use any
|
||||||
|
# authentication when displaying host and service information, as
|
||||||
|
# well as committing commands to Nagios for processing.
|
||||||
|
#
|
||||||
|
# Read the HTML documentation to learn how the authorization works!
|
||||||
|
#
|
||||||
|
# NOTE: It is a really *bad* idea to disable authorization, unless
|
||||||
|
# you plan on removing the command CGI (cmd.cgi)! Failure to do
|
||||||
|
# so will leave you wide open to kiddies messing with Nagios and
|
||||||
|
# possibly hitting you with a denial of service attack by filling up
|
||||||
|
# your drive by continuously writing to your command file!
|
||||||
|
#
|
||||||
|
# Setting this value to 0 will cause the CGIs to *not* use
|
||||||
|
# authentication (bad idea), while any other value will make them
|
||||||
|
# use the authentication functions (the default).
|
||||||
|
|
||||||
|
use_authentication=0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# x509 CERT AUTHENTICATION
|
||||||
|
# When enabled, this option allows you to use x509 cert (SSL)
|
||||||
|
# authentication in the CGIs. This is an advanced option and should
|
||||||
|
# not be enabled unless you know what you're doing.
|
||||||
|
|
||||||
|
use_ssl_authentication=0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# DEFAULT USER
|
||||||
|
# Setting this variable will define a default user name that can
|
||||||
|
# access pages without authentication. This allows people within a
|
||||||
|
# secure domain (i.e., behind a firewall) to see the current status
|
||||||
|
# without authenticating. You may want to use this to avoid basic
|
||||||
|
# authentication if you are not using a secure server since basic
|
||||||
|
# authentication transmits passwords in the clear.
|
||||||
|
#
|
||||||
|
# Important: Do not define a default username unless you are
|
||||||
|
# running a secure web server and are sure that everyone who has
|
||||||
|
# access to the CGIs has been authenticated in some manner! If you
|
||||||
|
# define this variable, anyone who has not authenticated to the web
|
||||||
|
# server will inherit all rights you assign to this user!
|
||||||
|
|
||||||
|
#default_user_name=guest
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# SYSTEM/PROCESS INFORMATION ACCESS
|
||||||
|
# This option is a comma-delimited list of all usernames that
|
||||||
|
# have access to viewing the Nagios process information as
|
||||||
|
# provided by the Extended Information CGI (extinfo.cgi). By
|
||||||
|
# default, *no one* has access to this unless you choose to
|
||||||
|
# not use authorization. You may use an asterisk (*) to
|
||||||
|
# authorize any user who has authenticated to the web server.
|
||||||
|
|
||||||
|
authorized_for_system_information=nagiosadmin
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# CONFIGURATION INFORMATION ACCESS
|
||||||
|
# This option is a comma-delimited list of all usernames that
|
||||||
|
# can view ALL configuration information (hosts, commands, etc).
|
||||||
|
# By default, users can only view configuration information
|
||||||
|
# for the hosts and services they are contacts for. You may use
|
||||||
|
# an asterisk (*) to authorize any user who has authenticated
|
||||||
|
# to the web server.
|
||||||
|
|
||||||
|
authorized_for_configuration_information=nagiosadmin
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# SYSTEM/PROCESS COMMAND ACCESS
|
||||||
|
# This option is a comma-delimited list of all usernames that
|
||||||
|
# can issue shutdown and restart commands to Nagios via the
|
||||||
|
# command CGI (cmd.cgi). Users in this list can also change
|
||||||
|
# the program mode to active or standby. By default, *no one*
|
||||||
|
# has access to this unless you choose to not use authorization.
|
||||||
|
# You may use an asterisk (*) to authorize any user who has
|
||||||
|
# authenticated to the web server.
|
||||||
|
|
||||||
|
authorized_for_system_commands=nagiosadmin
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# GLOBAL HOST/SERVICE VIEW ACCESS
|
||||||
|
# These two options are comma-delimited lists of all usernames that
|
||||||
|
# can view information for all hosts and services that are being
|
||||||
|
# monitored. By default, users can only view information
|
||||||
|
# for hosts or services that they are contacts for (unless you
|
||||||
|
# you choose to not use authorization). You may use an asterisk (*)
|
||||||
|
# to authorize any user who has authenticated to the web server.
|
||||||
|
|
||||||
|
|
||||||
|
authorized_for_all_services=nagiosadmin
|
||||||
|
authorized_for_all_hosts=nagiosadmin
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# GLOBAL HOST/SERVICE COMMAND ACCESS
|
||||||
|
# These two options are comma-delimited lists of all usernames that
|
||||||
|
# can issue host or service related commands via the command
|
||||||
|
# CGI (cmd.cgi) for all hosts and services that are being monitored.
|
||||||
|
# By default, users can only issue commands for hosts or services
|
||||||
|
# that they are contacts for (unless you you choose to not use
|
||||||
|
# authorization). You may use an asterisk (*) to authorize any
|
||||||
|
# user who has authenticated to the web server.
|
||||||
|
|
||||||
|
authorized_for_all_service_commands=nagiosadmin
|
||||||
|
authorized_for_all_host_commands=nagiosadmin
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# READ-ONLY USERS
|
||||||
|
# A comma-delimited list of usernames that have read-only rights in
|
||||||
|
# the CGIs. This will block any service or host commands normally shown
|
||||||
|
# on the extinfo CGI pages. It will also block comments from being shown
|
||||||
|
# to read-only users.
|
||||||
|
|
||||||
|
#authorized_for_read_only=user1,user2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# STATUSMAP BACKGROUND IMAGE
|
||||||
|
# This option allows you to specify an image to be used as a
|
||||||
|
# background in the statusmap CGI. It is assumed that the image
|
||||||
|
# resides in the HTML images path (i.e. /usr/local/nagios/share/images).
|
||||||
|
# This path is automatically determined by appending "/images"
|
||||||
|
# to the path specified by the 'physical_html_path' directive.
|
||||||
|
# Note: The image file may be in GIF, PNG, JPEG, or GD2 format.
|
||||||
|
# However, I recommend that you convert your image to GD2 format
|
||||||
|
# (uncompressed), as this will cause less CPU load when the CGI
|
||||||
|
# generates the image.
|
||||||
|
|
||||||
|
#statusmap_background_image=smbackground.gd2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# STATUSMAP TRANSPARENCY INDEX COLOR
|
||||||
|
# These options set the r,g,b values of the background color used the statusmap CGI,
|
||||||
|
# so normal browsers that can't show real png transparency set the desired color as
|
||||||
|
# a background color instead (to make it look pretty).
|
||||||
|
# Defaults to white: (R,G,B) = (255,255,255).
|
||||||
|
|
||||||
|
#color_transparency_index_r=255
|
||||||
|
#color_transparency_index_g=255
|
||||||
|
#color_transparency_index_b=255
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# DEFAULT STATUSMAP LAYOUT METHOD
|
||||||
|
# This option allows you to specify the default layout method
|
||||||
|
# the statusmap CGI should use for drawing hosts. If you do
|
||||||
|
# not use this option, the default is to use user-defined
|
||||||
|
# coordinates. Valid options are as follows:
|
||||||
|
# 0 = User-defined coordinates
|
||||||
|
# 1 = Depth layers
|
||||||
|
# 2 = Collapsed tree
|
||||||
|
# 3 = Balanced tree
|
||||||
|
# 4 = Circular
|
||||||
|
# 5 = Circular (Marked Up)
|
||||||
|
|
||||||
|
default_statusmap_layout=5
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# DEFAULT STATUSWRL LAYOUT METHOD
|
||||||
|
# This option allows you to specify the default layout method
|
||||||
|
# the statuswrl (VRML) CGI should use for drawing hosts. If you
|
||||||
|
# do not use this option, the default is to use user-defined
|
||||||
|
# coordinates. Valid options are as follows:
|
||||||
|
# 0 = User-defined coordinates
|
||||||
|
# 2 = Collapsed tree
|
||||||
|
# 3 = Balanced tree
|
||||||
|
# 4 = Circular
|
||||||
|
|
||||||
|
default_statuswrl_layout=4
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# STATUSWRL INCLUDE
|
||||||
|
# This option allows you to include your own objects in the
|
||||||
|
# generated VRML world. It is assumed that the file
|
||||||
|
# resides in the HTML path (i.e. /usr/local/nagios/share).
|
||||||
|
|
||||||
|
#statuswrl_include=myworld.wrl
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# PING SYNTAX
|
||||||
|
# This option determines what syntax should be used when
|
||||||
|
# attempting to ping a host from the WAP interface (using
|
||||||
|
# the statuswml CGI. You must include the full path to
|
||||||
|
# the ping binary, along with all required options. The
|
||||||
|
# $HOSTADDRESS$ macro is substituted with the address of
|
||||||
|
# the host before the command is executed.
|
||||||
|
# Please note that the syntax for the ping binary is
|
||||||
|
# notorious for being different on virtually ever *NIX
|
||||||
|
# OS and distribution, so you may have to tweak this to
|
||||||
|
# work on your system.
|
||||||
|
|
||||||
|
ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# REFRESH RATE
|
||||||
|
# This option allows you to specify the refresh rate in seconds
|
||||||
|
# of various CGIs (status, statusmap, extinfo, and outages).
|
||||||
|
|
||||||
|
refresh_rate=90
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# ESCAPE HTML TAGS
|
||||||
|
# This option determines whether HTML tags in host and service
|
||||||
|
# status output is escaped in the web interface. If enabled,
|
||||||
|
# your plugin output will not be able to contain clickable links.
|
||||||
|
|
||||||
|
escape_html_tags=1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# SOUND OPTIONS
|
||||||
|
# These options allow you to specify an optional audio file
|
||||||
|
# that should be played in your browser window when there are
|
||||||
|
# problems on the network. The audio files are used only in
|
||||||
|
# the status CGI. Only the sound for the most critical problem
|
||||||
|
# will be played. Order of importance (higher to lower) is as
|
||||||
|
# follows: unreachable hosts, down hosts, critical services,
|
||||||
|
# warning services, and unknown services. If there are no
|
||||||
|
# visible problems, the sound file optionally specified by
|
||||||
|
# 'normal_sound' variable will be played.
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# <varname>=<sound_file>
|
||||||
|
#
|
||||||
|
# Note: All audio files must be placed in the /media subdirectory
|
||||||
|
# under the HTML path (i.e. /usr/local/nagios/share/media/).
|
||||||
|
|
||||||
|
#host_unreachable_sound=hostdown.wav
|
||||||
|
#host_down_sound=hostdown.wav
|
||||||
|
#service_critical_sound=critical.wav
|
||||||
|
#service_warning_sound=warning.wav
|
||||||
|
#service_unknown_sound=warning.wav
|
||||||
|
#normal_sound=noproblem.wav
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# URL TARGET FRAMES
|
||||||
|
# These options determine the target frames in which notes and
|
||||||
|
# action URLs will open.
|
||||||
|
|
||||||
|
action_url_target=_blank
|
||||||
|
notes_url_target=_blank
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# LOCK AUTHOR NAMES OPTION
|
||||||
|
# This option determines whether users can change the author name
|
||||||
|
# when submitting comments, scheduling downtime. If disabled, the
|
||||||
|
# author names will be locked into their contact name, as defined in Nagios.
|
||||||
|
# Values: 0 = allow editing author names
|
||||||
|
# 1 = lock author names (disallow editing)
|
||||||
|
|
||||||
|
lock_author_names=1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# SPLUNK INTEGRATION OPTIONS
|
||||||
|
# These options allow you to enable integration with Splunk
|
||||||
|
# in the web interface. If enabled, you'll be presented with
|
||||||
|
# "Splunk It" links in various places in the CGIs (log file,
|
||||||
|
# alert history, host/service detail, etc). Useful if you're
|
||||||
|
# trying to research why a particular problem occurred.
|
||||||
|
# For more information on Splunk, visit http://www.splunk.com/
|
||||||
|
|
||||||
|
# This option determines whether the Splunk integration is enabled
|
||||||
|
# Values: 0 = disable Splunk integration
|
||||||
|
# 1 = enable Splunk integration
|
||||||
|
|
||||||
|
#enable_splunk_integration=1
|
||||||
|
|
||||||
|
|
||||||
|
# This option should be the URL used to access your instance of Splunk
|
||||||
|
|
||||||
|
#splunk_url=http://127.0.0.1:8000/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,52 @@
|
||||||
|
###############################################################################
|
||||||
|
# COMMANDS.CFG - SAMPLE COMMAND DEFINITIONS FOR NAGIOS
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# NOTIFICATION COMMANDS
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
|
||||||
|
# 'notify-host-by-email' command definition
|
||||||
|
define command{
|
||||||
|
command_name notify-host-by-email
|
||||||
|
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
|
||||||
|
}
|
||||||
|
|
||||||
|
# 'notify-service-by-email' command definition
|
||||||
|
define command{
|
||||||
|
command_name notify-service-by-email
|
||||||
|
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# HOST CHECK COMMANDS
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
# On Debian, check-host-alive is being defined from within the
|
||||||
|
# nagios-plugins-basic package
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# PERFORMANCE DATA COMMANDS
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
|
||||||
|
# 'process-host-perfdata' command definition
|
||||||
|
define command{
|
||||||
|
command_name process-host-perfdata
|
||||||
|
command_line /usr/bin/printf "%b" "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" >> /var/lib/nagios3/host-perfdata.out
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# 'process-service-perfdata' command definition
|
||||||
|
define command{
|
||||||
|
command_name process-service-perfdata
|
||||||
|
command_line /usr/bin/printf "%b" "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >> /var/lib/nagios3/service-perfdata.out
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,46 @@
|
||||||
|
###############################################################################
|
||||||
|
# contacts.cfg
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
###############################################################################
|
||||||
|
#
|
||||||
|
# CONTACTS
|
||||||
|
#
|
||||||
|
###############################################################################
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
# In this simple config file, a single contact will receive all alerts.
|
||||||
|
|
||||||
|
define contact{
|
||||||
|
contact_name monitoring
|
||||||
|
alias Monitoring
|
||||||
|
service_notification_period 24x7
|
||||||
|
host_notification_period 24x7
|
||||||
|
service_notification_options w,u,c,r
|
||||||
|
host_notification_options d,r
|
||||||
|
service_notification_commands notify-service-by-email
|
||||||
|
host_notification_commands notify-host-by-email
|
||||||
|
email monitoring@humbughq.com
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
###############################################################################
|
||||||
|
#
|
||||||
|
# CONTACT GROUPS
|
||||||
|
#
|
||||||
|
###############################################################################
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
# We only have one contact in this simple configuration file, so there is
|
||||||
|
# no need to create more than one contact group.
|
||||||
|
|
||||||
|
define contactgroup{
|
||||||
|
contactgroup_name admins
|
||||||
|
alias Nagios Administrators
|
||||||
|
members monitoring
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
# Generic host definition template - This is NOT a real host, just a template!
|
||||||
|
|
||||||
|
define host{
|
||||||
|
name generic-host ; The name of this host template
|
||||||
|
notifications_enabled 1 ; Host notifications are enabled
|
||||||
|
event_handler_enabled 1 ; Host event handler is enabled
|
||||||
|
flap_detection_enabled 1 ; Flap detection is enabled
|
||||||
|
failure_prediction_enabled 1 ; Failure prediction is enabled
|
||||||
|
process_perf_data 1 ; Process performance data
|
||||||
|
retain_status_information 1 ; Retain status information across program restarts
|
||||||
|
retain_nonstatus_information 1 ; Retain non-status information across program restarts
|
||||||
|
check_command check_tcp!22
|
||||||
|
max_check_attempts 10
|
||||||
|
notification_interval 0
|
||||||
|
notification_period 24x7
|
||||||
|
notification_options d,u,r
|
||||||
|
contact_groups admins
|
||||||
|
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
|
||||||
|
}
|
|
@ -0,0 +1,26 @@
|
||||||
|
# generic service template definition
|
||||||
|
define service{
|
||||||
|
name generic-service ; The 'name' of this service template
|
||||||
|
active_checks_enabled 1 ; Active service checks are enabled
|
||||||
|
passive_checks_enabled 1 ; Passive service checks are enabled/accepted
|
||||||
|
parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems)
|
||||||
|
obsess_over_service 1 ; We should obsess over this service (if necessary)
|
||||||
|
check_freshness 0 ; Default is to NOT check service 'freshness'
|
||||||
|
notifications_enabled 1 ; Service notifications are enabled
|
||||||
|
event_handler_enabled 1 ; Service event handler is enabled
|
||||||
|
flap_detection_enabled 1 ; Flap detection is enabled
|
||||||
|
failure_prediction_enabled 1 ; Failure prediction is enabled
|
||||||
|
process_perf_data 1 ; Process performance data
|
||||||
|
retain_status_information 1 ; Retain status information across program restarts
|
||||||
|
retain_nonstatus_information 1 ; Retain non-status information across program restarts
|
||||||
|
notification_interval 0 ; Only send notifications on status change by default.
|
||||||
|
is_volatile 0
|
||||||
|
check_period 24x7
|
||||||
|
normal_check_interval 5
|
||||||
|
retry_check_interval 1
|
||||||
|
max_check_attempts 4
|
||||||
|
notification_period 24x7
|
||||||
|
notification_options w,u,c,r
|
||||||
|
contact_groups admins
|
||||||
|
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
# A simple wildcard hostgroup
|
||||||
|
define hostgroup {
|
||||||
|
hostgroup_name all
|
||||||
|
alias All Servers
|
||||||
|
members *
|
||||||
|
}
|
||||||
|
|
||||||
|
define hostgroup {
|
||||||
|
hostgroup_name web
|
||||||
|
alias Web Servers
|
||||||
|
}
|
|
@ -0,0 +1,39 @@
|
||||||
|
define host{
|
||||||
|
use generic-host
|
||||||
|
host_name app
|
||||||
|
alias App
|
||||||
|
address app.humbughq.com
|
||||||
|
hostgroups all,web
|
||||||
|
}
|
||||||
|
|
||||||
|
define host{
|
||||||
|
use generic-host
|
||||||
|
host_name trac
|
||||||
|
alias Trac
|
||||||
|
address trac.humbughq.com
|
||||||
|
hostgroups all,web
|
||||||
|
}
|
||||||
|
|
||||||
|
define host{
|
||||||
|
use generic-host
|
||||||
|
host_name wiki
|
||||||
|
alias Wiki
|
||||||
|
address wiki.humbughq.com
|
||||||
|
hostgroups all,web
|
||||||
|
}
|
||||||
|
|
||||||
|
define host{
|
||||||
|
use generic-host
|
||||||
|
host_name dev
|
||||||
|
alias Dev
|
||||||
|
address dev.humbughq.com
|
||||||
|
hostgroups all
|
||||||
|
}
|
||||||
|
|
||||||
|
define host{
|
||||||
|
use generic-host
|
||||||
|
host_name git
|
||||||
|
alias Git
|
||||||
|
address git.humbughq.com
|
||||||
|
hostgroups all
|
||||||
|
}
|
|
@ -0,0 +1,36 @@
|
||||||
|
define host{
|
||||||
|
use generic-host
|
||||||
|
host_name nagios
|
||||||
|
alias nagios
|
||||||
|
address 127.0.0.1
|
||||||
|
hostgroups all
|
||||||
|
}
|
||||||
|
|
||||||
|
define service{
|
||||||
|
use generic-service
|
||||||
|
host_name nagios
|
||||||
|
service_description Current Users
|
||||||
|
check_command check_users!20!50
|
||||||
|
}
|
||||||
|
|
||||||
|
define service{
|
||||||
|
use generic-service
|
||||||
|
host_name nagios
|
||||||
|
service_description Total Processes
|
||||||
|
check_command check_procs!250!400
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
define service{
|
||||||
|
use generic-service
|
||||||
|
host_name nagios
|
||||||
|
service_description Disk Space
|
||||||
|
check_command check_all_disks!20%!10%
|
||||||
|
}
|
||||||
|
|
||||||
|
define service{
|
||||||
|
use generic-service
|
||||||
|
host_name nagios
|
||||||
|
service_description Current Load
|
||||||
|
check_command check_load!5.0!4.0!3.0!10.0!6.0!4.0
|
||||||
|
}
|
|
@ -0,0 +1,13 @@
|
||||||
|
define service{
|
||||||
|
use generic-service
|
||||||
|
hostgroup_name web
|
||||||
|
service_description HTTP
|
||||||
|
check_command check_http
|
||||||
|
}
|
||||||
|
|
||||||
|
define service {
|
||||||
|
use generic-service
|
||||||
|
hostgroup_name all
|
||||||
|
service_description SSH
|
||||||
|
check_command check_ssh
|
||||||
|
}
|
|
@ -0,0 +1,50 @@
|
||||||
|
###############################################################################
|
||||||
|
# timeperiods.cfg
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
# This defines a timeperiod where all times are valid for checks,
|
||||||
|
# notifications, etc. The classic "24x7" support nightmare. :-)
|
||||||
|
|
||||||
|
define timeperiod{
|
||||||
|
timeperiod_name 24x7
|
||||||
|
alias 24 Hours A Day, 7 Days A Week
|
||||||
|
sunday 00:00-24:00
|
||||||
|
monday 00:00-24:00
|
||||||
|
tuesday 00:00-24:00
|
||||||
|
wednesday 00:00-24:00
|
||||||
|
thursday 00:00-24:00
|
||||||
|
friday 00:00-24:00
|
||||||
|
saturday 00:00-24:00
|
||||||
|
}
|
||||||
|
|
||||||
|
# Here is a slightly friendlier period during work hours
|
||||||
|
define timeperiod{
|
||||||
|
timeperiod_name workhours
|
||||||
|
alias Standard Work Hours
|
||||||
|
monday 09:00-17:00
|
||||||
|
tuesday 09:00-17:00
|
||||||
|
wednesday 09:00-17:00
|
||||||
|
thursday 09:00-17:00
|
||||||
|
friday 09:00-17:00
|
||||||
|
}
|
||||||
|
|
||||||
|
# The complement of workhours
|
||||||
|
define timeperiod{
|
||||||
|
timeperiod_name nonworkhours
|
||||||
|
alias Non-Work Hours
|
||||||
|
sunday 00:00-24:00
|
||||||
|
monday 00:00-09:00,17:00-24:00
|
||||||
|
tuesday 00:00-09:00,17:00-24:00
|
||||||
|
wednesday 00:00-09:00,17:00-24:00
|
||||||
|
thursday 00:00-09:00,17:00-24:00
|
||||||
|
friday 00:00-09:00,17:00-24:00
|
||||||
|
saturday 00:00-24:00
|
||||||
|
}
|
||||||
|
|
||||||
|
# This one is a favorite: never :)
|
||||||
|
define timeperiod{
|
||||||
|
timeperiod_name never
|
||||||
|
alias Never
|
||||||
|
}
|
||||||
|
|
||||||
|
# end of file
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,31 @@
|
||||||
|
###########################################################################
|
||||||
|
#
|
||||||
|
# RESOURCE.CFG - Resource File for Nagios
|
||||||
|
#
|
||||||
|
# You can define $USERx$ macros in this file, which can in turn be used
|
||||||
|
# in command definitions in your host config file(s). $USERx$ macros are
|
||||||
|
# useful for storing sensitive information such as usernames, passwords,
|
||||||
|
# etc. They are also handy for specifying the path to plugins and
|
||||||
|
# event handlers - if you decide to move the plugins or event handlers to
|
||||||
|
# a different directory in the future, you can just update one or two
|
||||||
|
# $USERx$ macros, instead of modifying a lot of command definitions.
|
||||||
|
#
|
||||||
|
# The CGIs will not attempt to read the contents of resource files, so
|
||||||
|
# you can set restrictive permissions (600 or 660) on them.
|
||||||
|
#
|
||||||
|
# Nagios supports up to 32 $USERx$ macros ($USER1$ through $USER32$)
|
||||||
|
#
|
||||||
|
# Resource files may also be used to store configuration directives for
|
||||||
|
# external data sources like MySQL...
|
||||||
|
#
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
# Sets $USER1$ to be the path to the plugins
|
||||||
|
$USER1$=/usr/lib/nagios/plugins
|
||||||
|
|
||||||
|
# Sets $USER2$ to be the path to event handlers
|
||||||
|
#$USER2$=/usr/lib/nagios/plugins/eventhandlers
|
||||||
|
|
||||||
|
# Store some usernames and passwords (hidden from the CGIs)
|
||||||
|
#$USER3$=someuser
|
||||||
|
#$USER4$=somepassword
|
Loading…
Reference in New Issue