PHP Network Weathermap 0.8 (now 0.9)

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
kagoryu
Posts: 6
Joined: Thu Dec 08, 2005 4:29 am

Post by kagoryu »

Howie wrote:
kagoryu wrote:Hi Howie,

I would like to thank you for the tool.
I'm having a problem with the png file.
I've tried testing your addon with 3 network equipments I'm
monitoring and it works well.
I've decided to add all my core network equipments, around
20 of 'em now the weather_15.png is generated blank. The size is about
33k, but when I manually run ./weathermap it generates the whole png.

What seems to be the problem?

Thanks.
What does the cacti log say? What about if you turn DEBUG on for one poller cycle?

(hehe. I can think I need a macro button to type that, like lvm must have... :-) )
cacti.log says :
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Weathermap 0.8 in da house
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Engaging Weathermap DEBUG mode
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Iterating all maps.
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Map: /var/www/cacti/plugins/weathermap/configs//core.conf -> /var/www/cacti/p
lugins/weathermap/output//weathermap_15.html & /var/www/cacti/plugins/weathermap/output//weathermap_15.png
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Adding default map colour set.
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Setting bandwidth (100M, 100M)
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Default Link: DEFAULT
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Node: node1144116907
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Node: node1144207575
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Node: node1144207681
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Node: node1144207859
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Node: node1144207928
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Node: node1144209400
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Node: node1144209517
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Node: node1144209806
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Node: node1144210058
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Node: node1144212990
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Node: node1144213151
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Node: node1144213298
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Node: node1144213361
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Node: node1144214092
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Node: node1144214524
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Node: node1144214561
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Node: node1144214587
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Node: node1144214608
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Node: node1144214624
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] RRDTOOL check triggered
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Setting bandwidth (8M, 8M)
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144207575-node1144116907
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Setting bandwidth (8M, 8M)
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144207681-node1144116907
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144207928-node1144207859
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144207928-node1144209400
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144209517-node1144207859
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144209517-node1144209400
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144212990-node1144207859
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144212990-node1144209400
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144213151-node1144207859
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144213151-node1144209400
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144213298-node1144207859
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144213298-node1144209400
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144213361-node1144207859
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144213361-node1144209400
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144214092-node1144207859
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144214092-node1144209400
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144214524-node1144207859
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144214524-node1144209400
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144214561-node1144209400
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144214561-node1144207859
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144214587-node1144207859
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144214587-node1144209400
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144214608-node1144207859
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144214608-node1144209400
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144214624-node1144207859
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Saving Link: node1144214624-node1144209400
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] Already have 7 scales, no defaults added.
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0] ================== ReadData: Updating link data for all links
04/05/2006 03:35:41 PM - WEATHERMAP: Poller[0]


your thoughts?
flavour
Posts: 15
Joined: Wed Sep 28, 2005 9:37 am

Post by flavour »

Howie wrote: I'm thinking that I'll probably add a pixel offset sometime soon, like LABELOFFSET has, so that you can fine-tune it for non-square nodes.
Yes please :)
- I was preparing to ask for that!

F
davs
Posts: 28
Joined: Fri Mar 31, 2006 9:47 am
Location: paris

Post by davs »

If you run the SQL from the mysql command-line tool, do you get any results?

Code:

select * from weathermap_maps where active='on'
My weathermap_map table is empty. How come it doesn't save my maps???? :(

Is there a problem with the polling? Do I have to change something in the poller.php or in my schedule task configuration?

Is there someone made it work with a Windows configuration??
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

davs wrote: Is there a problem with the polling? Do I have to change something in the poller.php or in my schedule task configuration?

Is there someone made it work with a Windows configuration??
YES!!! I test it on Linux, Windows (XAMPP), Mac OS X, and FreeBSD.

It's nothing in the poller or scheduled task configuration. If your table is empty, then there is nothing to do, as far as the poller thinks.

What is the exact name of your config file? It might be a problem i've missed with SQL escaping and certain filenames.

Is the map listed (and active) in the Manage Maps tab? If it isn't, then you didn't add the map. If it is, then you have two cacti databases somehow, because you just told me that the table was empty. :-)
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
davs
Posts: 28
Joined: Fri Mar 31, 2006 9:47 am
Location: paris

Post by davs »

What is the exact name of your config file? It might be a problem i've missed with SQL escaping and certain filenames.

Is the map listed (and active) in the Manage Maps tab? If it isn't, then you didn't add the map. If it is, then you have two cacti databases somehow, because you just told me that the table was empty.
I have 2 available Weathermaps configuration files:
one is the simple.conf and an other one I've made which call test.conf. But when I click on add, there is still no weathermaps configured even after a poller cycle.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

davs wrote: I have 2 available Weathermaps configuration files:
one is the simple.conf and an other one I've made which call test.conf. But when I click on add, there is still no weathermaps configured even after a poller cycle.
So they don't appear in the list of maps? If they don't appear there, then nothing will ever happen. You don't have to wait a poller cycle to see the Manage list - only for the final maps.

Just to be clear: Choose 'Manage Maps'. Choose 'Add', and a list of available files appears. Click 'Add' again next to the filename you want to add. You should be taken back to the 'Manage' screen with one file listed and 'Active' next to it.

If that is true, then when you click on the Weathermap tab after that, you'll get a page that says something like 'No map created yet', until a poller cycle has passed. The poller takes each file that you have added, and tries to make a map. If it fails, there will be something in the log.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

knobdy wrote:How'd you do it? Can it be done on the fly/on demand? Via a script?

