From af6a3470c48f704bbeb8eb98e6d88cc9fc19cccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Fri, 2 Mar 2018 14:39:53 +0100 Subject: [PATCH] Forgot to add templates dir --- templates/etc/xymon/hosts.cfg.j2 | 25 +++++++++++++++++++++++ templates/etc/xymon/hosts.d/common.cfg.j2 | 6 ++++++ 2 files changed, 31 insertions(+) create mode 100644 templates/etc/xymon/hosts.cfg.j2 create mode 100644 templates/etc/xymon/hosts.d/common.cfg.j2 diff --git a/templates/etc/xymon/hosts.cfg.j2 b/templates/etc/xymon/hosts.cfg.j2 new file mode 100644 index 0000000..5db9407 --- /dev/null +++ b/templates/etc/xymon/hosts.cfg.j2 @@ -0,0 +1,25 @@ +# {{ ansible_managed }} +# +# Master configuration file for Xymon +# +# This file defines several things: +# +# 1) By adding hosts to this file, you define hosts that are monitored by Xymon +# 2) By adding "page", "subpage", "group" definitions, you define the layout +# of the Xymon webpages, and how hosts are divided among the various webpages +# that Xymon generates. +# 3) Several other definitions can be done for each host, see the hosts.cfg(5) +# man-page. +# +# You need to define at least the Xymon server itself here. + +#0.0.0.0 .default. # NOPROPRED:+apt,+libs + +#group Servers +127.0.0.1 {{ ansible_fqdn }} # bbd https://{{ ansible_fqdn }}/ + +#page common Common + +#group-except sslcert|bbd|xymond|xymongen|xymonnet|xymonproxy Test⏎ +#include hosts.d/common.cfg⏎ + diff --git a/templates/etc/xymon/hosts.d/common.cfg.j2 b/templates/etc/xymon/hosts.d/common.cfg.j2 new file mode 100644 index 0000000..b3fa2a3 --- /dev/null +++ b/templates/etc/xymon/hosts.d/common.cfg.j2 @@ -0,0 +1,6 @@ +# {{ ansible_managed }} + +#192.168.0.1 www.{{ ansible_domain }} # apt libs SSH apache https://www.{{ ansible_domain }} +#192.168.0.2 pxe.{{ ansible_domain }} # apt libs SSH DESCR:PXE CLIENT:deploy + +#192.168.0.254 switch.{{ ansible_domain }} # -apt -libs SSH