Maps not being created via Cacti poller

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Maps not being created via Cacti poller

Post by chadd »

Not sure what happened, but maps are no longer being created/updated when the Cacti poller runs. If I run the weathermap-cacti-rebuild.php script from the command line, it creates/updates the maps just fine. I turned on Debugging to the Cacti log and see nothing other than weathermap start and stop. I even tried logging in as the user running the weathermap-cacti-rebuild.php (www-data), and that worked fine, so I am pretty sure it is not a permissions issue. I ran the check.php as well, and everything looked fine.

This is what I have installed. OS is Ubuntu 10.04 2.6.32-34-server.

Cacti Version: 0.8.7g, Plugin Architecture Version: 2.9
Autom8 Automate Cacti Tasks General Active Reinhard Scheck http://docs.cacti.net/plugin:autom8 0.35b7
Configstore ConfigStore General Active Chadd J. Christiansen http://cacti.net 0.7
Mactrack Device Tracking General Active Larry Adams http://cacti.net 2.9
Settings Global Plugin Settings System Active Jimmy Conner http://cactiusers.org 0.7
Boost Large Site Performance Booster System Active The Cacti Group http://www.cacti.net 5.1
Weathermap PHP Network Weathermap Old PIA Active Howard Jones http://www.network-weathermap.com/ 0.97a
Rrdclean RRD File Cleaner General Active Reinhard Scheck http://docs.cacti.net/plugin:rrdclean 0.40
Syslog Syslog Monitoring General Active Jimmy Conner http://cactiusers.org 1.10
Thold Thresholds General Active Jimmy Conner http://docs.cacti.net/plugin:thold 0.4.7

Any help would be great, I am at a bit of a loss here. Thanks,

-chadd.
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Re: Maps not being created via Cacti poller

Post by chadd »

chadd wrote:Not sure what happened, but maps are no longer being created/updated when the Cacti poller runs. If I run the weathermap-cacti-rebuild.php script from the command line, it creates/updates the maps just fine. I turned on Debugging to the Cacti log and see nothing other than weathermap start and stop. I even tried logging in as the user running the weathermap-cacti-rebuild.php (www-data), and that worked fine, so I am pretty sure it is not a permissions issue. I ran the check.php as well, and everything looked fine.

This is what I have installed. OS is Ubuntu 10.04 2.6.32-34-server.

Cacti Version: 0.8.7g, Plugin Architecture Version: 2.9
Autom8 Automate Cacti Tasks General Active Reinhard Scheck http://docs.cacti.net/plugin:autom8 0.35b7
Configstore ConfigStore General Active Chadd J. Christiansen http://cacti.net 0.7
Mactrack Device Tracking General Active Larry Adams http://cacti.net 2.9
Settings Global Plugin Settings System Active Jimmy Conner http://cactiusers.org 0.7
Boost Large Site Performance Booster System Active The Cacti Group http://www.cacti.net 5.1
Weathermap PHP Network Weathermap Old PIA Active Howard Jones http://www.network-weathermap.com/ 0.97a
Rrdclean RRD File Cleaner General Active Reinhard Scheck http://docs.cacti.net/plugin:rrdclean 0.40
Syslog Syslog Monitoring General Active Jimmy Conner http://cactiusers.org 1.10
Thold Thresholds General Active Jimmy Conner http://docs.cacti.net/plugin:thold 0.4.7

Any help would be great, I am at a bit of a loss here. Thanks,

-chadd.

Well, that is weird... Problem seems to be resolved. I increased the max memory in php.ini from 512M to 1024M and that fixed it... I just started adding more maps so must need more than 512M for more than one map?? Anyway, whatever.. Hope this helps someone else!

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

Re: Maps not being created via Cacti poller

Post by Howie »

No, there's a memory leak in 0.97a so the more maps you have the more memory you need :-(

Fixed in dev version.
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!)
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Re: Maps not being created via Cacti poller

Post by chadd »

Howie wrote:No, there's a memory leak in 0.97a so the more maps you have the more memory you need :-(

Fixed in dev version.

Is the dev stable enough to use? If not, no worries. Thanks, and great plugin BTW. It is a big favorite among management types. If you could implement magical map creation though, that would be great ;).

-chadd.
litass
Posts: 25
Joined: Tue Oct 09, 2007 7:46 am

Re: Maps not being created via Cacti poller

Post by litass »

Same problem here upgrade to version 0.8.7h

Poller polled, but weathermap doesn't updating the map. Applied weather-cacti-rebuild.php, the map works fine, and keep telling me to increase memory_limit in php.ini, i did it with 1024M, still no luck.
I have 5 maps currently.
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Re: Maps not being created via Cacti poller

