in progress
This commit is contained in:
parent
362710ffa8
commit
4ee5939b13
490 changed files with 14041 additions and 0 deletions
104
roles/nagios_server/files/check_nagios_notifications.py
Executable file
104
roles/nagios_server/files/check_nagios_notifications.py
Executable file
|
@ -0,0 +1,104 @@
|
|||
#!/usr/bin/env python
|
||||
#
|
||||
# A script to read the Nagios status file and send email for notifications
|
||||
# off, but have recovered.
|
||||
#
|
||||
# Written by Athmane Madjoudj <athmane@fedoraproject.org>, 2011-11-15
|
||||
# based on tummy.com's work <jafo@tummy.com>, 2010-11-16
|
||||
# Released under the GPLv2.
|
||||
|
||||
import re
|
||||
from smtplib import SMTP
|
||||
from email.mime.text import MIMEText
|
||||
from socket import gethostname
|
||||
|
||||
# Settings
|
||||
debug = 0
|
||||
EMAIL_FROM="nagios@fedoraproject.org"
|
||||
EMAIL_TO="sysadmin-noc-members@fedoraproject.org"
|
||||
#EMAIL_TO="athmane@fedoraproject.org"
|
||||
nagios_status_file = '/var/log/nagios/status.dat'
|
||||
|
||||
class NagiosStatus:
|
||||
def __init__(self, filename):
|
||||
self.filename = filename
|
||||
self.hosts = {}
|
||||
self.load_status_file()
|
||||
|
||||
def load_status_file(self):
|
||||
fp = open(self.filename, 'r')
|
||||
while True:
|
||||
line = fp.readline()
|
||||
if not line: break
|
||||
|
||||
m = re.match(r'^hoststatus\s+{\s*$', line)
|
||||
if m:
|
||||
if debug >= 2: print 'START OF HOST'
|
||||
data = { 'services' : [] }
|
||||
while True:
|
||||
line = fp.readline()
|
||||
if not line: break
|
||||
if debug >= 2: print 'host: %s' % line.rstrip()
|
||||
m2 = re.match(r'^\s+([^=]+)=(\S.*)*$', line.rstrip())
|
||||
if not m2: break
|
||||
data[m2.group(1)] = m2.group(2)
|
||||
self.hosts[data['host_name']] = data
|
||||
if debug >= 2: print 'END OF HOST'
|
||||
|
||||
m = re.match(r'^servicestatus\s+{\s*$', line)
|
||||
if m:
|
||||
if debug >= 2: print 'START OF SERVICE'
|
||||
data = {}
|
||||
while True:
|
||||
line = fp.readline()
|
||||
if not line: break
|
||||
if debug >= 2: print 'service: %s' % line.rstrip()
|
||||
m2 = re.match(r'^\s+([^=]+)=(.*)$', line.rstrip())
|
||||
if not m2: break
|
||||
data[m2.group(1)] = m2.group(2)
|
||||
self.hosts[data['host_name']]['services'].append(data)
|
||||
if debug >= 2: print 'END OF SERVICE'
|
||||
|
||||
def main():
|
||||
status = NagiosStatus(nagios_status_file)
|
||||
output = ""
|
||||
for host in sorted(status.hosts.keys()):
|
||||
host = status.hosts[host]
|
||||
if host.get('notifications_enabled', None) == None:
|
||||
output+= 'Host %s has no notifications_enabled line \n' % host['host_name']
|
||||
continue
|
||||
|
||||
# are there any hard states that aren't 0 or 1?
|
||||
hard_states = [ x for x in
|
||||
[ int(x['last_hard_state']) for x in host['services'] ]
|
||||
if not x in [0,1] ]
|
||||
need_newline = False
|
||||
if host['notifications_enabled'] == '0' and not hard_states:
|
||||
output += ('Host %s has notifications disabled and all services ok \n'
|
||||
% host['host_name'])
|
||||
need_newline = True
|
||||
|
||||
for service in host['services']:
|
||||
if debug: print '%s@%s' % ( service['check_command'], host['host_name'] )
|
||||
if debug: print ' notifications_enabled: %(notifications_enabled)s last_hard_state: %(last_hard_state)s' % service
|
||||
if (int(service['notifications_enabled']) == 0
|
||||
and int(service['last_hard_state']) in [0,1]):
|
||||
output+= (('Service %(check_command)s@%(host_name)s\n'
|
||||
' has notifications disabled, but is ok\n') % service)
|
||||
need_newline = True
|
||||
|
||||
if need_newline: output+="\n\n"
|
||||
|
||||
if output.strip() != '':
|
||||
msg_body = "List of notifications off for recovered hosts/services: \n\n"+output
|
||||
msg = MIMEText(msg_body)
|
||||
msg['Subject']="Notifications status on %s" % gethostname()
|
||||
msg['From']=EMAIL_FROM
|
||||
msg['To']=EMAIL_TO
|
||||
smtp_conn = SMTP()
|
||||
smtp_conn.connect('localhost')
|
||||
smtp_conn.sendmail(EMAIL_FROM, EMAIL_TO, msg.as_string())
|
||||
smtp_conn.quit()
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
20
roles/nagios_server/files/config.inc.php
Executable file
20
roles/nagios_server/files/config.inc.php
Executable file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
//
|
||||
|
||||
|
||||
$cfg['cgi_config_file']='/etc/nagios/cgi.cfg'; // location of the CGI config file
|
||||
|
||||
$cfg['cgi_base_url']='/nagios-external/cgi-bin';
|
||||
|
||||
|
||||
// FILE LOCATION DEFAULTS
|
||||
$cfg['main_config_file']='/etc/nagios/nagios.cfg'; // default location of the main Nagios config file
|
||||
$cfg['status_file']='/var/log/nagios/status.dat'; // default location of Nagios status file
|
||||
$cfg['state_retention_file']='/var/log/nagios/retention.dat'; // default location of Nagios retention file
|
||||
|
||||
|
||||
|
||||
// utilities
|
||||
require_once(dirname(__FILE__).'/includes/utils.inc.php');
|
||||
|
||||
?>
|
276
roles/nagios_server/files/nagios-external/cgi.cfg
Normal file
276
roles/nagios_server/files/nagios-external/cgi.cfg
Normal file
|
@ -0,0 +1,276 @@
|
|||
#################################################################
|
||||
#
|
||||
# CGI.CFG - Sample CGI Configuration File for Nagios
|
||||
#
|
||||
# Last Modified: 05-05-2005
|
||||
#
|
||||
#################################################################
|
||||
|
||||
|
||||
# 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/nagios/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/nagios/share
|
||||
|
||||
|
||||
|
||||
# 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=/nagios-external
|
||||
|
||||
|
||||
|
||||
# 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=0
|
||||
|
||||
|
||||
|
||||
# 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/log/nagios/status.dat 5 '/usr/sbin/nagios'
|
||||
|
||||
|
||||
|
||||
# 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=1
|
||||
|
||||
|
||||
|
||||
# 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 sercure 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,theboss,jdoe
|
||||
authorized_for_system_information=*
|
||||
|
||||
|
||||
|
||||
# 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,jdoe
|
||||
authorized_for_configuration_information=*
|
||||
|
||||
|
||||
# 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
|
||||
authorized_for_system_commands=athmane,ausil,averi,badone,codeblock,dwa,hvivani,ianweller,jspaleta,jstanley,kevin,lbazan,lmacken,maxamillio,mmahut,mmcgrath,nb,pfrields,puiterwijk,rafaelgomes,ralph,sijis,smooge,susmit,tibbs,tmz,wsterling,mdomsch,notting,ricky,toshio,spot
|
||||
|
||||
|
||||
|
||||
# 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=*
|
||||
authorized_for_all_hosts=*
|
||||
|
||||
|
||||
# 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=athmane,ausil,averi,badone,codeblock,dwa,hvivani,ianweller,jspaleta,jstanley,kevin,lbazan,lmacken,maxamillio,mmahut,mmcgrath,nb,pfrields,puiterwijk,rafaelgomes,ralph,sijis,smooge,susmit,tibbs,tmz,wsterling,mdomsch,notting,ricky,toshio,spot,mahrud
|
||||
authorized_for_all_host_commands=athmane,ausil,averi,badone,codeblock,dwa,hvivani,ianweller,jspaleta,jstanley,kevin,lbazan,lmacken,maxamillio,mmahut,mmcgrath,nb,pfrields,puiterwijk,rafaelgomes,ralph,sijis,smooge,susmit,tibbs,tmz,wsterling,mdomsch,notting,ricky,toshio,spot,mahrud
|
||||
|
||||
|
||||
|
||||
|
||||
# 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
|
||||
|
||||
|
||||
|
||||
# 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
|
||||
|
||||
|
||||
|
||||
# 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
|
||||
base_url=/nagios-external
|
|
@ -0,0 +1,5 @@
|
|||
define contactgroup {
|
||||
contactgroup_name bodhi
|
||||
alias Bodhi Notifications
|
||||
members lmacken
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
define contactgroup{
|
||||
contactgroup_name fedora-sysadmin-email
|
||||
alias Fedora Sysadmin Email Contacts
|
||||
members mmcgrath,ausil,admin,nigelj,ricky,jcollie,jmtaylor,jstanley,smooge,nb,rigeld2,codeblock,kevin,hvivani,puiterwijkp
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
define contactgroup{
|
||||
contactgroup_name fedora-sysadmin-pager
|
||||
alias Fedora Sysadmin Pager Contacts
|
||||
members mmcgrathp,rickyp,smoogep,jstanleyp,puiterwijkp
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
define contactgroup{
|
||||
contactgroup_name null
|
||||
alias null
|
||||
members null
|
||||
}
|
13
roles/nagios_server/files/nagios-external/contacts/admin.cfg
Normal file
13
roles/nagios_server/files/nagios-external/contacts/admin.cfg
Normal file
|
@ -0,0 +1,13 @@
|
|||
define contact{
|
||||
contact_name admin
|
||||
alias Fedora Sysadmins
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email sysadmin-members@fedoraproject.org
|
||||
}
|
||||
|
||||
|
16
roles/nagios_server/files/nagios-external/contacts/ausil.cfg
Normal file
16
roles/nagios_server/files/nagios-external/contacts/ausil.cfg
Normal file
|
@ -0,0 +1,16 @@
|
|||
define contact{
|
||||
contact_name ausil
|
||||
alias Dennis Gilmore
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
#service_notification_commands notify-by-epager
|
||||
#host_notification_commands host-notify-by-epager
|
||||
#email ausil@fedoraproject.org
|
||||
pager mobile@ausil.us
|
||||
email mobile@ausil.us
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
define contact{
|
||||
contact_name codeblock
|
||||
alias Ricky Elrod
|
||||
service_notification_period never
|
||||
host_notification_period never
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email codeblock@elrod.me
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
define contact{
|
||||
contact_name hvivani
|
||||
alias Hernan Vivani
|
||||
service_notification_period never
|
||||
host_notification_period never
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email hernan@vivani.com.ar
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
define contact{
|
||||
contact_name jcollie
|
||||
alias Jeffrey Ollie
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email jeff@ocjtech.us
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
define contact{
|
||||
contact_name jmtaylor
|
||||
alias Jason Taylor
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email jmtaylor90@gmail.com
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
define contact{
|
||||
contact_name jstanley
|
||||
alias Jon Stanley
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email jonstanley@gmail.com
|
||||
}
|
||||
|
||||
define contact{
|
||||
contact_name jstanley-emergency
|
||||
alias Jon Stanley
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email 9178159801@vtext.com
|
||||
pager 9178159801@vtext.com
|
||||
}
|
||||
|
||||
define contact{
|
||||
contact_name jstanleyp
|
||||
alias Jon Stanley
|
||||
service_notification_period 16x7
|
||||
host_notification_period 16x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email 9178159801@vtext.com
|
||||
pager 9178159801@vtext.com
|
||||
}
|
||||
|
35
roles/nagios_server/files/nagios-external/contacts/kevin.cfg
Normal file
35
roles/nagios_server/files/nagios-external/contacts/kevin.cfg
Normal file
|
@ -0,0 +1,35 @@
|
|||
define contact{
|
||||
contact_name kevin
|
||||
alias Kevin Fenzi
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email kevin-pager@scrye.com
|
||||
}
|
||||
|
||||
define contact{
|
||||
contact_name kevin-emergency
|
||||
alias Kevin Fenzi
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email kevin-urgent@scrye.com
|
||||
}
|
||||
|
||||
define contact{
|
||||
contact_name kevinp
|
||||
alias Kevin Fenzi
|
||||
service_notification_period 16x7
|
||||
host_notification_period 16x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email kevin-urgent@scrye.com
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
define contact{
|
||||
contact_name lmacken
|
||||
alias Luke Macken
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email lewk@vtext.com
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
define contact{
|
||||
contact_name mmcgrath
|
||||
alias Mike McGrath
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email mmcgrath@redhat.com
|
||||
}
|
||||
|
||||
define contact{
|
||||
contact_name mmcgrath-emergency
|
||||
alias Mike McGrath
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email imlinux+mobile@gmail.com
|
||||
pager imlinux+mobile@gmail.com
|
||||
}
|
||||
|
||||
define contact{
|
||||
contact_name mmcgrathp
|
||||
alias Mike McGrath
|
||||
service_notification_period 16x7
|
||||
host_notification_period 16x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email imlinux+mobile@gmail.com
|
||||
pager imlinux+mobile@gmail.com
|
||||
}
|
||||
|
38
roles/nagios_server/files/nagios-external/contacts/nb.cfg
Normal file
38
roles/nagios_server/files/nagios-external/contacts/nb.cfg
Normal file
|
@ -0,0 +1,38 @@
|
|||
define contact{
|
||||
contact_name nb
|
||||
alias Nick Bebout
|
||||
service_notification_period never
|
||||
host_notification_period never
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email nick@bebout.net
|
||||
}
|
||||
|
||||
define contact{
|
||||
contact_name nb-emergency
|
||||
alias Nick Bebout
|
||||
service_notification_period never
|
||||
host_notification_period never
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email nb5@txt.att.net
|
||||
pager nb5@txt.att.net
|
||||
}
|
||||
|
||||
define contact{
|
||||
contact_name nbp
|
||||
alias Nick Bebout
|
||||
service_notification_period never
|
||||
host_notification_period never
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email nb5@txt.att.net
|
||||
pager nb5@txt.att.net
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
define contact{
|
||||
contact_name nigelj
|
||||
alias Nigel Jones
|
||||
service_notification_period never
|
||||
host_notification_period never
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email dev@nigelj.com
|
||||
}
|
11
roles/nagios_server/files/nagios-external/contacts/null.cfg
Normal file
11
roles/nagios_server/files/nagios-external/contacts/null.cfg
Normal file
|
@ -0,0 +1,11 @@
|
|||
define contact{
|
||||
contact_name null
|
||||
alias null
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email nobody@fedoraproject.org
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
define contact{
|
||||
contact_name puiterwijkp
|
||||
alias Patrick Uiterwijk
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email puiterwijk@gmail.com
|
||||
pager puiterwijk@gmail.com
|
||||
}
|
25
roles/nagios_server/files/nagios-external/contacts/ricky.cfg
Normal file
25
roles/nagios_server/files/nagios-external/contacts/ricky.cfg
Normal file
|
@ -0,0 +1,25 @@
|
|||
define contact{
|
||||
contact_name ricky
|
||||
alias Ricky Zhou
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email,notify-by-ircbot
|
||||
host_notification_commands host-notify-by-email,host-notify-by-ircbot
|
||||
email ricky@rzhou.org
|
||||
}
|
||||
|
||||
define contact{
|
||||
contact_name rickyp
|
||||
alias Ricky Zhou
|
||||
service_notification_period never
|
||||
host_notification_period never
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email 2014030692@vtext.com
|
||||
pager 2014030692@vtext.com
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
define contact{
|
||||
contact_name rigeld2
|
||||
alias Rob Marti
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email robmartiwork@gmail.com
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
#define contact{
|
||||
# contact_name skvidal
|
||||
# alias Seth Vidal
|
||||
# service_notification_period 24x7
|
||||
# host_notification_period 24x7
|
||||
# service_notification_options w,u,c,r
|
||||
# host_notification_options d,u,r
|
||||
# service_notification_commands notify-by-email
|
||||
# host_notification_commands host-notify-by-email
|
||||
# email seth-alert@sethdot.org
|
||||
#}
|
||||
#
|
||||
#define contact{
|
||||
# contact_name skvidalp
|
||||
# alias Seth Vidal
|
||||
# service_notification_period 24x7
|
||||
# host_notification_period 24x7
|
||||
# service_notification_options w,u,c,r
|
||||
# host_notification_options d,u,r
|
||||
# service_notification_commands notify-by-epager
|
||||
# host_notification_commands host-notify-by-epager
|
||||
# email page-seth-vidal@sethdot.org
|
||||
# pager page-seth-vidal@sethdot.org
|
||||
#}
|
|
@ -0,0 +1,38 @@
|
|||
define contact{
|
||||
contact_name smooge
|
||||
alias Stephen Smoogen
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email smooge+notify@gmail.com
|
||||
}
|
||||
|
||||
define contact{
|
||||
contact_name smooge-emergency
|
||||
alias Stephen Smoogen
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email smooge+mobile@gmail.com
|
||||
pager smooge+mobile@gmail.com
|
||||
}
|
||||
|
||||
define contact{
|
||||
contact_name smoogep
|
||||
alias Stephen Smoogen
|
||||
service_notification_period 16x7
|
||||
host_notification_period 16x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email smooge+mobile@gmail.com
|
||||
pager smooge+mobile@gmail.com
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
###############
|
||||
# All Servers and associated devices
|
||||
###############
|
||||
|
||||
define hostgroup {
|
||||
hostgroup_name all
|
||||
alias All hosts / Devices
|
||||
members *
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
###############
|
||||
# DNS Servers
|
||||
###############
|
||||
|
||||
define hostgroup {
|
||||
hostgroup_name dnsservers
|
||||
alias DNS Servers
|
||||
members ns-sb01, ns02, ns04, ns05
|
||||
}
|
|
@ -0,0 +1,274 @@
|
|||
#
|
||||
# phx2
|
||||
#
|
||||
define host {
|
||||
host_name 209.132.181.16-phx2
|
||||
alias 209.132.181.16-phx2
|
||||
use defaulttemplate
|
||||
address 209.132.181.16
|
||||
parents proxy01.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name proxy01.fedoraproject.org
|
||||
alias proxy01.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 209.132.181.16
|
||||
}
|
||||
|
||||
#
|
||||
# tummy
|
||||
#
|
||||
|
||||
define host {
|
||||
host_name 66.35.62.166-tummy
|
||||
alias 66.35.62.166-tummy
|
||||
use defaulttemplate
|
||||
address 66.35.62.166
|
||||
parents proxy03.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name proxy03.fedoraproject.org
|
||||
alias proxy03.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 66.35.62.162
|
||||
parents tummy01.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name tummy01.fedoraproject.org
|
||||
alias tummy01.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 66.35.62.161
|
||||
}
|
||||
|
||||
#
|
||||
# ibiblio
|
||||
#
|
||||
|
||||
define host {
|
||||
host_name 152.19.134.146-ibiblio
|
||||
alias 152.19.134.146-ibiblio
|
||||
use defaulttemplate
|
||||
address 152.19.134.146
|
||||
parents proxy04.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name proxy04.fedoraproject.org
|
||||
alias proxy04.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 152.19.134.142
|
||||
parents ibiblio02.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name ibiblio02.fedoraproject.org
|
||||
alias ibiblio02.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 152.19.134.169
|
||||
}
|
||||
|
||||
#
|
||||
# ibiblio ipv6
|
||||
#
|
||||
|
||||
define host {
|
||||
host_name admin-ipv6-ibiblio
|
||||
alias 2610:28:3090:3001:dead:beef:cafe:fed4-ibiblio
|
||||
use defaulttemplate
|
||||
address 2610:28:3090:3001:dead:beef:cafe:fed4
|
||||
parents proxy04-ipv6-ibiblio.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name proxy04-ipv6-ibiblio.fedoraproject.org
|
||||
alias proxy04-ipv6-ibiblio.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 2610:28:3090:3001:dead:beef:cafe:fed3
|
||||
}
|
||||
|
||||
#
|
||||
# telia
|
||||
#
|
||||
|
||||
define host {
|
||||
host_name telia01.fedoraproject.org
|
||||
alias telia01.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 80.239.144.84
|
||||
}
|
||||
|
||||
#
|
||||
# internetx
|
||||
#
|
||||
|
||||
define host {
|
||||
host_name 85.236.55.6-internetx
|
||||
alias 85.236.55.6-internetx
|
||||
use defaulttemplate
|
||||
address 85.236.55.6
|
||||
parents proxy02.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name proxy02.fedoraproject.org
|
||||
alias proxy02.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 85.236.55.5
|
||||
parents internetx01.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name internetx01.fedoraproject.org
|
||||
alias internetx01.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 85.236.55.4
|
||||
}
|
||||
|
||||
#
|
||||
# internetx ipv6
|
||||
#
|
||||
|
||||
define host {
|
||||
host_name admin-ipv6-internetx
|
||||
alias admin-ipv6-internetx
|
||||
use defaulttemplate
|
||||
address 2001:4178:2:1269::fed2
|
||||
parents proxy02-ipv6-internetx.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name proxy02-ipv6-internetx.fedoraproject.org
|
||||
alias proxy02-ipv6-internetx.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 2001:4178:2:1269::fed1
|
||||
parents internetx01-ipv6.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name internetx01-ipv6.fedoraproject.org
|
||||
alias internetx01-ipv6.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 2001:4178:2:1269::10
|
||||
}
|
||||
|
||||
#
|
||||
# osuosl
|
||||
#
|
||||
|
||||
define host {
|
||||
host_name 140.211.169.197-osuosl
|
||||
alias 140.211.169.197-osuosl
|
||||
use defaulttemplate
|
||||
address 140.211.169.197
|
||||
parents proxy06.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name proxy06.fedoraproject.org
|
||||
alias proxy06.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 140.211.169.196
|
||||
parents osuosl01.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name osuosl01.fedoraproject.org
|
||||
alias osuosl01.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 140.211.169.194
|
||||
}
|
||||
|
||||
#
|
||||
# bodhost
|
||||
#
|
||||
|
||||
define host {
|
||||
host_name 213.175.193.206-bodhost
|
||||
alias 213.175.193.206-bodhost
|
||||
use defaulttemplate
|
||||
address 213.175.193.206
|
||||
parents proxy07.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name proxy07.fedoraproject.org
|
||||
alias proxy07.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 213.175.193.205
|
||||
parents bodhost01.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name bodhost01.fedoraproject.org
|
||||
alias bodhost01.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 94.76.206.175
|
||||
}
|
||||
|
||||
#
|
||||
# coloamer
|
||||
#
|
||||
|
||||
define host {
|
||||
host_name 67.203.2.67-coloamer
|
||||
alias 67.203.2.67-coloamer
|
||||
use defaulttemplate
|
||||
address 67.203.2.67
|
||||
parents proxy08.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name proxy08.fedoraproject.org
|
||||
alias proxy08.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 67.203.2.68
|
||||
parents coloamer01.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name coloamer01.fedoraproject.org
|
||||
alias coloamer01.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 67.203.2.66
|
||||
}
|
||||
|
||||
#
|
||||
# coloamer ipv6
|
||||
#
|
||||
|
||||
define host {
|
||||
host_name admin-ipv6-coloamer
|
||||
alias admin-ipv6-coloamer
|
||||
use defaulttemplate
|
||||
address 2607:f188::dead:beef:cafe:fed1
|
||||
parents proxy08-ipv6.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name proxy08-ipv6.fedoraproject.org
|
||||
alias proxy08-ipv6.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 2607:f188::dead:beef:cafe:fed1
|
||||
}
|
||||
|
||||
#
|
||||
# serverbeach
|
||||
#
|
||||
|
||||
define host {
|
||||
host_name serverbeach06.fedoraproject.org
|
||||
alias serverbeach06.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 66.135.60.117
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name proxy09.fedoraproject.org
|
||||
alias proxy09.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 66.135.62.201
|
||||
parents serverbeach06.fedoraproject.org
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
define host {
|
||||
host_name 152.19.134.191-people03
|
||||
alias 152.19.134.191-people03
|
||||
use defaulttemplate
|
||||
address 152.19.134.191
|
||||
parents ibiblio03.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name ibiblio03.fedoraproject.org
|
||||
alias ibiblio03.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 152.19.134.172
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name ipv6-people03
|
||||
alias ipv6-people03
|
||||
use defaulttemplate
|
||||
address 2610:28:3090:3001:5054:ff:fedb:7f5a
|
||||
}
|
|
@ -0,0 +1,79 @@
|
|||
define host {
|
||||
host_name 85.236.55.5-internetx
|
||||
alias 85.236.55.5-internetx
|
||||
use defaulttemplate
|
||||
address 85.236.55.5
|
||||
parents proxy02.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name fpo-ipv6-internetx
|
||||
alias fpo-ipv6-internetx
|
||||
use defaulttemplate
|
||||
address 2001:4178:2:1269::fed2
|
||||
parents proxy02-ipv6-internetx.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name 66.35.62.162-tummy
|
||||
alias 66.35.62.162-tummy
|
||||
use defaulttemplate
|
||||
address 66.35.62.162
|
||||
parents proxy03.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name 152.19.134.142-ibiblio
|
||||
alias 152.19.134.142-ibiblio
|
||||
use defaulttemplate
|
||||
address 152.19.134.142
|
||||
parents proxy04.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name fpo-ipv6-ibiblio
|
||||
alias fpo-ipv6-ibiblio
|
||||
use defaulttemplate
|
||||
address 2610:28:3090:3001:dead:beef:cafe:fed4
|
||||
parents proxy04-ipv6-ibiblio.fedoraproject.org
|
||||
}
|
||||
|
||||
#define host {
|
||||
# host_name 140.211.169.197-osuosl
|
||||
# alias 140.211.169.197-osuosl
|
||||
# use defaulttemplate
|
||||
# address 140.211.169.197
|
||||
# parents proxy06.fedoraproject.org
|
||||
#}
|
||||
|
||||
define host {
|
||||
host_name 213.175.193.205-bodhost
|
||||
alias 213.175.193.205-bodhost
|
||||
use defaulttemplate
|
||||
address 213.175.193.205
|
||||
parents proxy07.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name 67.203.2.67-coloamerica
|
||||
alias 67.203.2.67-coloamerica
|
||||
use defaulttemplate
|
||||
address 67.203.2.67
|
||||
parents proxy08.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name fpo-ipv6-coloamerica
|
||||
alias fpo-ipv6-coloamerica
|
||||
use defaulttemplate
|
||||
address 2607:f188::dead:beef:cafe:fed1
|
||||
parents proxy08-ipv6.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name 66.135.62.201-serverbeach
|
||||
alias 66.135.62.201-serverbeach
|
||||
use defaulttemplate
|
||||
address 66.135.62.201
|
||||
parents proxy09.fedoraproject.org
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
define host {
|
||||
host_name openvpn-phx
|
||||
alias openvpn-phx
|
||||
use defaulttemplate
|
||||
address 192.168.0.1
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
define host {
|
||||
host_name koji-phx2
|
||||
alias koji-phx2
|
||||
use defaulttemplate
|
||||
address 209.132.181.7
|
||||
check_command check_http
|
||||
parents openvpn-phx
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
define host {
|
||||
host_name noc01
|
||||
alias noc01.vpn.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address noc01.vpn.fedoraproject.org
|
||||
parents openvpn-phx
|
||||
}
|
14
roles/nagios_server/files/nagios-external/hosts/ns-sb01.cfg
Normal file
14
roles/nagios_server/files/nagios-external/hosts/ns-sb01.cfg
Normal file
|
@ -0,0 +1,14 @@
|
|||
define host {
|
||||
host_name ns-sb01
|
||||
alias ns-sb01.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 69.174.247.243
|
||||
parents serverbeach09.fedoraproject.org
|
||||
}
|
||||
|
||||
define host {
|
||||
host_name serverbeach09.fedoraproject.org
|
||||
alias serverbeach09.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 66.135.39.232
|
||||
}
|
7
roles/nagios_server/files/nagios-external/hosts/ns02.cfg
Normal file
7
roles/nagios_server/files/nagios-external/hosts/ns02.cfg
Normal file
|
@ -0,0 +1,7 @@
|
|||
define host {
|
||||
host_name ns02
|
||||
alias ns02.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 152.19.134.139
|
||||
parents ibiblio02.fedoraproject.org
|
||||
}
|
6
roles/nagios_server/files/nagios-external/hosts/ns04.cfg
Normal file
6
roles/nagios_server/files/nagios-external/hosts/ns04.cfg
Normal file
|
@ -0,0 +1,6 @@
|
|||
define host {
|
||||
host_name ns04
|
||||
alias ns04.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 209.132.181.17
|
||||
}
|
7
roles/nagios_server/files/nagios-external/hosts/ns05.cfg
Normal file
7
roles/nagios_server/files/nagios-external/hosts/ns05.cfg
Normal file
|
@ -0,0 +1,7 @@
|
|||
define host {
|
||||
host_name ns05
|
||||
alias ns05.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address 85.236.55.10
|
||||
parents internetx01.fedoraproject.org
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
define host {
|
||||
host_name 209.132.183.81-phx2
|
||||
alias 209.132.183.81-phx2
|
||||
use defaulttemplate
|
||||
check_command true
|
||||
address 209.132.183.81
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
define host {
|
||||
name defaulttemplate
|
||||
check_command check-host-alive
|
||||
max_check_attempts 8
|
||||
checks_enabled 1
|
||||
failure_prediction_enabled 0
|
||||
retain_status_information 1
|
||||
retain_nonstatus_information 1
|
||||
notification_interval 480
|
||||
notifications_enabled 1
|
||||
notification_options d,r
|
||||
contact_groups fedora-sysadmin-email,fedora-sysadmin-pager
|
||||
|
||||
register 0
|
||||
}
|
361
roles/nagios_server/files/nagios-external/minimal.cfg
Normal file
361
roles/nagios_server/files/nagios-external/minimal.cfg
Normal file
|
@ -0,0 +1,361 @@
|
|||
###############################################################################
|
||||
# MINIMAL.CFG
|
||||
#
|
||||
# MINIMALISTIC OBJECT CONFIG FILE (Template-Based Object File Format)
|
||||
#
|
||||
# Last Modified: 08-10-2005
|
||||
#
|
||||
#
|
||||
# NOTE: This config file is intended to be used to test a Nagios installation
|
||||
# that has been compiled with support for the template-based object
|
||||
# configuration files.
|
||||
#
|
||||
# This config file is intended to servce as an *extremely* simple
|
||||
# example of how you can create your object configuration file(s).
|
||||
# If you're interested in more complex object configuration files for
|
||||
# Nagios, look in the sample-config/template-object/ subdirectory of
|
||||
# the distribution.
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
|
||||
|
||||
###############################################################################
|
||||
###############################################################################
|
||||
#
|
||||
# TIME PERIODS
|
||||
#
|
||||
###############################################################################
|
||||
###############################################################################
|
||||
|
||||
# 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
|
||||
}
|
||||
|
||||
|
||||
|
||||
###############################################################################
|
||||
###############################################################################
|
||||
#
|
||||
# COMMANDS
|
||||
#
|
||||
###############################################################################
|
||||
###############################################################################
|
||||
|
||||
# This is a sample service notification command that can be used to send email
|
||||
# notifications (about service alerts) to contacts.
|
||||
# 'check_ssh' command definition
|
||||
define command{
|
||||
command_name notify-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$OUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
|
||||
}
|
||||
|
||||
|
||||
# This is a sample host notification command that can be used to send email
|
||||
# notifications (about host alerts) to contacts.
|
||||
|
||||
define command{
|
||||
command_name host-notify-by-email
|
||||
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$
|
||||
}
|
||||
|
||||
|
||||
# Command to check to see if a host is "alive" (up) by pinging it
|
||||
|
||||
define command{
|
||||
command_name check-host-alive
|
||||
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 99,99% -c 100,100% -p 1
|
||||
}
|
||||
|
||||
|
||||
# Generic command to check a device by pinging it
|
||||
|
||||
define command{
|
||||
command_name check_ping
|
||||
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
|
||||
}
|
||||
|
||||
|
||||
# Command used to check disk space usage on local partitions
|
||||
|
||||
define command{
|
||||
command_name check_local_disk
|
||||
command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
|
||||
}
|
||||
|
||||
|
||||
# Command used to check the number of currently logged in users on the
|
||||
# local machine
|
||||
|
||||
define command{
|
||||
command_name check_local_users
|
||||
command_line $USER1$/check_users -w $ARG1$ -c $ARG2$
|
||||
}
|
||||
|
||||
|
||||
# Command to check the number of running processing on the local machine
|
||||
|
||||
define command{
|
||||
command_name check_local_procs
|
||||
command_line $USER1$/check_procs -w $ARG1$ -c $ARG2$
|
||||
}
|
||||
|
||||
|
||||
# Command to check the load on the local machine
|
||||
|
||||
define command{
|
||||
command_name check_local_load
|
||||
command_line $USER1$/check_load -w $ARG1$ -c $ARG2$
|
||||
}
|
||||
|
||||
|
||||
|
||||
###############################################################################
|
||||
###############################################################################
|
||||
#
|
||||
# CONTACTS
|
||||
#
|
||||
###############################################################################
|
||||
###############################################################################
|
||||
|
||||
# In this simple config file, a single contact will receive all alerts.
|
||||
# This assumes that you have an account (or email alias) called
|
||||
# "nagios-admin" on the local host.
|
||||
|
||||
define contact{
|
||||
contact_name nagios-admin
|
||||
alias Nagios Admin
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email admin@fedoraproject.org
|
||||
}
|
||||
|
||||
|
||||
|
||||
###############################################################################
|
||||
###############################################################################
|
||||
#
|
||||
# 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 nagios-admin
|
||||
}
|
||||
|
||||
|
||||
|
||||
###############################################################################
|
||||
###############################################################################
|
||||
#
|
||||
# HOSTS
|
||||
#
|
||||
###############################################################################
|
||||
###############################################################################
|
||||
|
||||
# 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
|
||||
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
|
||||
}
|
||||
|
||||
|
||||
# Since this is a simple configuration file, we only monitor one host - the
|
||||
# local host (this machine).
|
||||
|
||||
define host{
|
||||
use generic-host ; Name of host template to use
|
||||
host_name localhost
|
||||
alias localhost
|
||||
address 127.0.0.1
|
||||
check_command check-host-alive
|
||||
max_check_attempts 10
|
||||
notification_interval 120
|
||||
notification_period 24x7
|
||||
notification_options d,r
|
||||
contact_groups admins
|
||||
}
|
||||
|
||||
|
||||
|
||||
###############################################################################
|
||||
###############################################################################
|
||||
#
|
||||
# HOST GROUPS
|
||||
#
|
||||
###############################################################################
|
||||
###############################################################################
|
||||
|
||||
# We only have one host in our simple config file, so there is no need to
|
||||
# create more than one hostgroup.
|
||||
|
||||
define hostgroup{
|
||||
hostgroup_name test
|
||||
alias Test Servers
|
||||
members localhost
|
||||
}
|
||||
|
||||
|
||||
|
||||
###############################################################################
|
||||
###############################################################################
|
||||
#
|
||||
# SERVICES
|
||||
#
|
||||
###############################################################################
|
||||
###############################################################################
|
||||
|
||||
# Generic service definition template - This is NOT a real service, just a template!
|
||||
|
||||
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
|
||||
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
|
||||
}
|
||||
|
||||
|
||||
# Define a service to "ping" the local machine
|
||||
|
||||
define service{
|
||||
use generic-service ; Name of service template to use
|
||||
host_name localhost
|
||||
service_description PING
|
||||
is_volatile 0
|
||||
check_period 24x7
|
||||
max_check_attempts 4
|
||||
normal_check_interval 5
|
||||
retry_check_interval 1
|
||||
contact_groups admins
|
||||
notification_options w,u,c,r
|
||||
notification_interval 960
|
||||
notification_period 24x7
|
||||
check_command check_ping!100.0,20%!500.0,60%
|
||||
}
|
||||
|
||||
|
||||
# Define a service to check the disk space of the root partition
|
||||
# on the local machine. Warning if < 20% free, critical if
|
||||
# < 10% free space on partition.
|
||||
|
||||
define service{
|
||||
use generic-service ; Name of service template to use
|
||||
host_name localhost
|
||||
service_description Root Partition
|
||||
is_volatile 0
|
||||
check_period 24x7
|
||||
max_check_attempts 4
|
||||
normal_check_interval 5
|
||||
retry_check_interval 1
|
||||
contact_groups admins
|
||||
notification_options w,u,c,r
|
||||
notification_interval 960
|
||||
notification_period 24x7
|
||||
check_command check_local_disk!20%!10%!/
|
||||
}
|
||||
|
||||
|
||||
|
||||
# Define a service to check the number of currently logged in
|
||||
# users on the local machine. Warning if > 20 users, critical
|
||||
# if > 50 users.
|
||||
|
||||
define service{
|
||||
use generic-service ; Name of service template to use
|
||||
host_name localhost
|
||||
service_description Current Users
|
||||
is_volatile 0
|
||||
check_period 24x7
|
||||
max_check_attempts 4
|
||||
normal_check_interval 5
|
||||
retry_check_interval 1
|
||||
contact_groups admins
|
||||
notification_options w,u,c,r
|
||||
notification_interval 960
|
||||
notification_period 24x7
|
||||
check_command check_local_users!20!50
|
||||
}
|
||||
|
||||
|
||||
# Define a service to check the number of currently running procs
|
||||
# on the local machine. Warning if > 250 processes, critical if
|
||||
# > 400 users.
|
||||
|
||||
define service{
|
||||
use generic-service ; Name of service template to use
|
||||
host_name localhost
|
||||
service_description Total Processes
|
||||
is_volatile 0
|
||||
check_period 24x7
|
||||
max_check_attempts 4
|
||||
normal_check_interval 5
|
||||
retry_check_interval 1
|
||||
contact_groups admins
|
||||
notification_options w,u,c,r
|
||||
notification_interval 960
|
||||
notification_period 24x7
|
||||
check_command check_local_procs!250!400
|
||||
}
|
||||
|
||||
|
||||
|
||||
# Define a service to check the load on the local machine.
|
||||
|
||||
define service{
|
||||
use generic-service ; Name of service template to use
|
||||
host_name localhost
|
||||
service_description Current Load
|
||||
is_volatile 0
|
||||
check_period 24x7
|
||||
max_check_attempts 4
|
||||
normal_check_interval 5
|
||||
retry_check_interval 1
|
||||
contact_groups admins
|
||||
notification_options w,u,c,r
|
||||
notification_interval 960
|
||||
notification_period 24x7
|
||||
check_command check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
|
||||
}
|
||||
|
||||
|
||||
|
||||
# EOF
|
115
roles/nagios_server/files/nagios-external/misccommands.cfg
Normal file
115
roles/nagios_server/files/nagios-external/misccommands.cfg
Normal file
|
@ -0,0 +1,115 @@
|
|||
################################################################################
|
||||
# Sample object config file for Nagios
|
||||
#
|
||||
# Read the documentation for more information on this configuration file. I've
|
||||
# provided some comments here, but things may not be so clear without further
|
||||
# explanation, so make sure to read the HTML documentation!
|
||||
#
|
||||
# Last Modified: 12-17-2005
|
||||
#
|
||||
################################################################################
|
||||
|
||||
|
||||
################################################################################
|
||||
# COMMAND DEFINITIONS
|
||||
#
|
||||
# SYNTAX:
|
||||
#
|
||||
# define command{
|
||||
# template <templatename>
|
||||
# name <objectname>
|
||||
# command_name <commandname>
|
||||
# command_line <commandline>
|
||||
# }
|
||||
#
|
||||
# WHERE:
|
||||
#
|
||||
# <templatename> = object name of another command definition that should be
|
||||
# used as a template for this definition (optional)
|
||||
# <objectname> = object name of command definition, referenced by other
|
||||
# command definitions that use it as a template (optional)
|
||||
# <commandname> = name of the command, as recognized/used by Nagios
|
||||
# <commandline> = command line
|
||||
#
|
||||
################################################################################
|
||||
|
||||
|
||||
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# SAMPLE NOTIFICATION COMMANDS
|
||||
#
|
||||
# These are some example notification commands. They may or may not work on
|
||||
# your system without modification.
|
||||
#
|
||||
################################################################################
|
||||
|
||||
|
||||
# 'host-notify-by-email' command definition
|
||||
define command{
|
||||
command_name host-notify-by-email
|
||||
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\nSource: $$(hostname)\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$
|
||||
}
|
||||
|
||||
|
||||
# 'host-notify-by-epager' command definition
|
||||
define command{
|
||||
command_name host-notify-by-epager
|
||||
command_line /usr/bin/printf "%b" "Host '$HOSTALIAS$' is $HOSTSTATE$\nInfo: $HOSTOUTPUT$\nSource: $$(hostname -s)\nTime: $LONGDATETIME$" | /bin/mail -s "$NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$" $CONTACTPAGER$
|
||||
}
|
||||
|
||||
# 'host-notify-by-ircbot' command definition
|
||||
define command{
|
||||
command_name host-notify-by-ircbot
|
||||
command_line /usr/bin/printf "%b" "#fedora-noc $NOTIFICATIONTYPE$ - $HOSTALIAS$ is $HOSTSTATE$: $HOSTOUTPUT$ ($$(hostname -s))" | nc -w 1 value03.vpn.fedoraproject.org 5050
|
||||
}
|
||||
|
||||
# 'notify-by-email' command definition
|
||||
define command{
|
||||
command_name notify-by-email
|
||||
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nSource: $$(hostname)\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
|
||||
}
|
||||
|
||||
|
||||
# 'notify-by-epager' command definition
|
||||
define command{
|
||||
command_name notify-by-epager
|
||||
command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nInfo: $SERVICEOUTPUT$\nSource: $$(hostname -s)\nDate: $LONGDATETIME$" | /bin/mail -s "$NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTPAGER$
|
||||
}
|
||||
|
||||
# 'notify-by-ircbot' command definition
|
||||
define command{
|
||||
command_name notify-by-ircbot
|
||||
command_line /usr/bin/printf "%b" "#fedora-noc $NOTIFICATIONTYPE$ - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$: $SERVICEOUTPUT$ ($$(hostname -s))" | nc -w 1 value03.vpn.fedoraproject.org 5050
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# SAMPLE PERFORMANCE DATA COMMANDS
|
||||
#
|
||||
# These are sample performance data commands that can be used to send performance
|
||||
# data output to two text files (one for hosts, another for services). If you
|
||||
# plan on simply writing performance data out to a file, consider using the
|
||||
# host_perfdata_file and service_perfdata_file options in the main config file.
|
||||
#
|
||||
################################################################################
|
||||
|
||||
|
||||
# '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/log/nagios/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/log/nagios/service-perfdata.out
|
||||
}
|
||||
|
||||
|
962
roles/nagios_server/files/nagios-external/nagios.cfg
Normal file
962
roles/nagios_server/files/nagios-external/nagios.cfg
Normal file
|
@ -0,0 +1,962 @@
|
|||
##############################################################################
|
||||
#
|
||||
# NAGIOS.CFG - Sample Main Config File for Nagios
|
||||
#
|
||||
# Read the documentation for more information on this configuration
|
||||
# file. I've provided some comments here, but things may not be so
|
||||
# clear without further explanation.
|
||||
#
|
||||
# Last Modified: 11-23-2005
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
||||
# LOG FILE
|
||||
# This is the main log file where service and host events are logged
|
||||
# for historical purposes. This should be the first option specified
|
||||
# in the config file!!!
|
||||
|
||||
log_file=/var/log/nagios/nagios.log
|
||||
|
||||
|
||||
|
||||
# OBJECT CONFIGURATION FILE(S)
|
||||
# This is the configuration file in which you define hosts, host
|
||||
# groups, contacts, contact groups, services, etc. I guess it would
|
||||
# be better called an object definition file, but for historical
|
||||
# reasons it isn't. You can split object definitions into several
|
||||
# different config files by using multiple cfg_file statements here.
|
||||
# Nagios will read and process all the config files you define.
|
||||
# This can be very useful if you want to keep command definitions
|
||||
# separate from host and contact definitions...
|
||||
|
||||
# Plugin commands (service and host check commands)
|
||||
# Arguments are likely to change between different releases of the
|
||||
# plugins, so you should use the same config file provided with the
|
||||
# plugin release rather than the one provided with Nagios.
|
||||
cfg_file=/etc/nagios/checkcommands.cfg
|
||||
|
||||
# Misc commands (notification and event handler commands, etc)
|
||||
cfg_file=/etc/nagios/misccommands.cfg
|
||||
|
||||
# You can split other types of object definitions across several
|
||||
# config files if you wish (as done here), or keep them all in a
|
||||
# single config file.
|
||||
|
||||
#cfg_file=/etc/nagios/minimal.cfg
|
||||
|
||||
#cfg_file=/etc/nagios/contactgroups.cfg
|
||||
#cfg_file=/etc/nagios/contacts.cfg
|
||||
#cfg_file=/etc/nagios/dependencies.cfg
|
||||
#cfg_file=/etc/nagios/escalations.cfg
|
||||
#cfg_file=/etc/nagios/hostgroups.cfg
|
||||
#cfg_file=/etc/nagios/hosts.cfg
|
||||
#cfg_file=/etc/nagios/services.cfg
|
||||
cfg_file=/etc/nagios/timeperiods.cfg
|
||||
|
||||
# Extended host/service info definitions are now stored along with
|
||||
# other object definitions:
|
||||
#cfg_file=/etc/nagios/hostextinfo.cfg
|
||||
#cfg_file=/etc/nagios/serviceextinfo.cfg
|
||||
|
||||
# You can also tell Nagios to process all config files (with a .cfg
|
||||
# extension) in a particular directory by using the cfg_dir
|
||||
# directive as shown below:
|
||||
cfg_dir=/etc/nagios/hosts
|
||||
cfg_dir=/etc/nagios/hostgroups
|
||||
cfg_dir=/etc/nagios/services
|
||||
cfg_dir=/etc/nagios/servicedeps
|
||||
cfg_dir=/etc/nagios/contacts
|
||||
cfg_dir=/etc/nagios/contactgroups
|
||||
|
||||
|
||||
#cfg_dir=/etc/nagios/servers
|
||||
#cfg_dir=/etc/nagios/printers
|
||||
#cfg_dir=/etc/nagios/switches
|
||||
#cfg_dir=/etc/nagios/routers
|
||||
|
||||
|
||||
|
||||
# OBJECT CACHE FILE
|
||||
# This option determines where object definitions are cached when
|
||||
# Nagios starts/restarts. The CGIs read object definitions from
|
||||
# this cache file (rather than looking at the object config files
|
||||
# directly) in order to prevent inconsistencies that can occur
|
||||
# when the config files are modified after Nagios starts.
|
||||
|
||||
object_cache_file=/var/log/nagios/objects.cache
|
||||
|
||||
|
||||
|
||||
# RESOURCE FILE
|
||||
# This is an optional resource file that contains $USERx$ macro
|
||||
# definitions. Multiple resource files can be specified by using
|
||||
# multiple resource_file definitions. The CGIs will not attempt to
|
||||
# read the contents of resource files, so information that is
|
||||
# considered to be sensitive (usernames, passwords, etc) can be
|
||||
# defined as macros in this file and restrictive permissions (600)
|
||||
# can be placed on this file.
|
||||
|
||||
resource_file=/etc/nagios/private/resource.cfg
|
||||
|
||||
|
||||
|
||||
# STATUS FILE
|
||||
# This is where the current status of all monitored services and
|
||||
# hosts is stored. Its contents are read and processed by the CGIs.
|
||||
# The contents of the status file are deleted every time Nagios
|
||||
# restarts.
|
||||
|
||||
status_file=/var/log/nagios/status.dat
|
||||
|
||||
|
||||
|
||||
# NAGIOS USER
|
||||
# This determines the effective user that Nagios should run as.
|
||||
# You can either supply a username or a UID.
|
||||
|
||||
nagios_user=nagios
|
||||
|
||||
|
||||
|
||||
# NAGIOS GROUP
|
||||
# This determines the effective group that Nagios should run as.
|
||||
# You can either supply a group name or a GID.
|
||||
|
||||
nagios_group=nagios
|
||||
|
||||
|
||||
|
||||
# EXTERNAL COMMAND OPTION
|
||||
# This option allows you to specify whether or not Nagios should check
|
||||
# for external commands (in the command file defined below). By default
|
||||
# Nagios will *not* check for external commands, just to be on the
|
||||
# cautious side. If you want to be able to use the CGI command interface
|
||||
# you will have to enable this. Setting this value to 0 disables command
|
||||
# checking (the default), other values enable it.
|
||||
|
||||
check_external_commands=1
|
||||
|
||||
|
||||
|
||||
# EXTERNAL COMMAND CHECK INTERVAL
|
||||
# This is the interval at which Nagios should check for external commands.
|
||||
# This value works of the interval_length you specify later. If you leave
|
||||
# that at its default value of 60 (seconds), a value of 1 here will cause
|
||||
# Nagios to check for external commands every minute. If you specify a
|
||||
# number followed by an "s" (i.e. 15s), this will be interpreted to mean
|
||||
# actual seconds rather than a multiple of the interval_length variable.
|
||||
# Note: In addition to reading the external command file at regularly
|
||||
# scheduled intervals, Nagios will also check for external commands after
|
||||
# event handlers are executed.
|
||||
# NOTE: Setting this value to -1 causes Nagios to check the external
|
||||
# command file as often as possible.
|
||||
|
||||
#command_check_interval=1
|
||||
#command_check_interval=15s
|
||||
command_check_interval=15s
|
||||
|
||||
|
||||
|
||||
# EXTERNAL COMMAND FILE
|
||||
# This is the file that Nagios checks for external command requests.
|
||||
# It is also where the command CGI will write commands that are submitted
|
||||
# by users, so it must be writeable by the user that the web server
|
||||
# is running as (usually 'nobody'). Permissions should be set at the
|
||||
# directory level instead of on the file, as the file is deleted every
|
||||
# time its contents are processed.
|
||||
|
||||
command_file=/var/spool/nagios/cmd/nagios.cmd
|
||||
|
||||
|
||||
|
||||
# COMMENT FILE
|
||||
# This is the file that Nagios will use for storing host and service
|
||||
# comments.
|
||||
|
||||
comment_file=/var/log/nagios/comments.dat
|
||||
|
||||
|
||||
|
||||
# DOWNTIME FILE
|
||||
# This is the file that Nagios will use for storing host and service
|
||||
# downtime data.
|
||||
|
||||
downtime_file=/var/log/nagios/downtime.dat
|
||||
|
||||
|
||||
|
||||
# LOCK FILE
|
||||
# This is the lockfile that Nagios will use to store its PID number
|
||||
# in when it is running in daemon mode.
|
||||
|
||||
lock_file=/var/run/nagios.pid
|
||||
|
||||
|
||||
|
||||
# TEMP FILE
|
||||
# This is a temporary file that is used as scratch space when Nagios
|
||||
# updates the status log, cleans the comment file, etc. This file
|
||||
# is created, used, and deleted throughout the time that Nagios is
|
||||
# running.
|
||||
|
||||
temp_file=/var/log/nagios/nagios.tmp
|
||||
|
||||
|
||||
|
||||
# EVENT BROKER OPTIONS
|
||||
# Controls what (if any) data gets sent to the event broker.
|
||||
# Values: 0 = Broker nothing
|
||||
# -1 = Broker everything
|
||||
# <other> = See documentation
|
||||
|
||||
event_broker_options=0
|
||||
|
||||
|
||||
|
||||
# EVENT BROKER MODULE(S)
|
||||
# This directive is used to specify an event broker module that should
|
||||
# by loaded by Nagios at startup. Use multiple directives if you want
|
||||
# to load more than one module. Arguments that should be passed to
|
||||
# the module at startup are seperated from the module path by a space.
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# broker_module=<modulepath> [moduleargs]
|
||||
|
||||
#broker_module=/somewhere/module1.o
|
||||
#broker_module=/somewhere/module2.o arg1 arg2=3 debug=0
|
||||
|
||||
|
||||
|
||||
|
||||
# LOG ROTATION METHOD
|
||||
# This is the log rotation method that Nagios should use to rotate
|
||||
# the main log file. Values are as follows..
|
||||
# n = None - don't rotate the log
|
||||
# h = Hourly rotation (top of the hour)
|
||||
# d = Daily rotation (midnight every day)
|
||||
# w = Weekly rotation (midnight on Saturday evening)
|
||||
# m = Monthly rotation (midnight last day of month)
|
||||
|
||||
log_rotation_method=d
|
||||
|
||||
|
||||
|
||||
# LOG ARCHIVE PATH
|
||||
# This is the directory where archived (rotated) log files should be
|
||||
# placed (assuming you've chosen to do log rotation).
|
||||
|
||||
log_archive_path=/var/log/nagios/archives
|
||||
|
||||
|
||||
|
||||
# LOGGING OPTIONS
|
||||
# If you want messages logged to the syslog facility, as well as the
|
||||
# NetAlarm log file set this option to 1. If not, set it to 0.
|
||||
|
||||
use_syslog=1
|
||||
|
||||
|
||||
|
||||
# NOTIFICATION LOGGING OPTION
|
||||
# If you don't want notifications to be logged, set this value to 0.
|
||||
# If notifications should be logged, set the value to 1.
|
||||
|
||||
log_notifications=1
|
||||
|
||||
|
||||
|
||||
# SERVICE RETRY LOGGING OPTION
|
||||
# If you don't want service check retries to be logged, set this value
|
||||
# to 0. If retries should be logged, set the value to 1.
|
||||
|
||||
log_service_retries=1
|
||||
|
||||
|
||||
|
||||
# HOST RETRY LOGGING OPTION
|
||||
# If you don't want host check retries to be logged, set this value to
|
||||
# 0. If retries should be logged, set the value to 1.
|
||||
|
||||
log_host_retries=1
|
||||
|
||||
|
||||
|
||||
# EVENT HANDLER LOGGING OPTION
|
||||
# If you don't want host and service event handlers to be logged, set
|
||||
# this value to 0. If event handlers should be logged, set the value
|
||||
# to 1.
|
||||
|
||||
log_event_handlers=1
|
||||
|
||||
|
||||
|
||||
# INITIAL STATES LOGGING OPTION
|
||||
# If you want Nagios to log all initial host and service states to
|
||||
# the main log file (the first time the service or host is checked)
|
||||
# you can enable this option by setting this value to 1. If you
|
||||
# are not using an external application that does long term state
|
||||
# statistics reporting, you do not need to enable this option. In
|
||||
# this case, set the value to 0.
|
||||
|
||||
log_initial_states=0
|
||||
|
||||
|
||||
|
||||
# EXTERNAL COMMANDS LOGGING OPTION
|
||||
# If you don't want Nagios to log external commands, set this value
|
||||
# to 0. If external commands should be logged, set this value to 1.
|
||||
# Note: This option does not include logging of passive service
|
||||
# checks - see the option below for controlling whether or not
|
||||
# passive checks are logged.
|
||||
|
||||
log_external_commands=1
|
||||
|
||||
|
||||
|
||||
# PASSIVE CHECKS LOGGING OPTION
|
||||
# If you don't want Nagios to log passive host and service checks, set
|
||||
# this value to 0. If passive checks should be logged, set
|
||||
# this value to 1.
|
||||
|
||||
log_passive_checks=1
|
||||
|
||||
|
||||
|
||||
# GLOBAL HOST AND SERVICE EVENT HANDLERS
|
||||
# These options allow you to specify a host and service event handler
|
||||
# command that is to be run for every host or service state change.
|
||||
# The global event handler is executed immediately prior to the event
|
||||
# handler that you have optionally specified in each host or
|
||||
# service definition. The command argument is the short name of a
|
||||
# command definition that you define in your host configuration file.
|
||||
# Read the HTML docs for more information.
|
||||
|
||||
#global_host_event_handler=somecommand
|
||||
#global_service_event_handler=somecommand
|
||||
|
||||
|
||||
|
||||
# SERVICE INTER-CHECK DELAY METHOD
|
||||
# This is the method that Nagios should use when initially
|
||||
# "spreading out" service checks when it starts monitoring. The
|
||||
# default is to use smart delay calculation, which will try to
|
||||
# space all service checks out evenly to minimize CPU load.
|
||||
# Using the dumb setting will cause all checks to be scheduled
|
||||
# at the same time (with no delay between them)! This is not a
|
||||
# good thing for production, but is useful when testing the
|
||||
# parallelization functionality.
|
||||
# n = None - don't use any delay between checks
|
||||
# d = Use a "dumb" delay of 1 second between checks
|
||||
# s = Use "smart" inter-check delay calculation
|
||||
# x.xx = Use an inter-check delay of x.xx seconds
|
||||
|
||||
service_inter_check_delay_method=s
|
||||
|
||||
|
||||
|
||||
# MAXIMUM SERVICE CHECK SPREAD
|
||||
# This variable determines the timeframe (in minutes) from the
|
||||
# program start time that an initial check of all services should
|
||||
# be completed. Default is 30 minutes.
|
||||
|
||||
max_service_check_spread=30
|
||||
|
||||
|
||||
|
||||
# SERVICE CHECK INTERLEAVE FACTOR
|
||||
# This variable determines how service checks are interleaved.
|
||||
# Interleaving the service checks allows for a more even
|
||||
# distribution of service checks and reduced load on remote
|
||||
# hosts. Setting this value to 1 is equivalent to how versions
|
||||
# of Nagios previous to 0.0.5 did service checks. Set this
|
||||
# value to s (smart) for automatic calculation of the interleave
|
||||
# factor unless you have a specific reason to change it.
|
||||
# s = Use "smart" interleave factor calculation
|
||||
# x = Use an interleave factor of x, where x is a
|
||||
# number greater than or equal to 1.
|
||||
|
||||
service_interleave_factor=s
|
||||
|
||||
|
||||
|
||||
# HOST INTER-CHECK DELAY METHOD
|
||||
# This is the method that Nagios should use when initially
|
||||
# "spreading out" host checks when it starts monitoring. The
|
||||
# default is to use smart delay calculation, which will try to
|
||||
# space all host checks out evenly to minimize CPU load.
|
||||
# Using the dumb setting will cause all checks to be scheduled
|
||||
# at the same time (with no delay between them)!
|
||||
# n = None - don't use any delay between checks
|
||||
# d = Use a "dumb" delay of 1 second between checks
|
||||
# s = Use "smart" inter-check delay calculation
|
||||
# x.xx = Use an inter-check delay of x.xx seconds
|
||||
|
||||
host_inter_check_delay_method=s
|
||||
|
||||
|
||||
|
||||
# MAXIMUM HOST CHECK SPREAD
|
||||
# This variable determines the timeframe (in minutes) from the
|
||||
# program start time that an initial check of all hosts should
|
||||
# be completed. Default is 30 minutes.
|
||||
|
||||
max_host_check_spread=30
|
||||
|
||||
|
||||
|
||||
# MAXIMUM CONCURRENT SERVICE CHECKS
|
||||
# This option allows you to specify the maximum number of
|
||||
# service checks that can be run in parallel at any given time.
|
||||
# Specifying a value of 1 for this variable essentially prevents
|
||||
# any service checks from being parallelized. A value of 0
|
||||
# will not restrict the number of concurrent checks that are
|
||||
# being executed.
|
||||
|
||||
max_concurrent_checks=0
|
||||
|
||||
|
||||
|
||||
# SERVICE CHECK REAPER FREQUENCY
|
||||
# This is the frequency (in seconds!) that Nagios will process
|
||||
# the results of services that have been checked.
|
||||
|
||||
service_reaper_frequency=10
|
||||
|
||||
|
||||
|
||||
|
||||
# AUTO-RESCHEDULING OPTION
|
||||
# This option determines whether or not Nagios will attempt to
|
||||
# automatically reschedule active host and service checks to
|
||||
# "smooth" them out over time. This can help balance the load on
|
||||
# the monitoring server.
|
||||
# WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE
|
||||
# PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY
|
||||
|
||||
auto_reschedule_checks=0
|
||||
|
||||
|
||||
|
||||
# AUTO-RESCHEDULING INTERVAL
|
||||
# This option determines how often (in seconds) Nagios will
|
||||
# attempt to automatically reschedule checks. This option only
|
||||
# has an effect if the auto_reschedule_checks option is enabled.
|
||||
# Default is 30 seconds.
|
||||
# WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE
|
||||
# PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY
|
||||
|
||||
auto_rescheduling_interval=30
|
||||
|
||||
|
||||
|
||||
|
||||
# AUTO-RESCHEDULING WINDOW
|
||||
# This option determines the "window" of time (in seconds) that
|
||||
# Nagios will look at when automatically rescheduling checks.
|
||||
# Only host and service checks that occur in the next X seconds
|
||||
# (determined by this variable) will be rescheduled. This option
|
||||
# only has an effect if the auto_reschedule_checks option is
|
||||
# enabled. Default is 180 seconds (3 minutes).
|
||||
# WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE
|
||||
# PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY
|
||||
|
||||
auto_rescheduling_window=180
|
||||
|
||||
|
||||
|
||||
# SLEEP TIME
|
||||
# This is the number of seconds to sleep between checking for system
|
||||
# events and service checks that need to be run.
|
||||
|
||||
sleep_time=0.25
|
||||
|
||||
|
||||
|
||||
# TIMEOUT VALUES
|
||||
# These options control how much time Nagios will allow various
|
||||
# types of commands to execute before killing them off. Options
|
||||
# are available for controlling maximum time allotted for
|
||||
# service checks, host checks, event handlers, notifications, the
|
||||
# ocsp command, and performance data commands. All values are in
|
||||
# seconds.
|
||||
|
||||
service_check_timeout=30
|
||||
host_check_timeout=30
|
||||
event_handler_timeout=30
|
||||
notification_timeout=45
|
||||
ocsp_timeout=5
|
||||
perfdata_timeout=5
|
||||
|
||||
|
||||
|
||||
# RETAIN STATE INFORMATION
|
||||
# This setting determines whether or not Nagios will save state
|
||||
# information for services and hosts before it shuts down. Upon
|
||||
# startup Nagios will reload all saved service and host state
|
||||
# information before starting to monitor. This is useful for
|
||||
# maintaining long-term data on state statistics, etc, but will
|
||||
# slow Nagios down a bit when it (re)starts. Since its only
|
||||
# a one-time penalty, I think its well worth the additional
|
||||
# startup delay.
|
||||
|
||||
retain_state_information=1
|
||||
|
||||
|
||||
|
||||
# STATE RETENTION FILE
|
||||
# This is the file that Nagios should use to store host and
|
||||
# service state information before it shuts down. The state
|
||||
# information in this file is also read immediately prior to
|
||||
# starting to monitor the network when Nagios is restarted.
|
||||
# This file is used only if the preserve_state_information
|
||||
# variable is set to 1.
|
||||
|
||||
state_retention_file=/var/log/nagios/retention.dat
|
||||
|
||||
|
||||
|
||||
# RETENTION DATA UPDATE INTERVAL
|
||||
# This setting determines how often (in minutes) that Nagios
|
||||
# will automatically save retention data during normal operation.
|
||||
# If you set this value to 0, Nagios will not save retention
|
||||
# data at regular interval, but it will still save retention
|
||||
# data before shutting down or restarting. If you have disabled
|
||||
# state retention, this option has no effect.
|
||||
|
||||
retention_update_interval=60
|
||||
|
||||
|
||||
|
||||
# USE RETAINED PROGRAM STATE
|
||||
# This setting determines whether or not Nagios will set
|
||||
# program status variables based on the values saved in the
|
||||
# retention file. If you want to use retained program status
|
||||
# information, set this value to 1. If not, set this value
|
||||
# to 0.
|
||||
|
||||
use_retained_program_state=1
|
||||
|
||||
|
||||
|
||||
# USE RETAINED SCHEDULING INFO
|
||||
# This setting determines whether or not Nagios will retain
|
||||
# the scheduling info (next check time) for hosts and services
|
||||
# based on the values saved in the retention file. If you
|
||||
# If you want to use retained scheduling info, set this
|
||||
# value to 1. If not, set this value to 0.
|
||||
|
||||
use_retained_scheduling_info=0
|
||||
|
||||
|
||||
|
||||
# INTERVAL LENGTH
|
||||
# This is the seconds per unit interval as used in the
|
||||
# host/contact/service configuration files. Setting this to 60 means
|
||||
# that each interval is one minute long (60 seconds). Other settings
|
||||
# have not been tested much, so your mileage is likely to vary...
|
||||
|
||||
interval_length=60
|
||||
|
||||
|
||||
|
||||
# AGGRESSIVE HOST CHECKING OPTION
|
||||
# If you don't want to turn on aggressive host checking features, set
|
||||
# this value to 0 (the default). Otherwise set this value to 1 to
|
||||
# enable the aggressive check option. Read the docs for more info
|
||||
# on what aggressive host check is or check out the source code in
|
||||
# base/checks.c
|
||||
|
||||
use_aggressive_host_checking=0
|
||||
|
||||
|
||||
|
||||
# SERVICE CHECK EXECUTION OPTION
|
||||
# This determines whether or not Nagios will actively execute
|
||||
# service checks when it initially starts. If this option is
|
||||
# disabled, checks are not actively made, but Nagios can still
|
||||
# receive and process passive check results that come in. Unless
|
||||
# you're implementing redundant hosts or have a special need for
|
||||
# disabling the execution of service checks, leave this enabled!
|
||||
# Values: 1 = enable checks, 0 = disable checks
|
||||
|
||||
execute_service_checks=1
|
||||
|
||||
|
||||
|
||||
# PASSIVE SERVICE CHECK ACCEPTANCE OPTION
|
||||
# This determines whether or not Nagios will accept passive
|
||||
# service checks results when it initially (re)starts.
|
||||
# Values: 1 = accept passive checks, 0 = reject passive checks
|
||||
|
||||
accept_passive_service_checks=1
|
||||
|
||||
|
||||
|
||||
# HOST CHECK EXECUTION OPTION
|
||||
# This determines whether or not Nagios will actively execute
|
||||
# host checks when it initially starts. If this option is
|
||||
# disabled, checks are not actively made, but Nagios can still
|
||||
# receive and process passive check results that come in. Unless
|
||||
# you're implementing redundant hosts or have a special need for
|
||||
# disabling the execution of host checks, leave this enabled!
|
||||
# Values: 1 = enable checks, 0 = disable checks
|
||||
|
||||
execute_host_checks=1
|
||||
|
||||
|
||||
|
||||
# PASSIVE HOST CHECK ACCEPTANCE OPTION
|
||||
# This determines whether or not Nagios will accept passive
|
||||
# host checks results when it initially (re)starts.
|
||||
# Values: 1 = accept passive checks, 0 = reject passive checks
|
||||
|
||||
accept_passive_host_checks=1
|
||||
|
||||
|
||||
|
||||
# NOTIFICATIONS OPTION
|
||||
# This determines whether or not Nagios will sent out any host or
|
||||
# service notifications when it is initially (re)started.
|
||||
# Values: 1 = enable notifications, 0 = disable notifications
|
||||
|
||||
enable_notifications=1
|
||||
|
||||
|
||||
|
||||
# EVENT HANDLER USE OPTION
|
||||
# This determines whether or not Nagios will run any host or
|
||||
# service event handlers when it is initially (re)started. Unless
|
||||
# you're implementing redundant hosts, leave this option enabled.
|
||||
# Values: 1 = enable event handlers, 0 = disable event handlers
|
||||
|
||||
enable_event_handlers=1
|
||||
|
||||
|
||||
|
||||
# PROCESS PERFORMANCE DATA OPTION
|
||||
# This determines whether or not Nagios will process performance
|
||||
# data returned from service and host checks. If this option is
|
||||
# enabled, host performance data will be processed using the
|
||||
# host_perfdata_command (defined below) and service performance
|
||||
# data will be processed using the service_perfdata_command (also
|
||||
# defined below). Read the HTML docs for more information on
|
||||
# performance data.
|
||||
# Values: 1 = process performance data, 0 = do not process performance data
|
||||
|
||||
process_performance_data=0
|
||||
|
||||
|
||||
|
||||
# HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS
|
||||
# These commands are run after every host and service check is
|
||||
# performed. These commands are executed only if the
|
||||
# enable_performance_data option (above) is set to 1. The command
|
||||
# argument is the short name of a command definition that you
|
||||
# define in your host configuration file. Read the HTML docs for
|
||||
# more information on performance data.
|
||||
|
||||
#host_perfdata_command=process-host-perfdata
|
||||
#service_perfdata_command=process-service-perfdata
|
||||
|
||||
|
||||
|
||||
# HOST AND SERVICE PERFORMANCE DATA FILES
|
||||
# These files are used to store host and service performance data.
|
||||
# Performance data is only written to these files if the
|
||||
# enable_performance_data option (above) is set to 1.
|
||||
|
||||
#host_perfdata_file=/tmp/host-perfdata
|
||||
#service_perfdata_file=/tmp/service-perfdata
|
||||
|
||||
|
||||
|
||||
# HOST AND SERVICE PERFORMANCE DATA FILE TEMPLATES
|
||||
# These options determine what data is written (and how) to the
|
||||
# performance data files. The templates may contain macros, special
|
||||
# characters (\t for tab, \r for carriage return, \n for newline)
|
||||
# and plain text. A newline is automatically added after each write
|
||||
# to the performance data file. Some examples of what you can do are
|
||||
# shown below.
|
||||
|
||||
#host_perfdata_file_template=[HOSTPERFDATA]\t$TIMET$\t$HOSTNAME$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$
|
||||
#service_perfdata_file_template=[SERVICEPERFDATA]\t$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$
|
||||
|
||||
|
||||
|
||||
|
||||
# HOST AND SERVICE PERFORMANCE DATA FILE MODES
|
||||
# This option determines whether or not the host and service
|
||||
# performance data files are opened in write ("w") or append ("a")
|
||||
# mode. Unless you are the files are named pipes, you will probably
|
||||
# want to use the default mode of append ("a").
|
||||
|
||||
#host_perfdata_file_mode=a
|
||||
#service_perfdata_file_mode=a
|
||||
|
||||
|
||||
|
||||
# HOST AND SERVICE PERFORMANCE DATA FILE PROCESSING INTERVAL
|
||||
# These options determine how often (in seconds) the host and service
|
||||
# performance data files are processed using the commands defined
|
||||
# below. A value of 0 indicates the files should not be periodically
|
||||
# processed.
|
||||
|
||||
#host_perfdata_file_processing_interval=0
|
||||
#service_perfdata_file_processing_interval=0
|
||||
|
||||
|
||||
|
||||
# HOST AND SERVICE PERFORMANCE DATA FILE PROCESSING COMMANDS
|
||||
# These commands are used to periodically process the host and
|
||||
# service performance data files. The interval at which the
|
||||
# processing occurs is determined by the options above.
|
||||
|
||||
#host_perfdata_file_processing_command=process-host-perfdata-file
|
||||
#service_perfdata_file_processing_command=process-service-perfdata-file
|
||||
|
||||
|
||||
|
||||
# OBSESS OVER SERVICE CHECKS OPTION
|
||||
# This determines whether or not Nagios will obsess over service
|
||||
# checks and run the ocsp_command defined below. Unless you're
|
||||
# planning on implementing distributed monitoring, do not enable
|
||||
# this option. Read the HTML docs for more information on
|
||||
# implementing distributed monitoring.
|
||||
# Values: 1 = obsess over services, 0 = do not obsess (default)
|
||||
|
||||
obsess_over_services=0
|
||||
|
||||
|
||||
|
||||
# OBSESSIVE COMPULSIVE SERVICE PROCESSOR COMMAND
|
||||
# This is the command that is run for every service check that is
|
||||
# processed by Nagios. This command is executed only if the
|
||||
# obsess_over_service option (above) is set to 1. The command
|
||||
# argument is the short name of a command definition that you
|
||||
# define in your host configuration file. Read the HTML docs for
|
||||
# more information on implementing distributed monitoring.
|
||||
|
||||
#ocsp_command=somecommand
|
||||
|
||||
|
||||
|
||||
# ORPHANED SERVICE CHECK OPTION
|
||||
# This determines whether or not Nagios will periodically
|
||||
# check for orphaned services. Since service checks are not
|
||||
# rescheduled until the results of their previous execution
|
||||
# instance are processed, there exists a possibility that some
|
||||
# checks may never get rescheduled. This seems to be a rare
|
||||
# problem and should not happen under normal circumstances.
|
||||
# If you have problems with service checks never getting
|
||||
# rescheduled, you might want to try enabling this option.
|
||||
# Values: 1 = enable checks, 0 = disable checks
|
||||
|
||||
check_for_orphaned_services=0
|
||||
|
||||
|
||||
|
||||
# SERVICE FRESHNESS CHECK OPTION
|
||||
# This option determines whether or not Nagios will periodically
|
||||
# check the "freshness" of service results. Enabling this option
|
||||
# is useful for ensuring passive checks are received in a timely
|
||||
# manner.
|
||||
# Values: 1 = enabled freshness checking, 0 = disable freshness checking
|
||||
|
||||
check_service_freshness=1
|
||||
|
||||
|
||||
|
||||
# SERVICE FRESHNESS CHECK INTERVAL
|
||||
# This setting determines how often (in seconds) Nagios will
|
||||
# check the "freshness" of service check results. If you have
|
||||
# disabled service freshness checking, this option has no effect.
|
||||
|
||||
service_freshness_check_interval=45
|
||||
|
||||
|
||||
|
||||
# HOST FRESHNESS CHECK OPTION
|
||||
# This option determines whether or not Nagios will periodically
|
||||
# check the "freshness" of host results. Enabling this option
|
||||
# is useful for ensuring passive checks are received in a timely
|
||||
# manner.
|
||||
# Values: 1 = enabled freshness checking, 0 = disable freshness checking
|
||||
|
||||
check_host_freshness=0
|
||||
|
||||
|
||||
|
||||
# HOST FRESHNESS CHECK INTERVAL
|
||||
# This setting determines how often (in seconds) Nagios will
|
||||
# check the "freshness" of host check results. If you have
|
||||
# disabled host freshness checking, this option has no effect.
|
||||
|
||||
host_freshness_check_interval=60
|
||||
|
||||
|
||||
|
||||
# AGGREGATED STATUS UPDATES
|
||||
# This option determines whether or not Nagios will
|
||||
# aggregate updates of host, service, and program status
|
||||
# data. Normally, status data is updated immediately when
|
||||
# a change occurs. This can result in high CPU loads if
|
||||
# you are monitoring a lot of services. If you want Nagios
|
||||
# to only refresh status data every few seconds, disable
|
||||
# this option.
|
||||
# Values: 1 = enable aggregate updates, 0 = disable aggregate updates
|
||||
|
||||
aggregate_status_updates=1
|
||||
|
||||
|
||||
|
||||
# AGGREGATED STATUS UPDATE INTERVAL
|
||||
# Combined with the aggregate_status_updates option,
|
||||
# this option determines the frequency (in seconds!) that
|
||||
# Nagios will periodically dump program, host, and
|
||||
# service status data. If you are not using aggregated
|
||||
# status data updates, this option has no effect.
|
||||
|
||||
status_update_interval=15
|
||||
|
||||
|
||||
|
||||
# FLAP DETECTION OPTION
|
||||
# This option determines whether or not Nagios will try
|
||||
# and detect hosts and services that are "flapping".
|
||||
# Flapping occurs when a host or service changes between
|
||||
# states too frequently. When Nagios detects that a
|
||||
# host or service is flapping, it will temporarily suppress
|
||||
# notifications for that host/service until it stops
|
||||
# flapping. Flap detection is very experimental, so read
|
||||
# the HTML documentation before enabling this feature!
|
||||
# Values: 1 = enable flap detection
|
||||
# 0 = disable flap detection (default)
|
||||
|
||||
enable_flap_detection=0
|
||||
|
||||
|
||||
|
||||
# FLAP DETECTION THRESHOLDS FOR HOSTS AND SERVICES
|
||||
# Read the HTML documentation on flap detection for
|
||||
# an explanation of what this option does. This option
|
||||
# has no effect if flap detection is disabled.
|
||||
|
||||
low_service_flap_threshold=5.0
|
||||
high_service_flap_threshold=20.0
|
||||
low_host_flap_threshold=5.0
|
||||
high_host_flap_threshold=20.0
|
||||
|
||||
|
||||
|
||||
# DATE FORMAT OPTION
|
||||
# This option determines how short dates are displayed. Valid options
|
||||
# include:
|
||||
# us (MM-DD-YYYY HH:MM:SS)
|
||||
# euro (DD-MM-YYYY HH:MM:SS)
|
||||
# iso8601 (YYYY-MM-DD HH:MM:SS)
|
||||
# strict-iso8601 (YYYY-MM-DDTHH:MM:SS)
|
||||
#
|
||||
|
||||
date_format=us
|
||||
|
||||
|
||||
|
||||
# P1.PL FILE LOCATION
|
||||
# This value determines where the p1.pl perl script (used by the
|
||||
# embedded Perl interpreter) is located. If you didn't compile
|
||||
# Nagios with embedded Perl support, this option has no effect.
|
||||
|
||||
p1_file=/usr/sbin/p1.pl
|
||||
|
||||
|
||||
|
||||
# ILLEGAL OBJECT NAME CHARACTERS
|
||||
# This option allows you to specify illegal characters that cannot
|
||||
# be used in host names, service descriptions, or names of other
|
||||
# object types.
|
||||
|
||||
illegal_object_name_chars=`~!$%^&*|'"<>?,()=
|
||||
|
||||
|
||||
|
||||
# ILLEGAL MACRO OUTPUT CHARACTERS
|
||||
# This option allows you to specify illegal characters that are
|
||||
# stripped from macros before being used in notifications, event
|
||||
# handlers, etc. This DOES NOT affect macros used in service or
|
||||
# host check commands.
|
||||
# The following macros are stripped of the characters you specify:
|
||||
# $HOSTOUTPUT$
|
||||
# $HOSTPERFDATA$
|
||||
# $HOSTACKAUTHOR$
|
||||
# $HOSTACKCOMMENT$
|
||||
# $SERVICEOUTPUT$
|
||||
# $SERVICEPERFDATA$
|
||||
# $SERVICEACKAUTHOR$
|
||||
# $SERVICEACKCOMMENT$
|
||||
|
||||
illegal_macro_output_chars=`~$&|'"<>
|
||||
|
||||
|
||||
|
||||
# REGULAR EXPRESSION MATCHING
|
||||
# This option controls whether or not regular expression matching
|
||||
# takes place in the object config files. Regular expression
|
||||
# matching is used to match host, hostgroup, service, and service
|
||||
# group names/descriptions in some fields of various object types.
|
||||
# Values: 1 = enable regexp matching, 0 = disable regexp matching
|
||||
|
||||
use_regexp_matching=0
|
||||
|
||||
|
||||
|
||||
# "TRUE" REGULAR EXPRESSION MATCHING
|
||||
# This option controls whether or not "true" regular expression
|
||||
# matching takes place in the object config files. This option
|
||||
# only has an effect if regular expression matching is enabled
|
||||
# (see above). If this option is DISABLED, regular expression
|
||||
# matching only occurs if a string contains wildcard characters
|
||||
# (* and ?). If the option is ENABLED, regexp matching occurs
|
||||
# all the time (which can be annoying).
|
||||
# Values: 1 = enable true matching, 0 = disable true matching
|
||||
|
||||
use_true_regexp_matching=0
|
||||
|
||||
|
||||
|
||||
|
||||
# ADMINISTRATOR EMAIL ADDRESS
|
||||
# The email address of the administrator of *this* machine (the one
|
||||
# doing the monitoring). Nagios never uses this value itself, but
|
||||
# you can access this value by using the $ADMINEMAIL$ macro in your
|
||||
# notification commands.
|
||||
|
||||
admin_email=nagios
|
||||
|
||||
|
||||
|
||||
# ADMINISTRATOR PAGER NUMBER/ADDRESS
|
||||
# The pager number/address for the administrator of *this* machine.
|
||||
# Nagios never uses this value itself, but you can access this
|
||||
# value by using the $ADMINPAGER$ macro in your notification
|
||||
# commands.
|
||||
|
||||
admin_pager=pagenagios
|
||||
|
||||
|
||||
|
||||
# DAEMON CORE DUMP OPTION
|
||||
# This option determines whether or not Nagios is allowed to create
|
||||
# a core dump when it runs as a daemon. Note that it is generally
|
||||
# considered bad form to allow this, but it may be useful for
|
||||
# debugging purposes.
|
||||
# Values: 1 - Allow core dumps
|
||||
# 0 - Do not allow core dumps (default)
|
||||
|
||||
daemon_dumps_core=0
|
||||
|
||||
|
||||
|
||||
# EOF (End of file)
|
||||
|
191
roles/nagios_server/files/nagios-external/nsca.cfg
Normal file
191
roles/nagios_server/files/nagios-external/nsca.cfg
Normal file
|
@ -0,0 +1,191 @@
|
|||
####################################################
|
||||
# Sample NSCA Daemon Config File
|
||||
# Written by: Ethan Galstad (nagios@nagios.org)
|
||||
#
|
||||
# Last Modified: 04-03-2006
|
||||
####################################################
|
||||
|
||||
|
||||
# PID FILE
|
||||
# The name of the file in which the NSCA daemon should write it's process ID
|
||||
# number. The file is only written if the NSCA daemon is started by the root
|
||||
# user as a single- or multi-process daemon.
|
||||
|
||||
pid_file=/var/run/nsca.pid
|
||||
|
||||
|
||||
|
||||
# PORT NUMBER
|
||||
# Port number we should wait for connections on.
|
||||
# This must be a non-priveledged port (i.e. > 1024).
|
||||
|
||||
server_port=5667
|
||||
|
||||
|
||||
|
||||
# SERVER ADDRESS
|
||||
# Address that NSCA has to bind to in case there are
|
||||
# more as one interface and we do not want NSCA to bind
|
||||
# (thus listen) on all interfaces.
|
||||
|
||||
server_address=127.0.0.1
|
||||
|
||||
|
||||
|
||||
# NSCA USER
|
||||
# This determines the effective user that the NSCA daemon should run as.
|
||||
# You can either supply a username or a UID.
|
||||
#
|
||||
# NOTE: This option is ignored if NSCA is running under either inetd or xinetd
|
||||
|
||||
nsca_user=nagios
|
||||
|
||||
|
||||
|
||||
# NSCA GROUP
|
||||
# This determines the effective group that the NSCA daemon should run as.
|
||||
# You can either supply a group name or a GID.
|
||||
#
|
||||
# NOTE: This option is ignored if NSCA is running under either inetd or xinetd
|
||||
|
||||
nsca_group=nagios
|
||||
|
||||
|
||||
|
||||
# NSCA CHROOT
|
||||
# If specified, determines a directory into which the nsca daemon
|
||||
# will perform a chroot(2) operation before dropping its privileges.
|
||||
# for the security conscious this can add a layer of protection in
|
||||
# the event that the nagios daemon is compromised.
|
||||
#
|
||||
# NOTE: if you specify this option, the command file will be opened
|
||||
# relative to this directory.
|
||||
|
||||
#nsca_chroot=/var/run/nagios/rw
|
||||
|
||||
|
||||
|
||||
# DEBUGGING OPTION
|
||||
# This option determines whether or not debugging
|
||||
# messages are logged to the syslog facility.
|
||||
# Values: 0 = debugging off, 1 = debugging on
|
||||
|
||||
debug=0
|
||||
|
||||
|
||||
|
||||
# COMMAND FILE
|
||||
# This is the location of the Nagios command file that the daemon
|
||||
# should write all service check results that it receives.
|
||||
|
||||
command_file=/var/spool/nagios/cmd/nagios.cmd
|
||||
|
||||
|
||||
# ALTERNATE DUMP FILE
|
||||
# This is used to specify an alternate file the daemon should
|
||||
# write service check results to in the event the command file
|
||||
# does not exist. It is important to note that the command file
|
||||
# is implemented as a named pipe and only exists when Nagios is
|
||||
# running. You may want to modify the startup script for Nagios
|
||||
# to dump the contents of this file into the command file after
|
||||
# it starts Nagios. Or you may simply choose to ignore any
|
||||
# check results received while Nagios was not running...
|
||||
|
||||
alternate_dump_file=/var/spool/nagios/cmd/nsca.dump
|
||||
|
||||
|
||||
|
||||
# AGGREGATED WRITES OPTION
|
||||
# This option determines whether or not the nsca daemon will
|
||||
# aggregate writes to the external command file for client
|
||||
# connections that contain multiple check results. If you
|
||||
# are queueing service check results on remote hosts and
|
||||
# sending them to the nsca daemon in bulk, you will probably
|
||||
# want to enable bulk writes, as this will be a bit more
|
||||
# efficient.
|
||||
# Values: 0 = do not aggregate writes, 1 = aggregate writes
|
||||
|
||||
aggregate_writes=0
|
||||
|
||||
|
||||
|
||||
# APPEND TO FILE OPTION
|
||||
# This option determines whether or not the nsca daemon will
|
||||
# will open the external command file for writing or appending.
|
||||
# This option should almost *always* be set to 0!
|
||||
# Values: 0 = open file for writing, 1 = open file for appending
|
||||
|
||||
append_to_file=0
|
||||
|
||||
|
||||
|
||||
# MAX PACKET AGE OPTION
|
||||
# This option is used by the nsca daemon to determine when client
|
||||
# data is too old to be valid. Keeping this value as small as
|
||||
# possible is recommended, as it helps prevent the possibility of
|
||||
# "replay" attacks. This value needs to be at least as long as
|
||||
# the time it takes your clients to send their data to the server.
|
||||
# Values are in seconds. The max packet age cannot exceed 15
|
||||
# minutes (900 seconds). If this variable is set to zero (0), no
|
||||
# packets will be rejected based on their age.
|
||||
|
||||
max_packet_age=30
|
||||
|
||||
|
||||
|
||||
# DECRYPTION PASSWORD
|
||||
# This is the password/passphrase that should be used to descrypt the
|
||||
# incoming packets. Note that all clients must encrypt the packets
|
||||
# they send using the same password!
|
||||
# IMPORTANT: You don't want all the users on this system to be able
|
||||
# to read the password you specify here, so make sure to set
|
||||
# restrictive permissions on this config file!
|
||||
|
||||
password=oix9iadeeh4kaeviha4naiReGhahze
|
||||
|
||||
|
||||
|
||||
# DECRYPTION METHOD
|
||||
# This option determines the method by which the nsca daemon will
|
||||
# decrypt the packets it receives from the clients. The decryption
|
||||
# method you choose will be a balance between security and performance,
|
||||
# as strong encryption methods consume more processor resources.
|
||||
# You should evaluate your security needs when choosing a decryption
|
||||
# method.
|
||||
#
|
||||
# Note: The decryption method you specify here must match the
|
||||
# encryption method the nsca clients use (as specified in
|
||||
# the send_nsca.cfg file)!!
|
||||
# Values:
|
||||
#
|
||||
# 0 = None (Do NOT use this option)
|
||||
# 1 = Simple XOR (No security, just obfuscation, but very fast)
|
||||
#
|
||||
# 2 = DES
|
||||
# 3 = 3DES (Triple DES)
|
||||
# 4 = CAST-128
|
||||
# 5 = CAST-256
|
||||
# 6 = xTEA
|
||||
# 7 = 3WAY
|
||||
# 8 = BLOWFISH
|
||||
# 9 = TWOFISH
|
||||
# 10 = LOKI97
|
||||
# 11 = RC2
|
||||
# 12 = ARCFOUR
|
||||
#
|
||||
# 14 = RIJNDAEL-128
|
||||
# 15 = RIJNDAEL-192
|
||||
# 16 = RIJNDAEL-256
|
||||
#
|
||||
# 19 = WAKE
|
||||
# 20 = SERPENT
|
||||
#
|
||||
# 22 = ENIGMA (Unix crypt)
|
||||
# 23 = GOST
|
||||
# 24 = SAFER64
|
||||
# 25 = SAFER128
|
||||
# 26 = SAFER+
|
||||
#
|
||||
|
||||
decryption_method=1
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
###########################################################################
|
||||
#
|
||||
# RESOURCE.CFG - Sample Resource File for Nagios
|
||||
#
|
||||
# Last Modified: 09-10-2003
|
||||
#
|
||||
# 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
|
|
@ -0,0 +1,34 @@
|
|||
###########################################################################
|
||||
#
|
||||
# RESOURCE.CFG - Sample Resource File for Nagios 2.7
|
||||
#
|
||||
# Last Modified: 09-10-2003
|
||||
#
|
||||
# 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
|
||||
|
63
roles/nagios_server/files/nagios-external/send_nsca.cfg
Normal file
63
roles/nagios_server/files/nagios-external/send_nsca.cfg
Normal file
|
@ -0,0 +1,63 @@
|
|||
####################################################
|
||||
# Sample NSCA Client Config File
|
||||
# Written by: Ethan Galstad (nagios@nagios.org)
|
||||
#
|
||||
# Last Modified: 02-21-2002
|
||||
####################################################
|
||||
|
||||
|
||||
# ENCRYPTION PASSWORD
|
||||
# This is the password/passphrase that should be used to encrypt the
|
||||
# outgoing packets. Note that the nsca daemon must use the same
|
||||
# password when decrypting the packet!
|
||||
# IMPORTANT: You don't want all the users on this system to be able
|
||||
# to read the password you specify here, so make sure to set
|
||||
# restrictive permissions on this config file!
|
||||
|
||||
password=oix9iadeeh4kaeviha4naiReGhahze
|
||||
|
||||
|
||||
|
||||
# ENCRYPTION METHOD
|
||||
# This option determines the method by which the send_nsca client will
|
||||
# encrypt the packets it sends to the nsca daemon. The encryption
|
||||
# method you choose will be a balance between security and performance,
|
||||
# as strong encryption methods consume more processor resources.
|
||||
# You should evaluate your security needs when choosing an encryption
|
||||
# method.
|
||||
#
|
||||
# Note: The encryption method you specify here must match the
|
||||
# decryption method the nsca daemon uses (as specified in
|
||||
# the nsca.cfg file)!!
|
||||
# Values:
|
||||
# 0 = None (Do NOT use this option)
|
||||
# 1 = Simple XOR (No security, just obfuscation, but very fast)
|
||||
#
|
||||
# 2 = DES
|
||||
# 3 = 3DES (Triple DES)
|
||||
# 4 = CAST-128
|
||||
# 5 = CAST-256
|
||||
# 6 = xTEA
|
||||
# 7 = 3WAY
|
||||
# 8 = BLOWFISH
|
||||
# 9 = TWOFISH
|
||||
# 10 = LOKI97
|
||||
# 11 = RC2
|
||||
# 12 = ARCFOUR
|
||||
#
|
||||
# 14 = RIJNDAEL-128
|
||||
# 15 = RIJNDAEL-192
|
||||
# 16 = RIJNDAEL-256
|
||||
#
|
||||
# 19 = WAKE
|
||||
# 20 = SERPENT
|
||||
#
|
||||
# 22 = ENIGMA (Unix crypt)
|
||||
# 23 = GOST
|
||||
# 24 = SAFER64
|
||||
# 25 = SAFER128
|
||||
# 26 = SAFER+
|
||||
#
|
||||
|
||||
encryption_method=1
|
||||
|
|
@ -0,0 +1,81 @@
|
|||
|
||||
define servicedependency {
|
||||
host_name 66.35.62.166-tummy
|
||||
service_description https
|
||||
dependent_host_name 66.35.62.166-tummy
|
||||
dependent_service_description bodhi, pkgdb, elections, docs.fedoraproject.org, mirrors.fedoraproject.org - mirrorlist, mirrors.fedoraproject.org - publiclist, start.fedoraproject.org, accounts
|
||||
notification_failure_criteria w,c
|
||||
execution_failure_criteria w,c
|
||||
}
|
||||
|
||||
define servicedependency {
|
||||
host_name 209.132.181.16-phx2
|
||||
service_description https
|
||||
dependent_host_name 209.132.181.16-phx2
|
||||
dependent_service_description bodhi, pkgdb, elections, docs.fedoraproject.org, mirrors.fedoraproject.org - mirrorlist, mirrors.fedoraproject.org - publiclist, start.fedoraproject.org, accounts, fedoraproject.org, fedoraproject.org - wiki
|
||||
notification_failure_criteria w,c
|
||||
execution_failure_criteria w,c
|
||||
}
|
||||
|
||||
define servicedependency {
|
||||
host_name 152.19.134.146-ibiblio
|
||||
service_description https
|
||||
dependent_host_name 152.19.134.146-ibiblio
|
||||
dependent_service_description bodhi, pkgdb, elections, docs.fedoraproject.org, mirrors.fedoraproject.org - mirrorlist, mirrors.fedoraproject.org - publiclist, start.fedoraproject.org, accounts
|
||||
notification_failure_criteria w,c
|
||||
execution_failure_criteria w,c
|
||||
}
|
||||
|
||||
define servicedependency {
|
||||
host_name 85.236.55.6-internetx
|
||||
service_description https
|
||||
dependent_host_name 85.236.55.6-internetx
|
||||
dependent_service_description bodhi, pkgdb, elections, docs.fedoraproject.org, mirrors.fedoraproject.org - mirrorlist, mirrors.fedoraproject.org - publiclist, start.fedoraproject.org, accounts
|
||||
notification_failure_criteria w,c
|
||||
execution_failure_criteria w,c
|
||||
}
|
||||
|
||||
define servicedependency {
|
||||
host_name 67.203.2.67-coloamerica
|
||||
service_description https
|
||||
dependent_host_name 67.203.2.67-coloamerica
|
||||
dependent_service_description bodhi, pkgdb, elections, docs.fedoraproject.org, mirrors.fedoraproject.org - mirrorlist, mirrors.fedoraproject.org - publiclist, start.fedoraproject.org, accounts, fedoraproject.org, fedoraproject.org - wiki
|
||||
notification_failure_criteria w,c
|
||||
execution_failure_criteria w,c
|
||||
}
|
||||
|
||||
define servicedependency {
|
||||
host_name 66.135.62.201-serverbeach
|
||||
service_description https
|
||||
dependent_host_name 66.135.62.201-serverbeach
|
||||
dependent_service_description bodhi, pkgdb, elections, docs.fedoraproject.org, mirrors.fedoraproject.org - mirrorlist, mirrors.fedoraproject.org - publiclist, start.fedoraproject.org, accounts, fedoraproject.org, fedoraproject.org - wiki
|
||||
notification_failure_criteria w,c
|
||||
execution_failure_criteria w,c
|
||||
}
|
||||
|
||||
define servicedependency {
|
||||
host_name 66.35.62.162-tummy
|
||||
service_description https
|
||||
dependent_host_name 66.35.62.162-tummy
|
||||
dependent_service_description fedoraproject.org, fedoraproject.org - wiki
|
||||
notification_failure_criteria w,c
|
||||
execution_failure_criteria w,c
|
||||
}
|
||||
|
||||
define servicedependency {
|
||||
host_name 152.19.134.142-ibiblio
|
||||
service_description https
|
||||
dependent_host_name 152.19.134.142-ibiblio
|
||||
dependent_service_description fedoraproject.org, fedoraproject.org - wiki
|
||||
notification_failure_criteria w,c
|
||||
execution_failure_criteria w,c
|
||||
}
|
||||
|
||||
define servicedependency {
|
||||
host_name 85.236.55.5-internetx
|
||||
service_description https
|
||||
dependent_host_name 85.236.55.5-internetx
|
||||
dependent_service_description fedoraproject.org, fedoraproject.org - wiki
|
||||
notification_failure_criteria w,c
|
||||
execution_failure_criteria w,c
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
define service {
|
||||
hostgroup_name dnsservers
|
||||
service_description DNS: fp.o
|
||||
check_command check_dns_fpo
|
||||
use criticaltemplate
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
define service {
|
||||
host_name noc1
|
||||
service_description Check Nagios
|
||||
check_command check_by_nrpe!check_nagios
|
||||
use criticaltemplate
|
||||
}
|
||||
|
|
@ -0,0 +1,81 @@
|
|||
define service {
|
||||
name criticaltemplate
|
||||
max_check_attempts 4
|
||||
normal_check_interval 5
|
||||
retry_check_interval 1
|
||||
check_period 24x7
|
||||
notification_interval 360
|
||||
notification_period 24x7
|
||||
notification_options w,u,c,r
|
||||
contact_groups fedora-sysadmin-email,fedora-sysadmin-pager
|
||||
|
||||
register 0
|
||||
}
|
||||
|
||||
|
||||
define service {
|
||||
name defaulttemplate
|
||||
max_check_attempts 3
|
||||
normal_check_interval 10
|
||||
retry_check_interval 1
|
||||
check_period 24x7
|
||||
notification_interval 360
|
||||
notification_period 24x7
|
||||
notification_options w,u,c,r
|
||||
contact_groups fedora-sysadmin-email
|
||||
|
||||
register 0
|
||||
}
|
||||
|
||||
define service {
|
||||
name disktemplate
|
||||
max_check_attempts 3
|
||||
normal_check_interval 30
|
||||
retry_check_interval 1
|
||||
check_period 24x7
|
||||
notification_interval 360
|
||||
notification_period 24x7
|
||||
notification_options w,u,c,r
|
||||
contact_groups fedora-sysadmin-email,fedora-sysadmin-pager
|
||||
|
||||
register 0
|
||||
}
|
||||
|
||||
define service {
|
||||
name lighttemplate
|
||||
max_check_attempts 3
|
||||
normal_check_interval 480
|
||||
retry_check_interval 5
|
||||
check_period 24x7
|
||||
notification_interval 500
|
||||
notification_period 24x7
|
||||
notification_options w,u,c,r
|
||||
contact_groups fedora-sysadmin-email
|
||||
|
||||
register 0
|
||||
}
|
||||
|
||||
define service {
|
||||
name websitetemplate
|
||||
max_check_attempts 3
|
||||
normal_check_interval 5
|
||||
retry_check_interval 1
|
||||
check_period 24x7
|
||||
notification_interval 360
|
||||
notification_period 24x7
|
||||
notification_options w,u,c,r
|
||||
contact_groups fedora-sysadmin-email,fedora-sysadmin-pager
|
||||
|
||||
register 0
|
||||
}
|
||||
|
||||
define service {
|
||||
use defaulttemplate
|
||||
name passivetemplate
|
||||
active_checks_enabled 0
|
||||
passive_checks_enabled 1
|
||||
check_command check_dummy!0
|
||||
check_period 24x7
|
||||
check_freshness 0
|
||||
register 0
|
||||
}
|
135
roles/nagios_server/files/nagios-external/services/websites.cfg
Normal file
135
roles/nagios_server/files/nagios-external/services/websites.cfg
Normal file
|
@ -0,0 +1,135 @@
|
|||
define service {
|
||||
host_name 66.35.62.166-tummy, 209.132.181.16-phx2, 152.19.134.146-ibiblio, 85.236.55.6-internetx, 66.35.62.162-tummy, 152.19.134.142-ibiblio, 85.236.55.5-internetx, 67.203.2.67-coloamerica, 66.135.62.201-serverbeach
|
||||
service_description https
|
||||
max_check_attempts 2
|
||||
normal_check_interval 2
|
||||
check_command check_https
|
||||
use websitetemplate
|
||||
}
|
||||
|
||||
|
||||
define service {
|
||||
host_name 66.35.62.166-tummy, 209.132.181.16-phx2, 152.19.134.146-ibiblio, 85.236.55.6-internetx, 67.203.2.67-coloamerica, 66.135.62.201-serverbeach
|
||||
service_description bodhi
|
||||
max_check_attempts 8
|
||||
check_command check_website_ssl!admin.fedoraproject.org!/updates/!Latest
|
||||
use websitetemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name 66.35.62.166-tummy, 209.132.181.16-phx2, 152.19.134.146-ibiblio, 85.236.55.6-internetx, 67.203.2.67-coloamerica, 66.135.62.201-serverbeach
|
||||
service_description pkgdb
|
||||
check_command check_website_ssl!admin.fedoraproject.org!/pkgdb/collections/!EPEL
|
||||
use websitetemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name 66.35.62.166-tummy, 209.132.181.16-phx2, 152.19.134.146-ibiblio, 85.236.55.6-internetx, 67.203.2.67-coloamerica, 66.135.62.201-serverbeach
|
||||
service_description packages
|
||||
max_check_attempts 8
|
||||
check_command check_website_ssl!apps.fedoraproject.org!/packages/!Packages
|
||||
use websitetemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name 66.35.62.166-tummy, 209.132.181.16-phx2, 152.19.134.146-ibiblio, 85.236.55.6-internetx, 67.203.2.67-coloamerica, 66.135.62.201-serverbeach
|
||||
service_description elections
|
||||
check_command check_website_ssl!admin.fedoraproject.org!/voting/!Last 5 elections
|
||||
use websitetemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name koji-phx2
|
||||
service_description koji
|
||||
check_command check_website!koji.fedoraproject.org!/koji/buildtargets!rawhide
|
||||
use websitetemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name 66.35.62.162-tummy, 209.132.181.16-phx2, 152.19.134.142-ibiblio, 85.236.55.5-internetx, 67.203.2.67-coloamerica, 66.135.62.201-serverbeach
|
||||
service_description fedoraproject.org
|
||||
check_command check_website!fedoraproject.org!/!People world-wide
|
||||
use websitetemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name 66.35.62.162-tummy, 209.132.181.16-phx2, 152.19.134.142-ibiblio, 85.236.55.5-internetx, 67.203.2.67-coloamerica, 66.135.62.201-serverbeach
|
||||
service_description fedoraproject.org - wiki
|
||||
check_command check_website!fedoraproject.org!/wiki/Special:Version!MediaWiki is free software
|
||||
use websitetemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name 66.35.62.166-tummy, 209.132.181.16-phx2, 152.19.134.146-ibiblio, 85.236.55.6-internetx, 67.203.2.67-coloamerica, 66.135.62.201-serverbeach
|
||||
service_description docs.fedoraproject.org
|
||||
check_command check_website!docs.fedoraproject.org!/en-US/index.html!Fedora Documentation
|
||||
use websitetemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name 66.35.62.166-tummy, 209.132.181.16-phx2, 152.19.134.146-ibiblio, 85.236.55.6-internetx, 67.203.2.67-coloamerica, 66.135.62.201-serverbeach
|
||||
service_description mirrors.fedoraproject.org - mirrorlist
|
||||
check_command check_website!mirrors.fedoraproject.org!/mirrorlist?repo=rawhide&arch=x86_64&country=global!development
|
||||
use websitetemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name 66.35.62.166-tummy, 209.132.181.16-phx2, 152.19.134.146-ibiblio, 85.236.55.6-internetx, 67.203.2.67-coloamerica, 66.135.62.201-serverbeach
|
||||
service_description mirrors.fedoraproject.org - publiclist
|
||||
check_command check_website!mirrors.fedoraproject.org!/publiclist/Fedora/!Fedora Public Active Mirrors
|
||||
use websitetemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name 66.35.62.166-tummy, 209.132.181.16-phx2, 152.19.134.146-ibiblio, 85.236.55.6-internetx, 67.203.2.67-coloamerica, 66.135.62.201-serverbeach
|
||||
service_description start.fedoraproject.org
|
||||
check_command check_website!start.fedoraproject.org!/!The Fedora Project is maintained
|
||||
use websitetemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name 209.132.183.81-phx2
|
||||
service_description www.redhat.com
|
||||
check_command check_website!www.redhat.com!/!Careers
|
||||
use websitetemplate
|
||||
max_check_attempts 3
|
||||
normal_check_interval 5
|
||||
retry_check_interval 1
|
||||
notification_options c
|
||||
contact_groups null
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name 209.132.181.16-phx2, 66.35.62.166-tummy, 152.19.134.146-ibiblio, 85.236.55.6-internetx, 67.203.2.67-coloamerica, 66.135.62.201-serverbeach
|
||||
service_description accounts
|
||||
check_command check_website_ssl!admin.fedoraproject.org!/accounts/help/get_help/user_telephone!emergency
|
||||
use websitetemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name 209.132.181.16-phx2, 66.35.62.166-tummy, 152.19.134.146-ibiblio, 85.236.55.6-internetx, 67.203.2.67-coloamerica, 66.135.62.201-serverbeach
|
||||
service_description ask
|
||||
check_command check_website_ssl!ask.fedoraproject.org!/en/questions/!RSS
|
||||
use websitetemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name 152.19.134.191-people03
|
||||
service_description planet
|
||||
check_command check_website!planet.fedoraproject.org!/!Sub-Project planets
|
||||
use websitetemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name 209.132.181.16-phx2, 66.35.62.166-tummy, 152.19.134.146-ibiblio, 85.236.55.6-internetx, 67.203.2.67-coloamerica, 66.135.62.201-serverbeach
|
||||
service_description blockerbugs
|
||||
check_command check_website_ssl!qa.fedoraproject.org!/blockerbugs/!Currently Active Milestones
|
||||
use websitetemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name 209.132.181.16-phx2, 66.35.62.166-tummy, 152.19.134.146-ibiblio, 85.236.55.6-internetx, 67.203.2.67-coloamerica, 66.135.62.201-serverbeach
|
||||
service_description fedocal
|
||||
check_command check_website_ssl!apps.fedoraproject.org!/calendar/list/infrastructure-outages/!Description
|
||||
use websitetemplate
|
||||
}
|
29
roles/nagios_server/files/nagios-external/timeperiods.cfg
Normal file
29
roles/nagios_server/files/nagios-external/timeperiods.cfg
Normal file
|
@ -0,0 +1,29 @@
|
|||
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
|
||||
}
|
||||
define timeperiod{
|
||||
timeperiod_name 16x7
|
||||
alias 15 Hours a day, 7 days a week
|
||||
sunday 00:00-04:00,13:00-24:00
|
||||
monday 00:00-04:00,13:00-24:00
|
||||
tuesday 00:00-04:00,13:00-24:00
|
||||
wednesday 00:00-04:00,13:00-24:00
|
||||
thursday 00:00-04:00,13:00-24:00
|
||||
friday 00:00-04:00,13:00-24:00
|
||||
saturday 00:00-04:00,13:00-24:00
|
||||
}
|
||||
|
||||
# Members of sysadmin-main already get nagios messages
|
||||
define timeperiod{
|
||||
timeperiod_name never
|
||||
alias Never
|
||||
}
|
||||
|
276
roles/nagios_server/files/nagios/cgi.cfg
Normal file
276
roles/nagios_server/files/nagios/cgi.cfg
Normal file
|
@ -0,0 +1,276 @@
|
|||
#################################################################
|
||||
#
|
||||
# CGI.CFG - Sample CGI Configuration File for Nagios
|
||||
#
|
||||
# Last Modified: 05-05-2005
|
||||
#
|
||||
#################################################################
|
||||
|
||||
|
||||
# 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/nagios/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/nagios/share
|
||||
|
||||
|
||||
|
||||
# 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=/nagios
|
||||
|
||||
|
||||
|
||||
# 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=0
|
||||
|
||||
|
||||
|
||||
# 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/log/nagios/status.dat 5 '/usr/sbin/nagios'
|
||||
|
||||
|
||||
|
||||
# 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=1
|
||||
|
||||
|
||||
|
||||
# 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 sercure 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,theboss,jdoe
|
||||
authorized_for_system_information=*
|
||||
|
||||
|
||||
|
||||
# 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,jdoe
|
||||
authorized_for_configuration_information=*
|
||||
|
||||
|
||||
# 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
|
||||
authorized_for_system_commands=athmane,ausil,averi,badone,codeblock,dwa,hvivani,ianweller,jspaleta,jstanley,kevin,lbazan,lmacken,maxamillio,mmahut,mmcgrath,nb,pfrields,puiterwijk,rafaelgomes,ralph,sijis,smooge,susmit,tibbs,tmz,wsterling,mdomsch,notting,ricky,toshio,spot,mahrud,dwa,karsten
|
||||
|
||||
|
||||
|
||||
# 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=*
|
||||
authorized_for_all_hosts=*
|
||||
|
||||
|
||||
# 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
|
||||
authorized_for_all_service_commands=athmane,ausil,averi,badone,codeblock,dwa,hvivani,ianweller,jspaleta,jstanley,kevin,lbazan,lmacken,maxamillio,mmahut,mmcgrath,nb,pfrields,puiterwijk,rafaelgomes,ralph,sijis,smooge,susmit,tibbs,tmz,wsterling,mdomsch,notting,ricky,toshio,spot,mahrud,dwa,karsten
|
||||
authorized_for_all_host_commands=athmane,ausil,averi,badone,codeblock,dwa,hvivani,ianweller,jspaleta,jstanley,kevin,lbazan,lmacken,maxamillio,mmahut,mmcgrath,nb,pfrields,puiterwijk,rafaelgomes,ralph,sijis,smooge,susmit,tibbs,tmz,wsterling,mdomsch,notting,ricky,toshio,spot,mahrud,dwa,karsten
|
||||
|
||||
|
||||
|
||||
# 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
|
||||
|
||||
|
||||
|
||||
# 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
|
||||
|
||||
|
||||
|
||||
# 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
|
5
roles/nagios_server/files/nagios/contactgroups/bodhi.cfg
Normal file
5
roles/nagios_server/files/nagios/contactgroups/bodhi.cfg
Normal file
|
@ -0,0 +1,5 @@
|
|||
#define contactgroup {
|
||||
# contactgroup_name bodhi
|
||||
# alias Bodhi Notifications
|
||||
# members lmacken
|
||||
#}
|
|
@ -0,0 +1,5 @@
|
|||
define contactgroup{
|
||||
contactgroup_name build-sysadmin-email
|
||||
alias Build Sysadmin Email Contacts
|
||||
members kevin,aditya
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
define contactgroup{
|
||||
contactgroup_name fedora-sysadmin-email
|
||||
alias Fedora Sysadmin Email Contacts
|
||||
members mmcgrath,ausil,admin,ricky,jcollie,jmtaylor,jstanley,smooge,nb,rigeld2,codeblock,smooge_xmpp,hvivani,kevin,puiterwijkp
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
define contactgroup{
|
||||
contactgroup_name fedora-sysadmin-pager
|
||||
alias Fedora Sysadmin Pager Contacts
|
||||
members mmcgrathp,rickyp,jstanleyp,smoogep,kevinp,puiterwijkp
|
||||
}
|
||||
define contactgroup{
|
||||
contactgroup_name fedora-sysadmin-emergency
|
||||
alias Fedora Sysadmin Pager Contacts
|
||||
members mmcgrath-emergency,ricky-emergency,jstanley-emergency,smooge-emergency,kevin-emergency,puiterwijkp
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
define contactgroup {
|
||||
contactgroup_name ppc-secondary-email
|
||||
alias Fedora PPC secondary arch Email Contacts
|
||||
members kevin,dwa,dwa-pager,karsten
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
define contactgroup {
|
||||
contactgroup_name retrace-email
|
||||
alias Fedora Retrace server Email Contacts
|
||||
members kevin,mtoman
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
define contactgroup {
|
||||
contactgroup_name sysadmin-qa-email
|
||||
alias Fedora SysAdmin QA Email Contacts
|
||||
members sysadmin-qa
|
||||
}
|
11
roles/nagios_server/files/nagios/contacts/aditya.cfg
Normal file
11
roles/nagios_server/files/nagios/contacts/aditya.cfg
Normal file
|
@ -0,0 +1,11 @@
|
|||
define contact{
|
||||
contact_name aditya
|
||||
alias Aditya Patawari
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email adimania@fedoraproject.org
|
||||
}
|
13
roles/nagios_server/files/nagios/contacts/admin.cfg
Normal file
13
roles/nagios_server/files/nagios/contacts/admin.cfg
Normal file
|
@ -0,0 +1,13 @@
|
|||
define contact{
|
||||
contact_name admin
|
||||
alias Fedora Sysadmins
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email sysadmin-members@fedoraproject.org
|
||||
}
|
||||
|
||||
|
16
roles/nagios_server/files/nagios/contacts/ausil.cfg
Normal file
16
roles/nagios_server/files/nagios/contacts/ausil.cfg
Normal file
|
@ -0,0 +1,16 @@
|
|||
define contact{
|
||||
contact_name ausil
|
||||
alias Dennis Gilmore
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
#service_notification_commands notify-by-epager
|
||||
#host_notification_commands host-notify-by-epager
|
||||
#email ausil@fedoraproject.org
|
||||
pager mobile@ausil.us
|
||||
email mobile@ausil.us
|
||||
}
|
||||
|
11
roles/nagios_server/files/nagios/contacts/codeblock.cfg
Normal file
11
roles/nagios_server/files/nagios/contacts/codeblock.cfg
Normal file
|
@ -0,0 +1,11 @@
|
|||
define contact{
|
||||
contact_name codeblock
|
||||
alias Ricky Elrod
|
||||
service_notification_period never
|
||||
host_notification_period never
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email codeblock@elrod.me
|
||||
}
|
23
roles/nagios_server/files/nagios/contacts/dwa.cfg
Normal file
23
roles/nagios_server/files/nagios/contacts/dwa.cfg
Normal file
|
@ -0,0 +1,23 @@
|
|||
define contact{
|
||||
contact_name dwa
|
||||
alias David Aquilina
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email dwa@redhat.com
|
||||
}
|
||||
|
||||
define contact{
|
||||
contact_name dwa-pager
|
||||
alias David Aquilina
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email dwa@fedoraproject.org
|
||||
}
|
12
roles/nagios_server/files/nagios/contacts/hvivani.cfg
Normal file
12
roles/nagios_server/files/nagios/contacts/hvivani.cfg
Normal file
|
@ -0,0 +1,12 @@
|
|||
define contact{
|
||||
contact_name hvivani
|
||||
alias Hernan Vivani
|
||||
service_notification_period never
|
||||
host_notification_period never
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email hernan@vivani.com.ar
|
||||
}
|
||||
|
11
roles/nagios_server/files/nagios/contacts/jcollie.cfg
Normal file
11
roles/nagios_server/files/nagios/contacts/jcollie.cfg
Normal file
|
@ -0,0 +1,11 @@
|
|||
define contact{
|
||||
contact_name jcollie
|
||||
alias Jeffrey Ollie
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email jeff@ocjtech.us
|
||||
}
|
11
roles/nagios_server/files/nagios/contacts/jmtaylor.cfg
Normal file
11
roles/nagios_server/files/nagios/contacts/jmtaylor.cfg
Normal file
|
@ -0,0 +1,11 @@
|
|||
define contact{
|
||||
contact_name jmtaylor
|
||||
alias Jason Taylor
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email jmtaylor90@gmail.com
|
||||
}
|
37
roles/nagios_server/files/nagios/contacts/jstanley.cfg
Normal file
37
roles/nagios_server/files/nagios/contacts/jstanley.cfg
Normal file
|
@ -0,0 +1,37 @@
|
|||
define contact{
|
||||
contact_name jstanley
|
||||
alias Jon Stanley
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email jonstanley@gmail.com
|
||||
}
|
||||
|
||||
define contact{
|
||||
contact_name jstanley-emergency
|
||||
alias Jon Stanley
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email 9178159801@vtext.com
|
||||
pager 9178159801@vtext.com
|
||||
}
|
||||
|
||||
define contact{
|
||||
contact_name jstanleyp
|
||||
alias Jon Stanley
|
||||
service_notification_period 16x7
|
||||
host_notification_period 16x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email 9178159801@vtext.com
|
||||
pager 9178159801@vtext.com
|
||||
}
|
11
roles/nagios_server/files/nagios/contacts/karsten.cfg
Normal file
11
roles/nagios_server/files/nagios/contacts/karsten.cfg
Normal file
|
@ -0,0 +1,11 @@
|
|||
define contact{
|
||||
contact_name karsten
|
||||
alias Karsten Hopp
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email karsten@redhat.com
|
||||
}
|
47
roles/nagios_server/files/nagios/contacts/kevin.cfg
Normal file
47
roles/nagios_server/files/nagios/contacts/kevin.cfg
Normal file
|
@ -0,0 +1,47 @@
|
|||
define contact{
|
||||
contact_name kevin
|
||||
alias Kevin Fenzi
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email kevin-pager@scrye.com
|
||||
}
|
||||
|
||||
# define contact{
|
||||
# contact_name kevin_xmpp
|
||||
# alias Kevin Fenzi
|
||||
# service_notification_period 24x7
|
||||
# host_notification_period 24x7
|
||||
# service_notification_options w,u,c,r
|
||||
# host_notification_options d,u,r
|
||||
# service_notification_commands notify-by-xmpp
|
||||
# host_notification_commands host-notify-by-xmpp
|
||||
# email nirik99@gmail.com
|
||||
# }
|
||||
|
||||
define contact{
|
||||
contact_name kevin-emergency
|
||||
alias Kevin Fenzi
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email kevin-urgent@scrye.com
|
||||
}
|
||||
|
||||
define contact{
|
||||
contact_name kevinp
|
||||
alias Kevin Fenzi
|
||||
service_notification_period 16x7
|
||||
host_notification_period 16x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email kevin-urgent@scrye.com
|
||||
}
|
11
roles/nagios_server/files/nagios/contacts/lmacken.cfg
Normal file
11
roles/nagios_server/files/nagios/contacts/lmacken.cfg
Normal file
|
@ -0,0 +1,11 @@
|
|||
define contact{
|
||||
contact_name lmacken
|
||||
alias Luke Macken
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email lewk@vtext.com
|
||||
}
|
38
roles/nagios_server/files/nagios/contacts/mmcgrath.cfg
Normal file
38
roles/nagios_server/files/nagios/contacts/mmcgrath.cfg
Normal file
|
@ -0,0 +1,38 @@
|
|||
define contact{
|
||||
contact_name mmcgrath
|
||||
alias Mike McGrath
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email mmcgrath@redhat.com
|
||||
}
|
||||
|
||||
define contact{
|
||||
contact_name mmcgrath-emergency
|
||||
alias Mike McGrath
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email imlinux+mobile@gmail.com
|
||||
pager imlinux+mobile@gmail.com
|
||||
}
|
||||
|
||||
define contact{
|
||||
contact_name mmcgrathp
|
||||
alias Mike McGrath
|
||||
service_notification_period 16x7
|
||||
host_notification_period 16x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email imlinux+mobile@gmail.com
|
||||
pager imlinux+mobile@gmail.com
|
||||
}
|
||||
|
11
roles/nagios_server/files/nagios/contacts/mtoman.cfg
Normal file
11
roles/nagios_server/files/nagios/contacts/mtoman.cfg
Normal file
|
@ -0,0 +1,11 @@
|
|||
define contact{
|
||||
contact_name mtoman
|
||||
alias Michal Toman
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email mtoman@redhat.com
|
||||
}
|
38
roles/nagios_server/files/nagios/contacts/nb.cfg
Normal file
38
roles/nagios_server/files/nagios/contacts/nb.cfg
Normal file
|
@ -0,0 +1,38 @@
|
|||
define contact{
|
||||
contact_name nb
|
||||
alias Nick Bebout
|
||||
service_notification_period never
|
||||
host_notification_period never
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email nick@bebout.net
|
||||
}
|
||||
|
||||
#define contact{
|
||||
# contact_name nb-emergency
|
||||
# alias Nick Bebout
|
||||
# service_notification_period never
|
||||
# host_notification_period never
|
||||
# service_notification_options w,u,c,r
|
||||
# host_notification_options d,u,r
|
||||
# service_notification_commands notify-by-epager
|
||||
# host_notification_commands host-notify-by-epager
|
||||
# email nb5@txt.att.net
|
||||
# pager nb5@txt.att.net
|
||||
#}
|
||||
|
||||
#define contact{
|
||||
# contact_name nbp
|
||||
# alias Nick Bebout
|
||||
# service_notification_period never
|
||||
# host_notification_period never
|
||||
# service_notification_options w,u,c,r
|
||||
# host_notification_options d,u,r
|
||||
# service_notification_commands notify-by-epager
|
||||
# host_notification_commands host-notify-by-epager
|
||||
# email nb5@txt.att.net
|
||||
# pager nb5@txt.att.net
|
||||
#}
|
||||
|
10
roles/nagios_server/files/nagios/contacts/ppc-secondary.cfg
Normal file
10
roles/nagios_server/files/nagios/contacts/ppc-secondary.cfg
Normal file
|
@ -0,0 +1,10 @@
|
|||
define contact {
|
||||
contact_name ppc-secondary
|
||||
alias Fedora PPC secondary arch SysAdmins
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
}
|
12
roles/nagios_server/files/nagios/contacts/puiterwijk.cfg
Normal file
12
roles/nagios_server/files/nagios/contacts/puiterwijk.cfg
Normal file
|
@ -0,0 +1,12 @@
|
|||
define contact{
|
||||
contact_name puiterwijkp
|
||||
alias Patrick Uiterwijk
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email puiterwijk@gmail.com
|
||||
pager puiterwijk@gmail.com
|
||||
}
|
38
roles/nagios_server/files/nagios/contacts/ricky.cfg
Normal file
38
roles/nagios_server/files/nagios/contacts/ricky.cfg
Normal file
|
@ -0,0 +1,38 @@
|
|||
define contact{
|
||||
contact_name ricky
|
||||
alias Ricky Zhou
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email,notify-by-ircbot,notify-by-xmpp
|
||||
host_notification_commands host-notify-by-email,host-notify-by-ircbot,host-notify-by-xmpp
|
||||
email ricky@rzhou.org
|
||||
}
|
||||
|
||||
define contact{
|
||||
contact_name ricky-emergency
|
||||
alias Ricky Zhou
|
||||
service_notification_period never
|
||||
host_notification_period never
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email 2014030692@vtext.com
|
||||
pager 2014030692@vtext.com
|
||||
}
|
||||
|
||||
define contact{
|
||||
contact_name rickyp
|
||||
alias Ricky Zhou
|
||||
service_notification_period never
|
||||
host_notification_period never
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email 2014030692@vtext.com
|
||||
pager 2014030692@vtext.com
|
||||
}
|
||||
|
11
roles/nagios_server/files/nagios/contacts/rigeld2.cfg
Normal file
11
roles/nagios_server/files/nagios/contacts/rigeld2.cfg
Normal file
|
@ -0,0 +1,11 @@
|
|||
define contact{
|
||||
contact_name rigeld2
|
||||
alias Rob Marti
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email robmartiwork@gmail.com
|
||||
}
|
48
roles/nagios_server/files/nagios/contacts/skvidal.cfg
Normal file
48
roles/nagios_server/files/nagios/contacts/skvidal.cfg
Normal file
|
@ -0,0 +1,48 @@
|
|||
#define contact{
|
||||
# contact_name skvidal
|
||||
# alias Seth Vidal
|
||||
# service_notification_period 24x7
|
||||
# host_notification_period 24x7
|
||||
# service_notification_options w,u,c,r
|
||||
# host_notification_options d,u,r
|
||||
# service_notification_commands notify-by-email
|
||||
# host_notification_commands host-notify-by-email
|
||||
# email seth-alert@sethdot.org
|
||||
#}
|
||||
#
|
||||
#define contact{
|
||||
# contact_name skvidal_xmpp
|
||||
# alias Seth Vidal
|
||||
# service_notification_period 24x7
|
||||
# host_notification_period 24x7
|
||||
# service_notification_options w,u,c,r
|
||||
# host_notification_options d,u,r
|
||||
# service_notification_commands notify-by-xmpp
|
||||
# host_notification_commands host-notify-by-xmpp
|
||||
# email skvidal@jabber.org
|
||||
#}
|
||||
#
|
||||
#define contact{
|
||||
# contact_name skvidal-emergency
|
||||
# alias Seth Vidal
|
||||
# service_notification_period 24x7
|
||||
# host_notification_period 24x7
|
||||
# service_notification_options w,u,c,r
|
||||
# host_notification_options d,u,r
|
||||
# service_notification_commands notify-by-epager
|
||||
# host_notification_commands host-notify-by-epager
|
||||
# email page-seth-vidal@sethdot.org
|
||||
#}
|
||||
#
|
||||
#define contact{
|
||||
# contact_name skvidalp
|
||||
# alias Seth Vidal
|
||||
# service_notification_period 16x7
|
||||
# host_notification_period 16x7
|
||||
# service_notification_options w,u,c,r
|
||||
# host_notification_options d,u,r
|
||||
# service_notification_commands notify-by-epager
|
||||
# host_notification_commands host-notify-by-epager
|
||||
# email page-seth-vidal@sethdot.org
|
||||
# pager page-seth-vidal@sethdot.org
|
||||
#}
|
50
roles/nagios_server/files/nagios/contacts/smooge.cfg
Normal file
50
roles/nagios_server/files/nagios/contacts/smooge.cfg
Normal file
|
@ -0,0 +1,50 @@
|
|||
define contact{
|
||||
contact_name smooge
|
||||
alias Stephen Smoogen
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email smooge+notify@gmail.com
|
||||
}
|
||||
|
||||
define contact{
|
||||
contact_name smooge_xmpp
|
||||
alias Stephen Smoogen
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-xmpp
|
||||
host_notification_commands host-notify-by-xmpp
|
||||
email smooge@gmail.com
|
||||
}
|
||||
|
||||
define contact{
|
||||
contact_name smooge-emergency
|
||||
alias Stephen Smoogen
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email smooge+mobile@gmail.com
|
||||
pager smooge+mobile@gmail.com
|
||||
}
|
||||
|
||||
define contact{
|
||||
contact_name smoogep
|
||||
alias Stephen Smoogen
|
||||
service_notification_period 16x7
|
||||
host_notification_period 16x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-epager
|
||||
host_notification_commands host-notify-by-epager
|
||||
email smooge+mobile@gmail.com
|
||||
pager smooge+mobile@gmail.com
|
||||
}
|
||||
|
13
roles/nagios_server/files/nagios/contacts/sysadmin-qa.cfg
Normal file
13
roles/nagios_server/files/nagios/contacts/sysadmin-qa.cfg
Normal file
|
@ -0,0 +1,13 @@
|
|||
define contact {
|
||||
contact_name sysadmin-qa
|
||||
alias Fedora QA SysAdmins
|
||||
service_notification_period 24x7
|
||||
host_notification_period 24x7
|
||||
service_notification_options w,u,c,r
|
||||
host_notification_options d,u,r
|
||||
service_notification_commands notify-by-email
|
||||
host_notification_commands host-notify-by-email
|
||||
email sysadmin-qa-members@fedoraproject.org
|
||||
}
|
||||
|
||||
|
11
roles/nagios_server/files/nagios/hostgroups/all.cfg
Normal file
11
roles/nagios_server/files/nagios/hostgroups/all.cfg
Normal file
|
@ -0,0 +1,11 @@
|
|||
###############
|
||||
# All Servers and associated devices
|
||||
###############
|
||||
|
||||
# Hosts in telia are defined elsewhere
|
||||
# why its there
|
||||
define hostgroup {
|
||||
hostgroup_name all
|
||||
alias All hosts / Devices
|
||||
members *,!telia01,
|
||||
}
|
5
roles/nagios_server/files/nagios/hostgroups/autoqa.cfg
Normal file
5
roles/nagios_server/files/nagios/hostgroups/autoqa.cfg
Normal file
|
@ -0,0 +1,5 @@
|
|||
define hostgroup {
|
||||
hostgroup_name autoqa
|
||||
alias AutoQA Hosts
|
||||
members autoqa01, autoqa-stg01
|
||||
}
|
9
roles/nagios_server/files/nagios/hostgroups/buildsys.cfg
Normal file
9
roles/nagios_server/files/nagios/hostgroups/buildsys.cfg
Normal file
|
@ -0,0 +1,9 @@
|
|||
###############
|
||||
# Build Servers
|
||||
###############
|
||||
|
||||
#define hostgroup {
|
||||
# hostgroup_name buildservers
|
||||
# alias Build Servers
|
||||
# members x86-01, x86-02, x86-03, x86-04, x86-05, x86-06, x86-07
|
||||
#}
|
5
roles/nagios_server/files/nagios/hostgroups/dns.cfg
Normal file
5
roles/nagios_server/files/nagios/hostgroups/dns.cfg
Normal file
|
@ -0,0 +1,5 @@
|
|||
define hostgroup {
|
||||
hostgroup_name dnsservers
|
||||
alias DNS Servers
|
||||
members ns03
|
||||
}
|
10
roles/nagios_server/files/nagios/hostgroups/euservers.cfg
Normal file
10
roles/nagios_server/files/nagios/hostgroups/euservers.cfg
Normal file
|
@ -0,0 +1,10 @@
|
|||
###############
|
||||
# All Eupropean Servers
|
||||
# 'good' RTT figures adjusted for US->EU
|
||||
###############
|
||||
|
||||
define hostgroup {
|
||||
hostgroup_name euservers
|
||||
alias European Servers
|
||||
members telia01, noc02, noc02
|
||||
}
|
10
roles/nagios_server/files/nagios/hostgroups/fas.cfg
Normal file
10
roles/nagios_server/files/nagios/hostgroups/fas.cfg
Normal file
|
@ -0,0 +1,10 @@
|
|||
###############
|
||||
# FAS Servers (just fas for now)
|
||||
###############
|
||||
|
||||
define hostgroup {
|
||||
hostgroup_name fasservers
|
||||
alias FAS Servers
|
||||
members fas01, fas02, fas03
|
||||
}
|
||||
|
5
roles/nagios_server/files/nagios/hostgroups/hosted.cfg
Normal file
5
roles/nagios_server/files/nagios/hostgroups/hosted.cfg
Normal file
|
@ -0,0 +1,5 @@
|
|||
define hostgroup {
|
||||
hostgroup_name hosted
|
||||
alias Hosted Servers
|
||||
members hosted03,hosted04
|
||||
}
|
9
roles/nagios_server/files/nagios/hostgroups/kvmHosts.cfg
Normal file
9
roles/nagios_server/files/nagios/hostgroups/kvmHosts.cfg
Normal file
|
@ -0,0 +1,9 @@
|
|||
###############
|
||||
# KVM Servers
|
||||
###############
|
||||
|
||||
define hostgroup {
|
||||
hostgroup_name kvmServers
|
||||
alias kvmServers
|
||||
members bvirthost01, bvirthost02, bvirthost03, bvirthost04, bvirthost05, bvirthost07, virthost01, virthost02, virthost03, virthost04, virthost05, virthost06, virthost07, virthost08, virthost09, virthost10, virthost11, virthost12, virthost14, virthost15, virthost-comm01, virthost-comm02, telia01, tummy01, bodhost01, osuosl01, osuosl02, ibiblio01, ibiblio02, ibiblio03, coloamer01, internetx01, serverbeach06, serverbeach07, serverbeach08, serverbeach09, serverbeach10
|
||||
}
|
6
roles/nagios_server/files/nagios/hostgroups/mgmt.cfg
Normal file
6
roles/nagios_server/files/nagios/hostgroups/mgmt.cfg
Normal file
|
@ -0,0 +1,6 @@
|
|||
define hostgroup {
|
||||
hostgroup_name mgmt
|
||||
alias Physical hosts management inerface
|
||||
members backup03-mgmt,bc02-mgmt,bvirthost01-mgmt,bvirthost04-mgmt,bvirthost05-mgmt,bvirthost07-mgmt,download01-mgmt,download02-mgmt,download03-mgmt,download04-mgmt,download05-mgmt,qa01-mgmt,qa02-mgmt,qa03-mgmt,qa04-mgmt,qa05-mgmt,qa06-mgmt,qa07-mgmt,qa08-mgmt,tape02-mgmt,virthost-comm01-mgmt,virthost01-mgmt,virthost02-mgmt,virthost03-mgmt,virthost04-mgmt,virthost05-mgmt,virthost06-mgmt,virthost07-mgmt,virthost08-mgmt,virthost09-mgmt,virthost10-mgmt,virthost11-mgmt,virthost12-mgmt,virthost14-mgmt,virthost15-mgmt,virthost-comm02-mgmt,sign-vault03-mgmt,sign-vault04-mgmt
|
||||
}
|
||||
|
5
roles/nagios_server/files/nagios/hostgroups/nomail.cfg
Normal file
5
roles/nagios_server/files/nagios/hostgroups/nomail.cfg
Normal file
|
@ -0,0 +1,5 @@
|
|||
define hostgroup {
|
||||
hostgroup_name nomail
|
||||
alias No Mail
|
||||
members *, !bastion01, !bastion02, !bastion-vpn, !backup03, !app01.stg, !app02.stg, !db02.stg, !fas01.stg, !koji01.stg, !pkgs01.stg, !proxy01.stg, !releng01.stg, !value01.stg, !smtp-mm-telia01, !smtp-mm-tummy01, !smtp-mm-ib01, !hosted03, !hosted04, !proxy01-fpo, !proxy01-wildcard, !proxy02-fpo, !proxy02-wildcard, !proxy03-fpo, !proxy03-wildcard, !proxy04-fpo, !proxy04-wildcard, !proxy06-fpo, !proxy06-wildcard, !proxy07-fpo, !proxy07-wildcard, !proxy08-fpo, !proxy08-wildcard, !bc02-mgmt, !fwsm01-gw, !backup03-mgmt,!bc02-mgmt,!bvirthost01-mgmt,!bvirthost04-mgmt,!bvirthost05-mgmt,!bvirthost07-mgmt,!download01-mgmt,!download02-mgmt,!download03-mgmt,!download04-mgmt,!download05-mgmt,!qa01-mgmt,!qa02-mgmt,!qa03-mgmt,!qa04-mgmt,!qa05-mgmt,!qa06-mgmt,!qa07-mgmt,!qa08-mgmt,!tape02-mgmt,!virthost-comm01-mgmt,!virthost01-mgmt,!virthost02-mgmt,!virthost03-mgmt,!virthost04-mgmt,!virthost05-mgmt,!virthost06-mgmt,!virthost07-mgmt,!virthost08-mgmt,!virthost09-mgmt,!virthost10-mgmt,!virthost11-mgmt,!virthost12-mgmt,!virthost14-mgmt,!virthost15-mgmt,!autoqa01,!autoqa-stg01,!ibiblio-gw,!packages03,!packages04,!status-fedora2, !virthost-comm02-mgmt,!ppc-hub,!ppc-composer,!retrace01.qa,!sign-vault03,!sign-vault03-mgmt,!sign-vault04,!sign-vault04-mgmt,!proxy09-fpo, !proxy09-wildcard, !arm01-builder00, !arm01-builder01, !arm01-builder02, !arm01-builder03, !arm01-builder04, !arm01-builder05, !arm01-builder06, !arm01-builder07, !arm01-builder08, !arm01-builder09, !arm01-builder10, !arm01-builder11, !arm01-builder12, !arm01-builder13, !arm01-builder14, !arm01-builder15, !arm01-builder16, !arm01-builder17, !arm01-builder18, !arm01-builder19, !arm01-builder20, !arm01-builder21, !arm01-builder22, !arm01-builder23, !arm02-builder00, !arm02-builder01, !arm02-builder02, !arm02-builder03, !arm02-builder04, !arm02-builder05, !arm02-builder06, !arm02-builder07, !arm02-builder08, !arm02-builder09, !arm02-builder10, !arm02-builder11, !arm02-builder12, !arm02-builder13, !arm02-builder14, !arm02-builder15, !arm02-builder16, !arm02-builder17, !arm02-builder18, !arm02-builder19, !arm02-builder20, !arm02-builder21, !arm02-builder22, !arm02-builder23, !buildvm-01, !buildvm-02, !buildvm-03, !buildvm-04, !buildvm-05, !buildvm-06, !buildvm-07, !buildvm-08, !buildvm-09, !buildvm-10, !buildvm-11, !buildvm-12, !buildvm-13, !buildvm-14, !buildvm-15, !buildvm-16, !buildvm-17, !buildvm-18, !buildvm-19, !buildvm-20, !buildvm-21, !buildvm-22, !buildvm-23, !buildvm-24, !buildvm-25, !buildvm-26, !buildvmhost-01, !buildvmhost-02, !buildvmhost-03, !buildvmhost-04, !buildvmhost-05, !buildvmhost-06, !buildvmhost-07, !buildvmhost-08, !buildvmhost-09, !releng01, !imagebuilder
|
||||
}
|
10
roles/nagios_server/files/nagios/hostgroups/phx2app.cfg
Normal file
10
roles/nagios_server/files/nagios/hostgroups/phx2app.cfg
Normal file
|
@ -0,0 +1,10 @@
|
|||
###############
|
||||
# PHX2 App Servers
|
||||
###############
|
||||
|
||||
define hostgroup {
|
||||
hostgroup_name phx2app
|
||||
alias FAS Servers
|
||||
members app01, app02, app03, app04, bapp02
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
define hostgroup {
|
||||
hostgroup_name ppc-secondary
|
||||
alias PPC secondary Hosts
|
||||
members ppc-hub, ppc-composer
|
||||
}
|
9
roles/nagios_server/files/nagios/hostgroups/proxies.cfg
Normal file
9
roles/nagios_server/files/nagios/hostgroups/proxies.cfg
Normal file
|
@ -0,0 +1,9 @@
|
|||
###############
|
||||
# Proxy Servers
|
||||
###############
|
||||
|
||||
define hostgroup {
|
||||
hostgroup_name proxies
|
||||
alias proxies
|
||||
members proxy01, proxy02, proxy03, proxy04, proxy06, proxy07, proxy08, proxy09
|
||||
}
|
9
roles/nagios_server/files/nagios/hostgroups/puppet.cfg
Normal file
9
roles/nagios_server/files/nagios/hostgroups/puppet.cfg
Normal file
|
@ -0,0 +1,9 @@
|
|||
###############
|
||||
# Puppet Servers (just puppet1 for now)
|
||||
###############
|
||||
|
||||
define hostgroup {
|
||||
hostgroup_name puppetservers
|
||||
alias Puppet Servers
|
||||
members lockbox01
|
||||
}
|
5
roles/nagios_server/files/nagios/hostgroups/retrace.cfg
Normal file
5
roles/nagios_server/files/nagios/hostgroups/retrace.cfg
Normal file
|
@ -0,0 +1,5 @@
|
|||
define hostgroup {
|
||||
hostgroup_name retrace
|
||||
alias Retrace Hosts
|
||||
members retrace01.qa
|
||||
}
|
10
roles/nagios_server/files/nagios/hostgroups/servers.cfg
Normal file
10
roles/nagios_server/files/nagios/hostgroups/servers.cfg
Normal file
|
@ -0,0 +1,10 @@
|
|||
###############
|
||||
# All Servers - Minus Builders
|
||||
###############
|
||||
|
||||
define hostgroup {
|
||||
hostgroup_name servers
|
||||
alias All Servers
|
||||
members *, !proxy01-fpo, !proxy01-wildcard, !proxy02-fpo, !proxy02-wildcard, !proxy03-fpo, !proxy03-wildcard, !proxy04-fpo, !proxy04-wildcard, !proxy06-fpo, !proxy06-wildcard, !proxy07-fpo, !proxy07-wildcard, !proxy08-fpo, !proxy08-wildcard, !fwsm01-gw, !backup03-mgmt,!bc02-mgmt,!bvirthost01-mgmt,!bvirthost05-mgmt,!download01-mgmt,!download02-mgmt,!download03-mgmt,!download04-mgmt,!download05-mgmt,!qa01-mgmt,!qa02-mgmt,!qa03-mgmt,!qa04-mgmt,!qa05-mgmt,!qa06-mgmt,!qa07-mgmt,!qa08-mgmt,!tape02-mgmt,!bvirthost04-mgmt, !bvirthost07-mgmt, !virthost-comm01-mgmt,!virthost01-mgmt,!virthost02-mgmt,!virthost03-mgmt,!virthost04-mgmt,!virthost05-mgmt,!virthost06-mgmt,!virthost07-mgmt,!virthost08-mgmt,!virthost09-mgmt,!virthost10-mgmt,!virthost11-mgmt, !virthost12-mgmt, !virthost14-mgmt,!virthost15-mgmt, !autoqa01, !autoqa-stg01, !ibiblio-gw, !status-fedora2,!virthost-comm02-mgmt,!ppc-hub,!ppc-composer,!retrace01.qa,!sign-vault03,!sign-vault03-mgmt,!sign-vault04,!sign-vault04-mgmt,!proxy09-fpo,!proxy09-wildcard, !arm01-builder00, !arm01-builder01, !arm01-builder02, !arm01-builder03, !arm01-builder04, !arm01-builder05, !arm01-builder06, !arm01-builder07, !arm01-builder08, !arm01-builder09, !arm01-builder10, !arm01-builder11, !arm01-builder12, !arm01-builder13, !arm01-builder14, !arm01-builder15, !arm01-builder16, !arm01-builder17, !arm01-builder18, !arm01-builder19, !arm01-builder20, !arm01-builder21, !arm01-builder22, !arm01-builder23, !arm02-builder00, !arm02-builder01, !arm02-builder02, !arm02-builder03, !arm02-builder04, !arm02-builder05, !arm02-builder06, !arm02-builder07, !arm02-builder08, !arm02-builder09, !arm02-builder10, !arm02-builder11, !arm02-builder12, !arm02-builder13, !arm02-builder14, !arm02-builder15, !arm02-builder16, !arm02-builder17, !arm02-builder18, !arm02-builder19, !arm02-builder20, !arm02-builder21, !arm02-builder22, !arm02-builder23, !buildvm-01, !buildvm-02, !buildvm-03, !buildvm-04, !buildvm-05, !buildvm-06, !buildvm-07, !buildvm-08, !buildvm-09, !buildvm-10, !buildvm-11, !buildvm-12, !buildvm-13, !buildvm-14, !buildvm-15, !buildvm-16, !buildvm-17, !buildvm-18, !buildvm-19, !buildvm-20, !buildvm-21, !buildvm-22, !buildvm-23, !buildvm-24, !buildvm-25, !buildvm-26, !buildvmhost-01, !buildvmhost-02, !buildvmhost-03, !buildvmhost-04, !buildvmhost-05, !buildvmhost-06, !buildvmhost-07, !buildvmhost-08, !buildvmhost-09, !releng01, !imagebuilder
|
||||
}
|
||||
|
9
roles/nagios_server/files/nagios/hostgroups/smtp-mm.cfg
Normal file
9
roles/nagios_server/files/nagios/hostgroups/smtp-mm.cfg
Normal file
|
@ -0,0 +1,9 @@
|
|||
###############
|
||||
# Smtp Servers
|
||||
###############
|
||||
|
||||
define hostgroup {
|
||||
hostgroup_name smtp-mm
|
||||
alias smtp-mm
|
||||
members smtp-mm-ib01,smtp-mm-telia01,smtp-mm-tummy01
|
||||
}
|
9
roles/nagios_server/files/nagios/hostgroups/unbound.cfg
Normal file
9
roles/nagios_server/files/nagios/hostgroups/unbound.cfg
Normal file
|
@ -0,0 +1,9 @@
|
|||
###############
|
||||
# Unbound Servers
|
||||
###############
|
||||
|
||||
define hostgroup {
|
||||
hostgroup_name unboundservers
|
||||
alias Unbound Servers
|
||||
members unbound-tummy01, unbound-ib01, unbound-telia01
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue