Weathermap - Cacti 1.x compatible release available for testing

Support questions about the Network Weather Map plugin

Moderators: Moderators, Developers

Author
Message
User avatar
phalek
Cacti Guru User
Posts: 2739
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Weathermap - Cacti 1.x compatible release available for testing

#1 Post by phalek » Wed Dec 11, 2019 9:11 am

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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code: Select all

CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061

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

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

#2 Post by Howie » Wed Dec 11, 2019 11:19 am

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
Cacti Guru User
Posts: 2739
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

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

#3 Post by phalek » Wed Dec 11, 2019 11:31 am

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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code: Select all

CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061

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

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

#4 Post by Howie » Wed Dec 11, 2019 12:55 pm

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!)

seanmancini
Cacti User
Posts: 110
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

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

#5 Post by seanmancini » Wed Dec 11, 2019 3:11 pm

This is great !

seanmancini
Cacti User
Posts: 110
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

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

#6 Post by seanmancini » Wed Dec 11, 2019 3:19 pm

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

seanmancini
Cacti User
Posts: 110
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

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

#7 Post by seanmancini » Wed Dec 11, 2019 3:25 pm

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 :)

User avatar
phalek
Cacti Guru User
Posts: 2739
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

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

#8 Post by phalek » Wed Dec 11, 2019 3:34 pm

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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code: Select all

CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061

seanmancini
Cacti User
Posts: 110
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

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

#9 Post by seanmancini » Wed Dec 11, 2019 3:38 pm

Yes ! please upload to github would be nice to work toegther on this as its a real gap in cacti right now

User avatar
phalek
Cacti Guru User
Posts: 2739
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

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

#10 Post by phalek » Thu Dec 12, 2019 1:49 am

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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code: Select all

CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061

asriey
Posts: 1
Joined: Sat Mar 05, 2011 11:07 am

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

#11 Post by asriey » Tue Dec 17, 2019 12:48 am

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

#12 Post by leonardo0014 » Sun Jan 19, 2020 1:10 pm

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: 5362
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

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

#13 Post by Howie » 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.
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

#14 Post by leonardo0014 » Mon Jan 20, 2020 1:53 pm

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: 5362
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

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

#15 Post by Howie » Mon Jan 20, 2020 2:50 pm

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