Post by chadd »

litass wrote:Same problem here upgrade to version 0.8.7h

Poller polled, but weathermap doesn't updating the map. Applied weather-cacti-rebuild.php, the map works fine, and keep telling me to increase memory_limit in php.ini, i did it with 1024M, still no luck.
I have 5 maps currently.
Yeah, I did the same thing with my memory limit. Howie said that 0.97a has a memory leak, so I upgraded to 0.98dev. That memory problem seems to have passed, but the problem with the maps not being created still exists. It seems to be directly tied to a conflict with the thold plugin (for me anyway). If I disable thold, the maps update fine via the poller. I had the same problem before I upgraded, but now I am at 0.8.7h with PIA3.0, the latest thold, and the dev weathermap plugin, and the problem still persists. I will give it a bit more effort today, but I suspect the problem bit of code is not going to just jump out at me.. Good luck.

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

Re: Maps not being created via Cacti poller

Post by Howie »

I'd have to build another dev environment to test - I can't run the current thold on my regular Cacti system. Possibly I'll have time this weekend to look at that.
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
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Maps not being created via Cacti poller

Post by Howie »

Also, if you aren't getting ANY maps, it's unlikely to be memory_limit. Unless your map is absolutely enormous - the rough math is: width*height*3 bytes for the main map image, plus some more for each node, plus the actual data. 1024MB of image data is a lot (like 10000px by 10000px)!
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!)
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Re: Maps not being created via Cacti poller

Post by chadd »

Thanks Howie. I don't suspect that it is a memory problem at this point. If I disable the thold plugin in plugin management the maps get created fine. It seems to be a problem related to thold - what, I have absolutely no clue.. Thanks for the help.

-chadd.
litass
Posts: 25
Joined: Tue Oct 09, 2007 7:46 am

Re: Maps not being created via Cacti poller

Post by litass »

chadd wrote:
litass wrote:Same problem here upgrade to version 0.8.7h

Poller polled, but weathermap doesn't updating the map. Applied weather-cacti-rebuild.php, the map works fine, and keep telling me to increase memory_limit in php.ini, i did it with 1024M, still no luck.
I have 5 maps currently.
Yeah, I did the same thing with my memory limit. Howie said that 0.97a has a memory leak, so I upgraded to 0.98dev. That memory problem seems to have passed, but the problem with the maps not being created still exists. It seems to be directly tied to a conflict with the thold plugin (for me anyway). If I disable thold, the maps update fine via the poller. I had the same problem before I upgraded, but now I am at 0.8.7h with PIA3.0, the latest thold, and the dev weathermap plugin, and the problem still persists. I will give it a bit more effort today, but I suspect the problem bit of code is not going to just jump out at me.. Good luck.

-chadd.
ok chadd, I will try it later, I have latest thold plugin too..
litass
Posts: 25
Joined: Tue Oct 09, 2007 7:46 am

Re: Maps not being created via Cacti poller

Post by litass »

After disabled Thold plugin, the weathermap started running. :o :o (0.97a)

The svn revision 522, the Plugin Management" will be blank out. :cry: :cry:
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Maps not being created via Cacti poller

Post by TheWitness »

litass wrote:After disabled Thold plugin, the weathermap started running. :o :o (0.97a)

The svn revision 522, the Plugin Management" will be blank out. :cry: :cry:
That likely has something to do with it. Make sure you don't make second copies of ANY plugin in the plugins directory. Lot's of things will screw up if you have two copies of a plugin in that directory. Make backups via 'tar -zcf' instead of 'cp -rp'.

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?
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Re: Maps not being created via Cacti poller

Post by chadd »

TheWitness wrote:
litass wrote:After disabled Thold plugin, the weathermap started running. :o :o (0.97a)

The svn revision 522, the Plugin Management" will be blank out. :cry: :cry:
That likely has something to do with it. Make sure you don't make second copies of ANY plugin in the plugins directory. Lot's of things will screw up if you have two copies of a plugin in that directory. Make backups via 'tar -zcf' instead of 'cp -rp'.

TheWitness
As I posted in the other thread. Looks like a duplicate function: format_number();
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Maps not being created via Cacti poller

Post by TheWitness »

0.4.8-2 released to address.
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?
litass
Posts: 25
Joined: Tue Oct 09, 2007 7:46 am

Re: Maps not being created via Cacti poller

Post by litass »

It's working now after updated to thold_0.4.8, thanks a lot !
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests