[icinga-checkins] icinga.org: icinga-vagrant/master: icinga2x: Add a small NagVis map playground (not yet finished)

git at icinga.org git at icinga.org
Sat Jun 25 12:11:08 CEST 2016


Module: icinga-vagrant
Branch: master
Commit: 29e3f7630756ee835e5400684978e49b4457017d
URL:    https://git.icinga.org/?p=icinga-vagrant.git;a=commit;h=29e3f7630756ee835e5400684978e49b4457017d

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Sat Jun 25 12:10:52 2016 +0200

icinga2x: Add a small NagVis map playground (not yet finished)

---

 .../files/usr/local/nagvis/etc/maps/icinga2.cfg     |   19 +++++++++++++++++++
 icinga2x/manifests/default.pp                       |    7 +++++++
 2 files changed, 26 insertions(+)

diff --git a/icinga2x/files/usr/local/nagvis/etc/maps/icinga2.cfg b/icinga2x/files/usr/local/nagvis/etc/maps/icinga2.cfg
new file mode 100644
index 0000000..4aae23e
--- /dev/null
+++ b/icinga2x/files/usr/local/nagvis/etc/maps/icinga2.cfg
@@ -0,0 +1,19 @@
+define global {
+object_id=0
+alias=Icinga 2
+}
+
+define hostgroup {
+object_id=1dd76b
+hostgroup_name=linux-servers
+x=100
+y=100
+}
+
+define hostgroup {
+object_id=41790e
+hostgroup_name=windows-servers
+x=200
+y=100
+}
+
diff --git a/icinga2x/manifests/default.pp b/icinga2x/manifests/default.pp
index 6e1d8b4..2cd0902 100644
--- a/icinga2x/manifests/default.pp
+++ b/icinga2x/manifests/default.pp
@@ -324,6 +324,13 @@ file { 'nagvis-core-functions-index.php':
   require => Class['nagvis']
 }
 
+file { 'nagvis-map-icinga2':
+  ensure  => 'present',
+  path    => '/usr/local/nagvis/etc/maps/icinga2.cfg',
+  source  => 'puppet:////vagrant/files/usr/local/nagvis/etc/maps/icinga2.cfg',
+  mode    => '644',
+  require => Class['nagvis']
+}
 ####################################
 # Director
 ####################################



More information about the icinga-checkins mailing list