ajout
This commit is contained in:
parent
f52c6390ab
commit
df57eff86d
51
sio2/sisr2/30-Supervision/nagios/contacts.cfg
Normal file
51
sio2/sisr2/30-Supervision/nagios/contacts.cfg
Normal file
@ -0,0 +1,51 @@
|
||||
###############################################################################
|
||||
# CONTACTS.CFG - SAMPLE CONTACT/CONTACTGROUP DEFINITIONS
|
||||
#
|
||||
#
|
||||
# NOTES: This config file provides you with some example contact and contact
|
||||
# group definitions that you can reference in host and service
|
||||
# definitions.
|
||||
#
|
||||
# You don't need to keep these definitions in a separate file from your
|
||||
# other object definitions. This has been done just to make things
|
||||
# easier to understand.
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# CONTACTS
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
# Just one contact defined by default - the Nagios admin (that's you)
|
||||
# This contact definition inherits a lot of default values from the
|
||||
# 'generic-contact' template which is defined elsewhere.
|
||||
|
||||
define contact {
|
||||
|
||||
contact_name nagiosadmin ; Short name of user
|
||||
use generic-contact ; Inherit default values from generic-contact template (defined above)
|
||||
alias Nagios Admin ; Full name of user
|
||||
email nagios@localhost ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
|
||||
}
|
||||
|
||||
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# 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 nagiosadmin
|
||||
}
|
28
sio2/sisr2/30-Supervision/nagios/nagios4-cgi.conf
Normal file
28
sio2/sisr2/30-Supervision/nagios/nagios4-cgi.conf
Normal file
@ -0,0 +1,28 @@
|
||||
ScriptAlias /cgi-bin/nagios4 /usr/lib/cgi-bin/nagios4
|
||||
ScriptAlias /nagios4/cgi-bin /usr/lib/cgi-bin/nagios4
|
||||
|
||||
Alias /nagios4/stylesheets /etc/nagios4/stylesheets
|
||||
|
||||
Alias /nagios4 /usr/share/nagios4/htdocs
|
||||
|
||||
<DirectoryMatch (/usr/share/nagios4/htdocs|/usr/lib/cgi-bin/nagios4|/etc/nagios4/stylesheets)>
|
||||
Options FollowSymLinks
|
||||
DirectoryIndex index.php index.html
|
||||
AllowOverride AuthConfig
|
||||
AuthDigestDomain "nagios4"
|
||||
AuthDigestProvider file
|
||||
AuthUserFile "/etc/nagios4/htdigest.users"
|
||||
AuthGroupFile "/etc/group"
|
||||
AuthName "Restricted Nagios4 Access"
|
||||
AuthType Digest
|
||||
Require valid-user
|
||||
</DirectoryMatch>
|
||||
|
||||
<Directory /usr/share/nagios4/htdocs>
|
||||
Options +ExecCGI
|
||||
</Directory>
|
||||
|
||||
<Directory /usr/lib/cgi-bin/nagios4>
|
||||
Options +ExecCGI
|
||||
AddHandler cgi-script .cgi
|
||||
</Directory>
|
Loading…
x
Reference in New Issue
Block a user