Extension:NagVis

NagVis is an extension for add NagVis maps to MediaWiki pages. Icons map will be updated automatically and status will be pull from Nagios/NagVis servers. NagVis is a visualization addon for the well known network management system Nagios.

Installation

 * 1) Download the extension (tgz) or (zip).
 * 2) Upload NagVis directory to your extensions directory from the root of your MediaWiki installation.
 * 3) Add   to your LocalSettings.php file (near the end).
 * 4) Done

Usage
To insert a NagVis map add the tag on any page (only one tag per wiki page):

 Header map title 

Tag attributes
The following arguments (tag attributes) can be used to control &lt;NagVis&gt; tags:


 * showheader (yes/no): Show header with time to refesh map, links to NagVis map and Nagios server.
 * urlnagvis: NagVis url (Extension will check if it's a correct NagVis site)
 * map:       Map name in NagVis

Example
 Sistema de Videoconferencia 

Disable authentication

 * Important: Before making changes you must read Apache, Nagios and NagVis websites, about security risks and recomendations.

MediaWiki must be able to pull status without user authentication so you must change your webserver setup. There are several solutions and your configuration could be different depending on your security needs.

Configuration example for Nagios Web Server
Modify nagios.conf for apache (ex: Debians servers: /etc/apache2/conf.d/nagios.conf) in all your NagVis servers:

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"  Options ExecCGI AllowOverride All Order allow,deny AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users Require valid-user Allow from MediaWiki_Server_IP SetEnv REMOTE_USER nagiosadmin Satisfy Any  Alias /nagios "/usr/local/nagios/share"  Options None AllowOverride All Order allow,deny AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users Require valid-user Allow from MediaWiki_Server_IP SetEnv REMOTE_USER nagiosadmin Satisfy Any 


 * MediaWiki_Server_IP: ip address of your MediaWiki Server

Screenshots (Examples)

 * NagVis tag with argument showheader=yes:


 * NagVis tag with argument showheader=no


 * When you move the mouse over icons in the maps you get data from Nagios/NagVis server: