forked from gadmin/gsb2023
Compare commits
2 Commits
v0.0.7s-aa
...
v0.0.7u-aa
Author | SHA1 | Date | |
---|---|---|---|
b24ffddff7 | |||
4b48f80fb2 |
24
goss/s-webcom.yaml
Normal file
24
goss/s-webcom.yaml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
package:
|
||||||
|
apache2:
|
||||||
|
installed: true
|
||||||
|
addr:
|
||||||
|
tcp://depl.sio.lan:80:
|
||||||
|
reachable: true
|
||||||
|
timeout: 500
|
||||||
|
port:
|
||||||
|
tcp:80:
|
||||||
|
listening: true
|
||||||
|
service:
|
||||||
|
apache2:
|
||||||
|
dns:
|
||||||
|
depl.sio.lan:
|
||||||
|
resolveable: true
|
||||||
|
timeout: 500
|
||||||
|
process:
|
||||||
|
apache2:
|
||||||
|
running: true
|
||||||
|
interface:
|
||||||
|
enp0s8:
|
||||||
|
exists: true
|
||||||
|
addrs:
|
||||||
|
- 172.16.0.12/24
|
@@ -5,7 +5,7 @@ prj=gsb2023
|
|||||||
opt=""
|
opt=""
|
||||||
|
|
||||||
if [ -z ${UREP+x} ]; then
|
if [ -z ${UREP+x} ]; then
|
||||||
UREP=https://gitea.lyc-lecastel.fr/gadmin/gsb2023.git
|
UREP=https://gitea.lyc-lecastel.fr/anthony.arnoux/gsb2023.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dir=/root/tools/ansible
|
dir=/root/tools/ansible
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ -z ${UREP+x} ]; then
|
if [ -z ${UREP+x} ]; then
|
||||||
UREP=https://gitea.lyc-lecastel.fr/gadmin/gsb2023.git
|
UREP=https://gitea.lyc-lecastel.fr/anthony.arnoux/gsb2023.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dir=/root/tools/ansible
|
dir=/root/tools/ansible
|
||||||
|
14
roles/nagios/files/cfg/s-webcom.cfg
Normal file
14
roles/nagios/files/cfg/s-webcom.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 linux-server ; Name of host template to use
|
||||||
|
host_name s-webcom
|
||||||
|
alias debian-servers, http-servers
|
||||||
|
address 172.16.0.12
|
||||||
|
parents r-int
|
||||||
|
}
|
||||||
|
|
@@ -2,7 +2,7 @@ define hostgroup {
|
|||||||
|
|
||||||
hostgroup_name debian-servers ; The name of the hostgroup
|
hostgroup_name debian-servers ; The name of the hostgroup
|
||||||
alias Linux Servers ; Long name of the group
|
alias Linux Servers ; Long name of the group
|
||||||
members s-infra, s-proxy, s-adm, s-nxc, s-appli, s-backup, s-itil, s-fog, r-int, r-ext ; Comma separated list of hosts that belong to this group
|
members s-infra, s-proxy, s-adm, s-nxc, s-appli, s-backup, s-itil, s-fog, r-int, r-ext, s-webcom ; Comma separated list of hosts that belong to this group
|
||||||
}
|
}
|
||||||
|
|
||||||
define hostgroup {
|
define hostgroup {
|
||||||
@@ -14,7 +14,7 @@ define hostgroup {
|
|||||||
define hostgroup {
|
define hostgroup {
|
||||||
hostgroup_name http-servers
|
hostgroup_name http-servers
|
||||||
alias Serveurs web
|
alias Serveurs web
|
||||||
members s-itil
|
members s-itil, s-webcom
|
||||||
}
|
}
|
||||||
|
|
||||||
define hostgroup {
|
define hostgroup {
|
||||||
|
Reference in New Issue
Block a user