I'd just like what I currently have being displayed at the top of my graph views - system info...
I cheated. I created a simple web page with the info I wanted and then took a printscreen of it - pasted the printscreen into gimp and then chopped it down to size and saved it as a jpg.
I know it is not dynamic info and that I would need to go thru the entire proccess all over again if I want to change it, but it works for now.

I will experiment with Howies' suggestion of using a script to update it as time allows
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

egarnel wrote:
knobdy wrote:How'd you do it? Can it be done on the fly/on demand? Via a script?

I'd just like what I currently have being displayed at the top of my graph views - system info...
I cheated. I created a simple web page with the info I wanted and then took a printscreen of it - pasted the printscreen into gimp and then chopped it down to size and saved it as a jpg.
I know it is not dynamic info and that I would need to go thru the entire proccess all over again if I want to change it, but it works for now.

I will experiment with Howies' suggestion of using a script to update it as time allows
Here's another example, taken from our intranet server, and tweaked.

Code: Select all

fetch -o - http://admin:password@stats.company.net/smokeping/.simg/World/Transit_last_10800.png | convert - -crop 602x204+74+30 -resize 128x128 transit1-smoke.png
fetch is a FreeBSD thing that's basically the same as wget. So that fetches a remote image from smokeping, then crops it (I figured out the coordinates in gimp/photoshop), resizes what's left to fit in a 128x128 box (it's actually 128x48 or so), and write it out to a PNG.

That could easily take the summary info from the bottom or top of a cacti graph, or something else.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

Howie wrote:Ah, it was fine with my icons ;-)
You should add those to your package! :) I'm using those available from Cisco - their PowerPoint icons that I just saved as .PNGs and reduced by 50% in Paint.
Howie wrote:If it is though, try using one of the node offsets, like SW or SE, so that the arrow starts from the edge.
Not sure I'm following you here. Do you mean that if my label for the node is interfering? Currently it appears to be the whitespace around the cloud icon I'm using.
Howie wrote:You can change where 0 and 100% appear, however, with those offsets.
How do you do that? Is there an offset option for links?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

knobdy wrote:Not sure I'm following you here. Do you mean that if my label for the node is interfering? Currently it appears to be the whitespace around the cloud icon I'm using.
Aah. If you have an irregular shaped icon, it's worth getting something like GIMP to make the white bit transparent in your icon.
Howie wrote:You can change where 0 and 100% appear, however, with those offsets.
How do you do that? Is there an offset option for links?[/quote]

LINK blah
NODES node1:N node2:SW
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

Howie wrote: LINK blah
NODES node1:N node2:SW
Holy Poo, how'd I miss those?! I swear I've gone through the entire config reference page before asking my silly questions - apparently I need to read them as well. :)

Again, excellent tool. I'm having a lot of fun with it - and wowing my cow-orkers as well!
User avatar
ScOp3
Cacti User
Posts: 61
Joined: Wed Aug 03, 2005 4:14 am
Location: Cologne Germany
Contact:

Post by ScOp3 »

I am having a some issues with getting the already available .rrd's parsed.
I decided to parse the "target=" via http://cacti.server.domain/path/rra/my-rrd-4711.rrd.

The Output from the cacti Log creates something like "ReadData: Link Nodexyz, target: <link> on config line 48 had no valid data".

This looks like a problem parsing the available rrd file to me if i got everything correct.

Thanks for the plugin!

Using: Weathmap 0.8 with 0.8.6h
fear leads to anger, anger leads to hate and dancing leads to sex!
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

ScOp3 wrote:I am having a some issues with getting the already available .rrd's parsed.
I decided to parse the "target=" via http://cacti.server.domain/path/rra/my-rrd-4711.rrd.
rrdtool can't read URLs. It needs to be a path to a file on the local system.

Say, TARGET /var/www/html/cacti/rra/my-rrd-4711.rrd
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
ScOp3
Cacti User
Posts: 61
Joined: Wed Aug 03, 2005 4:14 am
Location: Cologne Germany
Contact:

Post by ScOp3 »

Howie wrote:
ScOp3 wrote:I am having a some issues with getting the already available .rrd's parsed.
I decided to parse the "target=" via http://cacti.server.domain/path/rra/my-rrd-4711.rrd.
rrdtool can't read URLs. It needs to be a path to a file on the local system.

Say, TARGET /var/www/html/cacti/rra/my-rrd-4711.rrd
That did the trick! Thanks
fear leads to anger, anger leads to hate and dancing leads to sex!
davs
Posts: 28
Joined: Fri Mar 31, 2006 9:47 am
Location: paris

Post by davs »

Just to be clear: Choose 'Manage Maps'. Choose 'Add', and a list of available files appears. Click 'Add' again next to the filename you want to add. You should be taken back to the 'Manage' screen with one file listed and 'Active' next to it.
I re-installed all the cacti configuration (cacti0.8.6h+php5+mysql5+rrdtool+net-snmp) on a Windows 2000 system.

I follow step by step cacti installation and for php-weathermap your manual installation.

I still can not add any maps. When I click on 'Add' next to my config filename, i've been taken back to the 'Manage' screen but no map was added. It says "no weathermaps configured". :cry:
Normally, when we click on 'add' it should add the config file in the weathermap_maps table?

and when i make:

Code: Select all

select * from weathermap_maps; 
it says that my table is empty.

I'm really sorry to disturb you...
I know I'm the only one who have problem with your plugins but I find it so interesting so I really want to make it work.. :D
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests