Icinga / icingaweb2

A lightweight and extensible web interface to keep an eye on your environment. Analyse problems and act on them.
https://icinga.com/get-started/
GNU General Public License v2.0
809 stars 282 forks source link

[dev.icinga.com #9648] Document how to integrate Web 2 into NagVis #1841

Closed icinga-migration closed 7 years ago

icinga-migration commented 9 years ago

This issue has been migrated from Redmine: https://dev.icinga.com/issues/9648

Created by elippmann on 2015-07-16 09:45:21 +00:00

Assignee: (none) Status: New Target Version: (none) Last Update: 2015-07-23 11:25:46 +00:00 (in Redmine)


NagVis configuration (untested):

[paths]
...
htmlcgi="/icingaweb2/monitoring“

[defaults]
...
urltarget="_parent"
hosturl="[htmlcgi]/host/show?host=[host_name]"
hostgroupurl="[htmlcgi]/list/hosts?hostgroup=[hostgroup_name]"
serviceurl="[htmlcgi]/service/show?host=[host_name]&service=[service_description]"
servicegroupurl="[htmlcgi]/list/services?servicegroup=[servicegroup_name]"

Parent Task: #7153

icinga-migration commented 9 years ago

Updated by essener61 on 2015-07-23 11:25:46 +00:00

the displayed configuration works fine. We have installed Nagvis and Icingaweb2 on one server and icinga2 on a sepeated server.

on Iicnga2 we use Livestatus and TCP.

Our fine Working nagvis config :

[global] file_group="www-data" geomap_server="http://geomap.nagvis.org/" language="de_DE" language="de_DE" [paths] base="/usr/share/nagvis/" htmlcgi="/icingaweb2/monitoring" htmlbase="/nagvis" [defaults] urltarget="_parent" hosturl="[htmlcgi]/host/show?host=[host_name]" hostgroupurl="[htmlcgi]/list/hosts?hostgroup=[hostgroup_name]" serviceurl="[htmlcgi]/service/show?host=[host_name]&service=[service_description]" servicegroupurl="[htmlcgi]/list/services?servicegroup=[servicegroup_name]" backend="live_1" [index] [automap] [wui] [worker] [backend_live_1] backendtype="mklivestatus" socket="tcp:xxx.xxx.xxx.xxx:6558" [backend_ndomy_1] backendtype="ndomy" [rotation_demo] maps="demo-germany,demo-ham-racks,demo-load,demo-muc-srv1,demo-geomap,demo-automap" [states]

the livestatus.conf

/****

library "livestatus"

object LivestatusListener "livestatus-tcp" { socket_type = "tcp" bind_host = "0.0.0.0" bind_port = "6558" }

object LivestatusListener "livestatus-unix" { socket_type = "unix" socket_path = "/var/run/icinga2/cmd/livestatus" }

nagvis is intsalled as :

./install.sh -n /usr/share/icingaweb2 -p /usr/share/nagvis -l "tcp:xxx.xxx.xxx.xxx:6558" -b mklivestatus -u www-data -g www-data -w /etc/apache

lippserd commented 7 years ago

This should be part of the Icinga Web2 NagVis module. I close this one.