Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
e0d25e598a | |||
693d088dab | |||
b6919b1e30 | |||
dd77793bda | |||
3a5ef6c05d | |||
e8ed8cf37d | |||
f366b0c566 |
@ -10,5 +10,5 @@
|
||||
- php-mysql
|
||||
- php
|
||||
- libapache2-mod-php
|
||||
# - php-mcrypt
|
||||
- php-mcrypt
|
||||
- python-mysqldb
|
||||
|
@ -15,13 +15,13 @@ define hostgroup {
|
||||
define hostgroup {
|
||||
hostgroup_name debian-servers
|
||||
alias Serveurs distant
|
||||
members s-infra, s-proxy, r-int, r-ext, s-adm, s-test
|
||||
members s-infra, s-proxy, r-int, r-ext, s-adm, s-test, s-itil
|
||||
}
|
||||
|
||||
define hostgroup {
|
||||
hostgroup_name ssh-servers
|
||||
alias acces SSH
|
||||
members s-adm, s-infra, s-proxy, r-int, r-ext, localhost, s-test, gwsio2
|
||||
members s-adm, s-infra, s-proxy, r-int, r-ext, localhost, s-test, gwsio2, s-itil
|
||||
}
|
||||
|
||||
define hostgroup {
|
||||
@ -39,7 +39,7 @@ define hostgroup {
|
||||
define hostgroup {
|
||||
hostgroup_name http-servers
|
||||
alias serveurs-web
|
||||
members localhost
|
||||
members localhost, s-itil
|
||||
}
|
||||
|
||||
#define hostgroup {
|
||||
@ -69,6 +69,6 @@ define hostgroup{
|
||||
define hostgroup{
|
||||
hostgroup_name uptimegrp
|
||||
alias uptimegrp
|
||||
members s-infra, s-proxy, r-int, r-ext, s-adm, s-test
|
||||
members s-infra, s-proxy, r-int, r-ext, s-adm, s-test, s-itil
|
||||
}
|
||||
|
||||
|
14
roles/icinga/files/cfg/s-itil.cfg
Normal file
14
roles/icinga/files/cfg/s-itil.cfg
Normal file
@ -0,0 +1,14 @@
|
||||
# A simple configuration file for monitoring the local host
|
||||
# This can serve as an example for configuring other servers;
|
||||
# Custom services specific to this host are added here, but services
|
||||
# defined in nagios2-common_services.cfg may also apply.
|
||||
#
|
||||
|
||||
define host{
|
||||
use generic-host ; Name of host template to use
|
||||
host_name s-itil
|
||||
alias debian-servers
|
||||
address 172.16.0.9
|
||||
parents r-int
|
||||
}
|
||||
|
40
roles/postfix/README.md
Normal file
40
roles/postfix/README.md
Normal file
@ -0,0 +1,40 @@
|
||||
# Post-installation de Postfix
|
||||
|
||||
Entrer votre adresse mail et votre mot de passe dans le fichier /etc/postfix/sasl_passwd
|
||||
|
||||
```
|
||||
|
||||
nano /etc/postfix/sasl_passwd
|
||||
|
||||
[smpt.gmail.com]:587 votreadresse@domaine.fr:motdepasse
|
||||
|
||||
```
|
||||
|
||||
Entrer votre addresse mail dans le fichier /etc/icinga/objects/contacts_icinga.cfg
|
||||
|
||||
```
|
||||
|
||||
nano /etc/icinga/objects/contacts_icinga.cfg
|
||||
|
||||
define contact...
|
||||
|
||||
email votreadresse@domaine.fr
|
||||
|
||||
```
|
||||
Lancer la commande suivante pour prendre en compte la modification:
|
||||
|
||||
```
|
||||
|
||||
/usr/sbin/postmap /etc/postfix/sasl_passwd
|
||||
|
||||
```
|
||||
|
||||
Activer l'**Accès moins sécurisé des applications** depuis son compte google
|
||||
|
||||
Désactiver un service puis vérifier ses mails (attendre 5 minutes entre chaque test)
|
||||
|
||||
```
|
||||
|
||||
tail -f /var/log/icinga/icinga.log pour vérifier l'envoi de l'email
|
||||
|
||||
```
|
@ -3,9 +3,6 @@
|
||||
connection: local
|
||||
|
||||
roles:
|
||||
- apache2
|
||||
- php-fpm
|
||||
- mysql
|
||||
- base
|
||||
- s-lb-web-ab
|
||||
- snmp-agent
|
||||
|
@ -3,9 +3,6 @@
|
||||
connection: local
|
||||
|
||||
roles:
|
||||
- apache2
|
||||
- php-fpm
|
||||
- mysql
|
||||
- base
|
||||
- s-lb-web-ab
|
||||
- snmp-agent
|
||||
|
Reference in New Issue
Block a user