Extension:NagiosStatus

NagiosStatus is a MediaWiki extension allows the wiki server to pull the status page, the host summary, or the service summary from your Nagios server. This extension was designed so that the Nagios server could be located on a remote server.

Stay tuned as I may add additional views from Nagios to MediaWiki. (Add to WatchList)

Note: Most up to date version of this extension can be found at: http://www.chekmate.org/wiki/index.php/Projects

Change History

 * 02:59, 27 July 2006 (UTC) - Added &lt;span class="plainlinks"> so that Pad Locks are not displayed. (Smcnaught)
 * 23:46, 24 July 2006 (MDT) - NagiosStatus.php published (Smcnaught)

Maintainer
Shannon McNaught (smcnaught) - I am also available on irc.chekmate.org #MediaWiki

Homepage
ChekMate Technical Focus Group

License
NagiosStatus.php - Adds Nagios views to MediaWiki

Copyright (C) 2006 Shannon McNaught

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Define NagiosStatus variables
Modify the following two variables:

// ###### DEFINE VARIABLES TO Nagios Server ###### # Root URL $Nagios_Web_Server = "http://YourNagiosServerHostName/"; # Nagios CGI-BIN Directory $Nagios_CGI_URL = "http://YourNagiosServerHostName/nagios/cgi-bin/";

HTTPS has been tested as well and works. Although one user has reported issues with HTTPS.

Add to LocalSettings.php
Add the following to the end of LocalSettings.php:

Configure Nagios's Web Server
The Wiki server must be able to pull the status page without any user authentication. This can be accomplished with apache by using "Allow from" and the "Satisfy Any" commands.

In my configuration, it is: (Note: Your configuration will likely be different)

ScriptAlias /nagios/cgi-bin "/usr/local/groundwork/apache2/cgi-bin/nagios"  Allow from (IP Address of Wiki Server) Satisfy Any AuthType Basic require valid-user TKTAuthLoginURL http://NagiosServerIPAddress/monitor/login.php TKTAuthCookieName      nagios_auth_tkt PassEnv LD_LIBRARY_PATH 

Modify /skins/monobook/main.css
Comment out backgound in the table style:

Usage
Add one of the three following to your wiki pages:

&lt;NagiosStatus>status&lt;/NagiosStatus>



&lt;NagiosStatus>hosts&lt;/NagiosStatus>



&lt;NagiosStatus>services&lt;/NagiosStatus>



Other sites using this extension

 * ChekMate Technical Focus Group