From 01b41a6dd7c115764509b2036f2a8f28449f3efa Mon Sep 17 00:00:00 2001 From: root Date: Wed, 27 Jan 2021 11:51:17 +0100 Subject: [PATCH] Ajout des machines s-mess et s-lb --- roles/icinga/files/hostgroups_icinga.cfg | 75 ++++++++++++++++++++++++ roles/icinga/files/s-lb.cfg | 14 +++++ roles/icinga/files/s-mess.cfg | 14 +++++ 3 files changed, 103 insertions(+) create mode 100644 roles/icinga/files/hostgroups_icinga.cfg create mode 100644 roles/icinga/files/s-lb.cfg create mode 100644 roles/icinga/files/s-mess.cfg diff --git a/roles/icinga/files/hostgroups_icinga.cfg b/roles/icinga/files/hostgroups_icinga.cfg new file mode 100644 index 0000000..c202b20 --- /dev/null +++ b/roles/icinga/files/hostgroups_icinga.cfg @@ -0,0 +1,75 @@ +# Some generic hostgroup definitions + +define hostgroup { + hostgroup_name all + alias All Servers + members * + } + +define hostgroup { + hostgroup_name localhost + alias Debian GNU/Linux Servers + members localhost + } + +define hostgroup { + hostgroup_name debian-servers + alias Serveurs distant + members s-infra, s-proxy, r-int, r-ext, s-adm, s-itil, s-mess +} + +define hostgroup {  + hostgroup_name ssh-servers + alias acces SSH + members s-adm, s-infra, s-proxy, r-int, r-ext, localhost, gwsio2, s-itil, s-mess, s-lb +} + +define hostgroup {  + hostgroup_name dns-servers + alias serveurs-dns + members s-infra, srv-2012 +} + +define hostgroup {  + hostgroup_name dhcp-servers + alias serveurs-dhcp + members r-int, srv-2012 +} + +define hostgroup { + hostgroup_name http-servers + alias serveurs-web + members localhost, s-itil, s-adm + } + +#define hostgroup { +# hostgroup_name email-servers +# alias serveurs-email +# members s-mess +# } + +define hostgroup {  + hostgroup_name proxy-servers + alias serveurs-proxy + members s-proxy +} + +define hostgroup{ + hostgroup_name windows-servers + alias windows-servers + members srv-2012 +} + +#define hostgroup{ +# hostgroup_name switch +# alias switch +# members netgear +#} + +define hostgroup{ + hostgroup_name uptimegrp + alias uptimegrp + members s-infra, s-proxy, r-int, r-ext, s-adm, s-itil, s-mess, s-lb +} + + diff --git a/roles/icinga/files/s-lb.cfg b/roles/icinga/files/s-lb.cfg new file mode 100644 index 0000000..5754f25 --- /dev/null +++ b/roles/icinga/files/s-lb.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$ + host_name s-lb + alias debian-servers + address 192.168.100.10 + parents r-int + } + diff --git a/roles/icinga/files/s-mess.cfg b/roles/icinga/files/s-mess.cfg new file mode 100644 index 0000000..79df415 --- /dev/null +++ b/roles/icinga/files/s-mess.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$ + host_name s-mess + alias nextcloud + address 172.16.0.7 + parents r-int + } +