Modules:PHPWeatherMap

From Wiki Centreon

Jump to: navigation, search

This Page is completely designed for PHPWeatherMap Module For Oreon.

Contents

PHPWeatherMap

This program gives you a quite real-time status of your network load, displayed on a map.

You can download it here : http://www.network-weathermap.com/

Last stable version is 0.9 (infos 23/04/2007)

Installation

Download PHPWeatherMap and uncompress the file.

wget http://www.network-weathermap.com/files/php-weathermap-0.9.zip
unzip php-weathermap-0.9.zip

Move it to the directory of your choice

exemple :

sudo mv php-weathermap-0.9 /usr/local/weathermap

and give assign those files to apache user and write access as :

cd /usr/local/weathermap/
sudo chown -R apache:apache *
sudo chmod u+w ./configs
sudo mv editor-config.php-dist editor-config.php

PHPWeatherMap configuration for Apache server (sample for Fedora) :

cd /etc/httpd/conf.d/
sudo vi weathermap.conf

Paste the following sample configuration in this file :

# php-weathermap-0.9
# PHP-WEATHERMAP : A php writen network weathermap graphing tool
#
Alias /weathermap    /usr/local/weathermap 

<Directory /usr/local/weathermap/>
        Order Deny,Allow
        Deny from all
#       Allow from (ip address allowed) (take care, you must remove # to make this line readable)
        Allow from 127.0.0.1
</Directory>

Restart your Apache server :

sudo /etc/init.d/httpd restart

Open your favorit web browser and go to the folowing address :

http://your_server_name/weathermap/editor.php
or http://localhost/weathermap/editor.php

Let's build your map !!

/!\ WARNING (extract from PHPWeatherMap doc) /!\

Important Security Note: The editor allows anyone who can access editor.php to change the configuration files for your network weathermaps. There is no authentication built-in for editing, even with the Cacti Plugin. This is why the configuration file doesn't exist by default - the editor won't work until you choose to make it work. It's recommended that you either:

  • change the ownership of configuration files so that the editor can't write to them once they are complete, or
  • use your webserver's authentication and access control facilities to limit who can access the editor.php URL.

It's anticipated that a future version of Weathermap will include better integration with Cacti authentication for users of the Cacti Plugin version of this editor.

(end of extract)

Remarks :

A lot of codewords are available and not yet usable from the editor. I sugest to use the editor to put your servers, routers... in the good position and then edit the file to put the finishing touches.

Integration in Centreon

This part is writen by a French user who have an bad english, so fix me ! This procedure was been tested with a Debian Etch, Nagios 2.10, Centreon 1.4.2.4, WeatherMap 1.2.3

1. Go to the modules directory of Centreon :
cd /usr/local/centreon/www/modules/

2. Download the module PHPWeatherMap :
wget http://download.oreon-project.org/index.php?id=72

3. Uncompress it :
tar -xzvf module-PHP-WeatherMap-1.2.3.tar.gz

4. Install it :
cd module-PHP-WeatherMap-1.2.3 ./install

5. Go to the Web Interface of Centreon. In Options/Modules, you can click on php-weathermap Next, click on Install

6. Now in Oreon view you have PHP-Weathermap. (If you have UNDEF you must logout to update the web interface).


Configuration in Centreon

This part is writen by a French user who has a bad english, so fix me !

This procedure has been tested with a Debian Etch, Nagios 2.10, Centreon 1.4.2.4, WeatherMap 1.2.3

1. Go to "Vues Oreon - PHPWeathermap"

2. Next : "Configuration - Ajouter"

3. Click on the name of the map (in the Configuration part)

4. Click on "Ajouter Node" and Click on the map to create a Node.

5. Configure your Map with the different options.

6. Click on "Generation" in the left menu.

7. Click to "Liste" in the left menu.

Normally you have an image in "Liste".

Personal tools