D'oh! Try renaming editor.php as wm.php - that's what it used to be called. I didn't realise there were any static links in there! I last did work on it before I had a seperate file for the Weathermap class too, so it's possible that things have changed enough that it still doesn't work - I just threw it in the zip.mgb wrote:Just tested the editor. Seems there is missing a file called wm.php used for creating / displaying the weathermap. Could you supply this file also?
network map
Moderators: Developers, Moderators
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: regarding version 0.3
That's wierd. Mine all look the same. One thing I'll do i in the next version is move the timestamp back to the top again. I found that one of my maps which has a fancy background goes all the way to the bottom...mgb wrote:Tested your php version today. Didn't had the time earlier on. Version 0.3 creates nearly the same output as my perl script. It looks like I'm missing just one pixel from the right side and the bottom side of the picture.
If I managed to get a more integrated version with Cacti, then I was intending to use some extra tables in the Cacti database for config. The aim would be to have maps be treated as a some kind of special class of graph, so they could appear in trees, and have permissions the same way. I don't know how possible that is. I felt it was worth having at least one PHP version that didn't rely on Cacti first though, so that MRTG users would benefit too (this all still works with MRTG HTML files, after all, so far). Making the move should be a case of tweaking only the WriteConfig and ReadConfig methods, and the class itself can then do conversions from the old test file to the new database - pretty simple.mgb wrote: Currently you are using the same config file for the perl version of weathermap. Although this moght come in handy when using old config files. I think for a cacti version it would be better to use an XML file since most external cacti files are xml files. Also for the future you can use the standard cacti import and export functionality for the weathermap files too.
Didn't find the time yet to test the editor. The PHP version is working great though.
Once the ability to add RRD DS names is in, which makes the standalone script able to deal with any RRD, from any source, including MRTG and whatever else, then it's probably time to look at a database format with XML import/export for the config. That's the last 'universal' feature I think, before it becomes Cacti-specific stuff again.[/code]
That did the trick. Although it's in a premature state I think it looks inmpressive. Can't wait to get my hands on a newer version.Howie wrote:D'oh! Try renaming editor.php as wm.php - that's what it used to be called. I didn't realise there were any static links in there! I last did work on it before I had a seperate file for the Weathermap class too, so it's possible that things have changed enough that it still doesn't work - I just threw it in the zip.mgb wrote:Just tested the editor. Seems there is missing a file called wm.php used for creating / displaying the weathermap. Could you supply this file also?
Great work,
Thanx.
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
PHP Weathermap v0.4 pre-release out
http://wotsit.thingy.com/haj/cacti/
For those playing along at home, there's a new version of PHP Weathermap. This one makes changes to the way bandwidth is specified, to make it more logical (you actually say '34M' for a 34Mbit line now). It also includes a full manual, amongst other smaller changes.
It works for me, as usual. I'm sure there are bits I've missed.
For those playing along at home, there's a new version of PHP Weathermap. This one makes changes to the way bandwidth is specified, to make it more logical (you actually say '34M' for a 34Mbit line now). It also includes a full manual, amongst other smaller changes.
It works for me, as usual. I'm sure there are bits I've missed.
Hi Howie,
I saw you moved the date-time block again. Might be handy to make the location dynamic juts like the legend block.
Also, Is it possible to use less than 1percent values. Might be handy for 1G lines which most of the time are not even loaded for 1%.
Will try the new code as soon as I have the time.
Thanx,
Michael
I saw you moved the date-time block again. Might be handy to make the location dynamic juts like the legend block.
Also, Is it possible to use less than 1percent values. Might be handy for 1G lines which most of the time are not even loaded for 1%.
Will try the new code as soon as I have the time.
Thanx,
Michael
fixed
for those using windows please use this one
for those using windows please use this one
- Attachments
-
- Weathermap.class.rar
- (8.53 KiB) Downloaded 222 times
-
- Posts: 2
- Joined: Wed May 11, 2005 9:55 pm
the value (traffic) is not match ???
Hi Howie,
my platform : win32 , iis5, cacti to create rrd file
i use php-weathermap, i can produce the map, but i find
the inbound and outbound value (traffic) on the map between two
point is not match to the original cacti graphic , so , can anyone help
me ...
english is not my main language , i hope you can understand
what i say .... thank you ..
my platform : win32 , iis5, cacti to create rrd file
i use php-weathermap, i can produce the map, but i find
the inbound and outbound value (traffic) on the map between two
point is not match to the original cacti graphic , so , can anyone help
me ...
english is not my main language , i hope you can understand
what i say .... thank you ..
-
- Posts: 32
- Joined: Wed Mar 02, 2005 11:58 am
-
- Posts: 32
- Joined: Wed Mar 02, 2005 11:58 am
-
- Posts: 32
- Joined: Wed Mar 02, 2005 11:58 am
Who is online
Users browsing this forum: No registered users and 1 guest