network map

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
fanu
Posts: 18
Joined: Thu Oct 07, 2004 2:53 pm
Location: Paris, France

Post by fanu »

Hi everybody,

I'm actually in Martinique (French Carribean Island) for my work, so I can't really post often in this forum.

I have worked a little on the module, now the colors of the arrows are ok (see the attachement).

I'm coming back to France next week, so I will work very hard to release the first beta next week.

Some people send me PMs, they will be informed first when the beta will be released.

Thanks a lot for,

François.
Attachments
New screenshot
New screenshot
test_map_2.png (74.78 KiB) Viewed 21516 times
TPC
Posts: 29
Joined: Wed Oct 06, 2004 12:14 pm

Post by TPC »

How is the beta coming along ? :D
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Strasbourg is a very nice place. Hope to visit there again on work some day.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
mikedrons

I can help test

Post by mikedrons »

Are you still looking for testing? I would be interested in testing. My network is much larger. Over 300 devices.

Mike
Guest

Post by Guest »

Hello,

I have been very silent these days, I'm sorry but I have a lot of work.
I am working now to release a first beta for everybody.

I will post tomorrow to give you informations about it.

Bybye,

François.
Psy

Question

Post by Psy »

Does someone know with which netwaok management application the following output was generated: http://support.free.fr/reseau/carte_reseau.html ?? It looks very interesting for me.

with best Regards
Psy
stelaras1
Cacti User
Posts: 57
Joined: Wed Nov 03, 2004 10:11 am

Post by stelaras1 »

fanu

That sounds very intersting project..

keep up the good work and thanx foy your time :)
User avatar
dev2dev
Cacti User
Posts: 60
Joined: Thu Nov 18, 2004 5:25 am
Location: Hyderabad, India
Contact:

Post by dev2dev »

great job
eagerly waiting for the release
Why me lord?
User avatar
Morgan
Cacti User
Posts: 187
Joined: Wed Feb 25, 2004 3:38 am

Post by Morgan »

i'm up to test this when ur ready fabu
Guest

Post by Guest »

great work, fadu!.. i would like to test it too..
joselo
Posts: 1
Joined: Mon Dec 06, 2004 12:00 pm

Post by joselo »

the last message was mine..... sorry... forgot to login
rama
Posts: 7
Joined: Wed Dec 15, 2004 5:13 am

Cacti2weathermap script

Post by rama »

Hi all,

just finished a small script to create weatermap html complient files from .rrd files used by cacti. The idea was to have a script that doesn't need to patch cacti nor weathermap.
I'm not a PERL guru so programming may seems dirty, but it does the work.
cacti2weathermap.pl, just extract cuin an cuout from the rrd files and put these two line in an html as weatermap needs only these informations to work.
Change the directory informations to match your paths, run cacti2weathermap.pl.
it should create html files same name than the cacti .rrd files with wea_ prefix.

Code: Select all

############## wea_my_router.html
<html>
<body>
my_router.rrd
<!-- cuin d 148810 -->
<!-- cuout d 106436 -->
</body>
</html>
##############

Tell weathermap to use these html file, and here you go :)

The script:

Code: Select all

############# cacti2weatermap.pl ###########
#!/usr/bin/perl

use RRDs;

#Path to rrd files
$my_dir = "/var/www/cacti/rra/";

#Path to store weathermap compatible files
$my_htmldir = "/var/www/cacti/graphs/";

opendir RRDDIR, $my_dir or die "Impossible to open file: $!";
@rrd_files = grep /rrd/, readdir RRDDIR;

foreach my $router (@rrd_files){
        #Get the last cuin/cuout values
        my ($start,$step,$names,$data) = RRDs::fetch $my_dir.$router,"AVERAGE","--start","now";
        foreach my $line (@$data) {
            if(@$line[0] != null) {
                (my $name, my $ext)  = split /rrd/,$router;
                $weatherfile = $my_htmldir."weatherm/wea_".$name."html";
                #Open special html weathermap file
                open OUT,">$weatherfile" or die "bad luck: $!";
                print OUT "<html>\n<body>\n$router\n";
                $nice = sprintf "<!-- cuin d %d -->\n<!-- cuout d %d -->\n", @$line[0], @$line[1];
                print OUT $nice;
                print OUT "</body>\n</html>";
                close OUT;
                }
        }
}
#################################
DAvid Ramahefason
http://www.netfacile.net/
User avatar
Morgan
Cacti User
Posts: 187
Joined: Wed Feb 25, 2004 3:38 am

Post by Morgan »

all if you modify your paths, either create the weatherm directory in your graphs path:


$weatherfile = $my_htmldir."weatherm/wea_".$name."html";
User avatar
Morgan
Cacti User
Posts: 187
Joined: Wed Feb 25, 2004 3:38 am

Post by Morgan »

ok, so i got the script rama posted to work, that's good.
then i had to fiddle with dependencies, libraries etc to get wethermap to run.

now it runs, except it generates broken png files.

i hate this shit... any1 got it to work properly on RH9 ?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

I've been playing with weathermap and rama's script for the last couple of days, and I have a modified version of weathermap that automatically generates the imagemap and DHTML stuff necessary to make a map like the GRNET demo on weathermap's page (http://netmon.grnet.gr/weathermap).

Now I just need to work out a nice way to figure out the graph links automatically, and the whole thing will be pretty painless.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests