From 4b48f80fb279035c6045bd8bdddceb42dacd1fab Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 1 Jun 2023 14:22:45 +0200 Subject: [PATCH] s-webcom ok juste gsbstart bricole a faire --- pre/pull-config | 2 +- pull-config | 2 +- roles/nagios/files/cfg/s-webcom.cfg | 14 ++++++++++++++ roles/nagios/files/hostgroups.cfg | 4 ++-- 4 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 roles/nagios/files/cfg/s-webcom.cfg diff --git a/pre/pull-config b/pre/pull-config index 88959fe..ba34dc6 100644 --- a/pre/pull-config +++ b/pre/pull-config @@ -5,7 +5,7 @@ prj=gsb2023 opt="" 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 dir=/root/tools/ansible diff --git a/pull-config b/pull-config index 59c15b6..478bf92 100644 --- a/pull-config +++ b/pull-config @@ -1,7 +1,7 @@ #!/bin/bash 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 dir=/root/tools/ansible diff --git a/roles/nagios/files/cfg/s-webcom.cfg b/roles/nagios/files/cfg/s-webcom.cfg new file mode 100644 index 0000000..f0a3288 --- /dev/null +++ b/roles/nagios/files/cfg/s-webcom.cfg @@ -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 + } + diff --git a/roles/nagios/files/hostgroups.cfg b/roles/nagios/files/hostgroups.cfg index 28dd996..d8f2b3e 100644 --- a/roles/nagios/files/hostgroups.cfg +++ b/roles/nagios/files/hostgroups.cfg @@ -2,7 +2,7 @@ define hostgroup { hostgroup_name debian-servers ; The name of the hostgroup 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 { @@ -14,7 +14,7 @@ define hostgroup { define hostgroup { hostgroup_name http-servers alias Serveurs web - members s-itil + members s-itil, s-webcom } define hostgroup {