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 Nagios/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, Authorized_Users_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, Authorized_Users_IP SetEnv REMOTE_USER nagiosadmin Satisfy Any 

Allow From:
 * MediaWiki_Server_IP : IP address of your MediaWiki Server
 * Authorized_Users_IP : IP address of users who connect to Nagios/NagVis without password

IP's not included in Allow from  should introduce an authorized (Nagios/NagVis) user for pages with NagVis Tag

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:

Versions
Download

1.04:
 * Tested on:


 * Mediawiki: 1.7, 1.13, 1.14
 * NagVis:   1.4.5, 1.4.4, 1.4.3, 1.4.2, 1.4.1, 1.4rc1, 1.4rc2, 1.4rc3, 1.3.2, 1.3.2rc3

1.02:
 * Tested on:


 * Mediawiki: 1.7, 1.13
 * NagVis:   1.3.2, 1.3.2rc3

1.0:


 * Tested on:


 * Mediawiki: 1.7 and 1.13
 * NagVis: 1.3rc3

If you test other versions, please send an email to felipe@gestiononline.net