From e0d25e598a0866e0b5faf617744549bf74ccbc7b Mon Sep 17 00:00:00 2001 From: root Date: Tue, 19 Jan 2021 15:11:46 +0100 Subject: [PATCH] ajout de la machine s-itil --- roles/icinga/files/cfg/hostgroups_icinga.cfg | 8 ++++---- roles/icinga/files/cfg/s-itil.cfg | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 roles/icinga/files/cfg/s-itil.cfg diff --git a/roles/icinga/files/cfg/hostgroups_icinga.cfg b/roles/icinga/files/cfg/hostgroups_icinga.cfg index 621646b..59a9a7c 100644 --- a/roles/icinga/files/cfg/hostgroups_icinga.cfg +++ b/roles/icinga/files/cfg/hostgroups_icinga.cfg @@ -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 } diff --git a/roles/icinga/files/cfg/s-itil.cfg b/roles/icinga/files/cfg/s-itil.cfg new file mode 100644 index 0000000..8f34e2e --- /dev/null +++ b/roles/icinga/files/cfg/s-itil.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 generic-host ; Name of host template to use + host_name s-itil + alias debian-servers + address 172.16.0.9 + parents r-int + } +