Weathermap - Cacti 1.x compatible release available for testing

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Weathermap - Cacti 1.x compatible release available for testing

Post by phalek »

HI All,

I've rewritten the 0.98a version of Weathermap to run on a Cacti 1.x ( tested on 1.2.8, Linux and Windows versions ) system. There have been no new features and it may not be compatible with all themes but it should be working just fine.

Please have a go at this version and post back any issues you find within this thread.

Update: Contains the URL fix reported
https://www.urban-software.com/wp-conte ... pdated.zip

GitHub Repository:
https://github.com/thurban/plugin_weathermap
Last edited by phalek on Thu Dec 12, 2019 1:49 am, edited 2 times in total.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by Howie »

Are you doing this in a git repo?
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
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by phalek »

Nope. But that file is currently the latest Version.

I can create a github repo though if you like ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by Howie »

Nope, no need - I'll diff to see if it could be used with the current version (quite a big difference)

Great that this exists though! :D
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!)
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by bmfmancini »

This is great !
Telecom Lifer, Monitoring and performance enthusiast, Father, Husband

Cacti Bug Hunter and Member

www.seanmancini.com
sean(at)seanmancini.com
github.com/bmfmancini

My Cacti scripts and templates ( Non official)
Cacti install wizard https://github.com/bmfmancini/cacti-install-wizard
Cacti templates https://github.com/bmfmancini/Cacti-templates

Always willing to help!
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by bmfmancini »

found a small bug so far

when you click on manage network weather maps there is a " at the end of the url

/cacti/plugins/weathermap/weathermap-cacti-plugin-mgmt.php"

should be

/cacti/plugins/weathermap/weathermap-cacti-plugin-mgmt.php
Telecom Lifer, Monitoring and performance enthusiast, Father, Husband

Cacti Bug Hunter and Member

www.seanmancini.com
sean(at)seanmancini.com
github.com/bmfmancini

My Cacti scripts and templates ( Non official)
Cacti install wizard https://github.com/bmfmancini/cacti-install-wizard
Cacti templates https://github.com/bmfmancini/Cacti-templates

Always willing to help!
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by bmfmancini »

modify this line to correct it

print '<p>To add a map to the schedule, go to the <a href=' . $config[ 'url_path' ] . 'plugins/weathermap/weathermap-cacti-plugin-mgmt.php">Manage...Weathermaps page</a> and add one.</p>';

TO

print '<p>To add a map to the schedule, go to the <a href=' . $config[ 'url_path' ] . 'plugins/weathermap/weathermap-cacti-plugin-mgmt.php>Manage...Weathermaps page</a> and add one.</p>';

All fixed :)
Telecom Lifer, Monitoring and performance enthusiast, Father, Husband

Cacti Bug Hunter and Member

www.seanmancini.com
sean(at)seanmancini.com
github.com/bmfmancini

My Cacti scripts and templates ( Non official)
Cacti install wizard https://github.com/bmfmancini/cacti-install-wizard
Cacti templates https://github.com/bmfmancini/Cacti-templates

Always willing to help!
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by phalek »

Updated the code and uploaded it. Initial post has been updated with the new url.

I fixed that live on my customers system but forgot to add it to the code on my own PC :-) Probably need to upload it to github anyway ...
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by bmfmancini »

Yes ! please upload to github would be nice to work toegther on this as its a real gap in cacti right now
Telecom Lifer, Monitoring and performance enthusiast, Father, Husband

Cacti Bug Hunter and Member

www.seanmancini.com
sean(at)seanmancini.com
github.com/bmfmancini

My Cacti scripts and templates ( Non official)
Cacti install wizard https://github.com/bmfmancini/cacti-install-wizard
Cacti templates https://github.com/bmfmancini/Cacti-templates

Always willing to help!
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by phalek »

Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
asriey
Posts: 1
Joined: Sat Mar 05, 2011 11:07 am

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by asriey »

thank you everyone for the effort. I have tested on Cacti 1.1.38, Ubuntu 18.04.3 LTS and so far it is working as expected. No bug found yet.
leonardo0014
Posts: 3
Joined: Sun Jan 19, 2020 12:21 pm
Location: Bavaria, Germany

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by leonardo0014 »

Hello

Thanks for porting. I tested it with my installation and found the following.
  • The image for "button_go.gif" in the File /weathermap-cacti-plugin.php (LIne 802) is no longer available in Cacti version 1.2.8.
    => You can use "enable_icon.png" for that.
  • With version 7 of PHP there is another error message that does not apply in the logbook.
    "WEATHERMAP [Map 1] sample.conf: About to write image file. If this is the last message in your log, increase memory_limit in php.ini [WMPOLL01]".
    My memory_limit in the php.ini is 800M. So much should be enough for a small map?
But otherwise everything is going well. Thanks again for customizing.

MfG
Leo
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by Howie »

This message has been there for years... the key part is If this is the last message

Basically, when PHP hits its memory_limit, it just dies, so this is just before the point where weathermap will use a bunch of memory. If it isn't the last message for that particular run, you are all good. This was mainly an issue with older PHP versions where the default memory_limit was 16M. 128M is usually plenty.
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!)
leonardo0014
Posts: 3
Joined: Sun Jan 19, 2020 12:21 pm
Location: Bavaria, Germany

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by leonardo0014 »

Howie wrote: Mon Jan 20, 2020 4:09 am This message has been there for years... the key part is If this is the last message

Basically, when PHP hits its memory_limit, it just dies, so this is just before the point where weathermap will use a bunch of memory. If it isn't the last message for that particular run, you are all good. This was mainly an issue with older PHP versions where the default memory_limit was 16M. 128M is usually plenty.
How can I debug it if it is the last message?
For me, the message always comes last, right after the MAP message.
I didn't find anything in the instructions/FAQ.
Here the Log:

Code: Select all

2020/01/16 12:40:06 - WEATHERMAP STATS: Weathermap 0.98a run complete - Thu, 16 Jan 20 12:40:06 +0000: 1 maps were run in 1 seconds with 0 warnings.
2020/01/16 12:40:05 - WEATHERMAP [Map 1] sample.conf: Wrote map to /usr/share/cacti/site/plugins/weathermap/output/176b055ac210a17a2c70.png and /usr/share/cacti/site/plugins/weathermap/output/176b055ac210a17a2c70.thumb.png
2020/01/16 12:40:05 - WEATHERMAP [Map 1] sample.conf: About to write image file. If this is the last message in your log, increase memory_limit in php.ini [WMPOLL01]
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by Howie »

Cacti helpfully shows messages in reverse order. The two above it in your screenshot are after it, if you look at the times. i.e. the map was actually written. You can confirm by looking at the file dates in the output/ folder.

What issue are you actually seeing?
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!)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests