[SOLVED] PHP memory problem?

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
oldsk8trbabe
Posts: 14
Joined: Thu Aug 31, 2006 9:22 am

[SOLVED] PHP memory problem?

Post by oldsk8trbabe »

I cannot get any maps created. The last line in cacti.log is:

WEATHERMAP: Poller[0] About to write image file. If this is the last message in your log, increase memory_limit in php.ini

I have increased the memory_limit to 256M in php.ini and restarted httpd, same thing. If I try to log in debug mode, I exceed the poller time and end up with leftovers in the poller output table, so it's difficult for me to run with logging set to debug.

Any other way to see what's going wrong? It's a very simple config file right now, no background and just 2 nodes and 1 link.

php-weathermap-0.82
cacti-0.8.6j
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: PHP memory problem?

Post by Howie »

oldsk8trbabe wrote:I cannot get any maps created. The last line in cacti.log is:

WEATHERMAP: Poller[0] About to write image file. If this is the last message in your log, increase memory_limit in php.ini

I have increased the memory_limit to 256M in php.ini and restarted httpd, same thing. If I try to log in debug mode, I exceed the poller time and end up with leftovers in the poller output table, so it's difficult for me to run with logging set to debug.

Any other way to see what's going wrong? It's a very simple config file right now, no background and just 2 nodes and 1 link.

php-weathermap-0.82
cacti-0.8.6j
Yes. Try running from the command-line:

Code: Select all

cd /var/wherever/cacti/is/plugins/weathermap
php weathermap --debug --config configs/yourconfig.conf
You get the same output that you would have got from cacti DEBUG mode. It will create a file called weathermap.png in the current directory with your map output.
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!)
oldsk8trbabe
Posts: 14
Joined: Thu Aug 31, 2006 9:22 am

Still no go

Post by oldsk8trbabe »

My output from the CLI:

php weathermap --debug --config configs/CEN-Backbone.conf


------------------------------------
Starting PHP-Weathermap run, with config: configs/CEN-Backbone.conf
Saving Node: ENRT043D
Saving Node: Wiltel
Setting bandwidth (1G, 1G)
RRDTOOL check triggered
Saving Link: Wiltel-ISP
Adding default SCALE set.
================== ReadData: Updating link data for all links


ReadData for Link Wiltel-ISP:
New Target: /usr/local/src/cacti/rra/enrt043d_east_hartford_isp_router_traffic_in_2010.rrd (/usr/local/src/cacti/rra/enrt043d_east_hartford_isp_router_traffic_in_2010.rrd)
ReadData: Updating link Wiltel-ISP from RRD Target /usr/local/src/cacti/rra/enrt043d_east_hartford_isp_router_traffic_in_2010.rrd
ReadFromRRD: Target DS names are traffic_in and traffic_out
ReadFromRRD: Running: /usr/local/rrdtool/bin/rrdtool fetch /usr/local/src/cacti/rra/enrt043d_east_hartford_isp_router_traffic_in_2010.rrd AVERAGE --start now-800
> 1175018400: 8.0423120462e+07 1.6795299539e+07
> 1175018700: 7.9429921972e+07 1.6843690190e+07
> 1175019000: nan nan
> --
--1175019000: nan nan

ReadFromRRD: 1: This isn't a number: [nan]
ReadFromRRD: 2: This isn't a number: [nan]
--1175018700: 7.9429921972e+07 1.6843690190e+07

ReadFromRRD: Found a good line: 1175018700: 7.9429921972e+07 1.6843690190e+07
( traffic_in traffic_out
)
--1175018400: 8.0423120462e+07 1.6795299539e+07

ReadFromRRD: Our line is 1175018700: 7.9429921972e+07 1.6843690190e+07

ReadFromRRD: Returning (635439375.776,134749521.52)
ReadData: Setting 635439375.776,134749521.52

ReadData Completed.
--------------
AllocateScaleColours: KEYTEXT (0,0,0)
AllocateScaleColours: KEYBG (255,255,255)
AllocateScaleColours: BG (255,255,255)
AllocateScaleColours: TITLE (0,0,0)
AllocateScaleColours: TIME (0,0,0)
AllocateScaleColours: 1:10 (140,0,255)
AllocateScaleColours: 10:25 (32,32,255)
AllocateScaleColours: 25:40 (0,192,255)
AllocateScaleColours: 40:55 (0,240,0)
AllocateScaleColours: 55:70 (240,240,0)
AllocateScaleColours: 70:85 (255,192,0)
AllocateScaleColours: 85:100 (255,0,0)
FELL THROUGH
Howie's crappy binary search is wrong after all.

Am I missing something?

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

Re: Still no go

Post by Howie »

oldsk8trbabe wrote:My output from the CLI:

FELL THROUGH
Howie's crappy binary search is wrong after all.
Are your two nodes very close together?

This error is something that is fixed in 0.9, but basically it's usually when you have a link where the two nodes are closer together than roughly 4 times the width of the link in pixel (the arrowhead is one link-width long at each end, and there's a bit more for something else I don't recall) which makes the math for the arrow-drawing go crazy.

The 0.9 "fix" is not to draw the link at all, but not to complain either. There isn't really a correct solution that I can see.

Or, is that not the case here? :-)
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!)
oldsk8trbabe
Posts: 14
Joined: Thu Aug 31, 2006 9:22 am

That's exactly the case

Post by oldsk8trbabe »

:oops:

Thanks so much!!!
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: That's exactly the case

Post by Howie »

oldsk8trbabe wrote::oops:

Thanks so much!!!
No worries. Glad it was something simple (and already fixed) and not a new wierd problem. My problem not yours, really.
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
Mark.
Cacti User
Posts: 74
Joined: Tue Jul 03, 2007 4:11 pm
Location: San Luis Obispo

Post by Mark. »

Is there any way to remove the arrows? They are misleading and kind of ugly. A simple line between the nodes or a lightening bolt option (for WAN circuits) would probably be ok with most of us.

Is that easily done or ?
I've just installed 95b and am having a similar problem. I've increased to 128Mb and everything seems fine for a while (a couple hours) and eventually the CPU starts getting hammered by php instances (i'm seeing like 6 instances of php running). Then spine times out on various hosts. This is a new install. Anyone run into this problem?

I've enabled Debug and I still get this:

Poller[0] Weathermap 0.95b starting - Normal logging mode. Turn on DEBUG in Cacti for more information

06/06/2008 08:55:11 AM - WEATHERMAP: Poller[0] [Map 2] example.conf: About to write image file. If this is the last message in your log, increase memory_limit in php.ini [WMPOLL01]

06/06/2008 08:55:14 AM - WEATHERMAP: Poller[0] [Map 2] example.conf: Weathermap 0.95b run complete - 1 maps were run in 3 seconds


Also, I can't find WMPOLL01 on the Error Reference Page
http://www.network-weathermap.com/manua ... codes.html
Cacti Ver: 0.8.7h
netSNMP 5.4.2.1
PHP 5.3.2-1ubuntu4.9 with Suhosin-Patch
mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1
RRDtool 1.3.8
CCNA,CCDA,CCSE
User avatar
Mark.
Cacti User
Posts: 74
Joined: Tue Jul 03, 2007 4:11 pm
Location: San Luis Obispo

Post by Mark. »

Ran cool tool.

[root@watcher3 weathermap]# php weathermap --debug --config configs/example.conf
DEBUG: [@weathermap:176] ------------------------------------
DEBUG: [@weathermap:177] Starting PHP-Weathermap run, with config: configs/example.conf
DEBUG: [@weathermap:178] ------------------------------------
DEBUG: [reset@Weathermap.class.php:267] Adding default map colour set.
DEBUG: [loadplugins@Weathermap.class.php:498] Beginning to load data plugins from lib/datasources
DEBUG: [loadplugins@Weathermap.class.php:516] Loading data Plugin class from WeatherMapDataSource_tabfile.php
DEBUG: [loadplugins@Weathermap.class.php:528] Loaded data Plugin class WeatherMapDataSource_tabfile from WeatherMapDataSource_tabfile.php
DEBUG: [loadplugins@Weathermap.class.php:536] Instantiated WeatherMapDataSource_tabfile.
DEBUG: [loadplugins@Weathermap.class.php:516] Loading data Plugin class from WeatherMapDataSource_fping.php
DEBUG: [loadplugins@Weathermap.class.php:528] Loaded data Plugin class WeatherMapDataSource_fping from WeatherMapDataSource_fping.php
DEBUG: [loadplugins@Weathermap.class.php:536] Instantiated WeatherMapDataSource_fping.
DEBUG: [loadplugins@Weathermap.class.php:516] Loading data Plugin class from WeatherMapDataSource_cactithold.php
DEBUG: [loadplugins@Weathermap.class.php:528] Loaded data Plugin class WeatherMapDataSource_cactithold from WeatherMapDataSource_cactithold.php
DEBUG: [loadplugins@Weathermap.class.php:536] Instantiated WeatherMapDataSource_cactithold.
DEBUG: [loadplugins@Weathermap.class.php:541] Skipping WeatherMapDataSource_skeleton.php.txt
DEBUG: [loadplugins@Weathermap.class.php:516] Loading data Plugin class from WeatherMapDataSource_static.php
DEBUG: [loadplugins@Weathermap.class.php:528] Loaded data Plugin class WeatherMapDataSource_static from WeatherMapDataSource_static.php
DEBUG: [loadplugins@Weathermap.class.php:536] Instantiated WeatherMapDataSource_static.
DEBUG: [loadplugins@Weathermap.class.php:516] Loading data Plugin class from WeatherMapDataSource_dbsample.php
DEBUG: [loadplugins@Weathermap.class.php:528] Loaded data Plugin class WeatherMapDataSource_dbsample from WeatherMapDataSource_dbsample.php
DEBUG: [loadplugins@Weathermap.class.php:536] Instantiated WeatherMapDataSource_dbsample.
DEBUG: [loadplugins@Weathermap.class.php:541] Skipping .
DEBUG: [loadplugins@Weathermap.class.php:516] Loading data Plugin class from WeatherMapDataSource_external.php
DEBUG: [loadplugins@Weathermap.class.php:528] Loaded data Plugin class WeatherMapDataSource_external from WeatherMapDataSource_external.php
DEBUG: [loadplugins@Weathermap.class.php:536] Instantiated WeatherMapDataSource_external.
DEBUG: [loadplugins@Weathermap.class.php:516] Loading data Plugin class from WeatherMapDataSource_snmp.php
DEBUG: [loadplugins@Weathermap.class.php:528] Loaded data Plugin class WeatherMapDataSource_snmp from WeatherMapDataSource_snmp.php
DEBUG: [loadplugins@Weathermap.class.php:536] Instantiated WeatherMapDataSource_snmp.
DEBUG: [loadplugins@Weathermap.class.php:516] Loading data Plugin class from WeatherMapDataSource_cactihost.php
DEBUG: [loadplugins@Weathermap.class.php:528] Loaded data Plugin class WeatherMapDataSource_cactihost from WeatherMapDataSource_cactihost.php
DEBUG: [loadplugins@Weathermap.class.php:536] Instantiated WeatherMapDataSource_cactihost.
DEBUG: [loadplugins@Weathermap.class.php:541] Skipping ..
DEBUG: [loadplugins@Weathermap.class.php:516] Loading data Plugin class from WeatherMapDataSource_mrtg.php
DEBUG: [loadplugins@Weathermap.class.php:528] Loaded data Plugin class WeatherMapDataSource_mrtg from WeatherMapDataSource_mrtg.php
DEBUG: [loadplugins@Weathermap.class.php:536] Instantiated WeatherMapDataSource_mrtg.
DEBUG: [loadplugins@Weathermap.class.php:541] Skipping README.txt
DEBUG: [loadplugins@Weathermap.class.php:516] Loading data Plugin class from WeatherMapDataSource_rrd.php
DEBUG: [loadplugins@Weathermap.class.php:528] Loaded data Plugin class WeatherMapDataSource_rrd from WeatherMapDataSource_rrd.php
DEBUG: [loadplugins@Weathermap.class.php:536] Instantiated WeatherMapDataSource_rrd.
DEBUG: [loadplugins@Weathermap.class.php:498] Beginning to load pre plugins from lib/pre
DEBUG: [loadplugins@Weathermap.class.php:516] Loading pre Plugin class from WeatherMapPreProcessorTest.php
DEBUG: [loadplugins@Weathermap.class.php:528] Loaded pre Plugin class WeatherMapPreProcessorTest from WeatherMapPreProcessorTest.php
DEBUG: [loadplugins@Weathermap.class.php:536] Instantiated WeatherMapPreProcessorTest.
DEBUG: [loadplugins@Weathermap.class.php:541] Skipping .
DEBUG: [loadplugins@Weathermap.class.php:541] Skipping ..
DEBUG: [loadplugins@Weathermap.class.php:498] Beginning to load post plugins from lib/post
DEBUG: [loadplugins@Weathermap.class.php:541] Skipping .
DEBUG: [loadplugins@Weathermap.class.php:541] Skipping ..
DEBUG: [loadplugins@Weathermap.class.php:516] Loading post Plugin class from WeatherMapPostProcessorTest.php
DEBUG: [loadplugins@Weathermap.class.php:528] Loaded post Plugin class WeatherMapPostProcessorTest from WeatherMapPostProcessorTest.php
DEBUG: [loadplugins@Weathermap.class.php:536] Instantiated WeatherMapPostProcessorTest.
DEBUG: [reset@Weathermap.class.php:298] WeatherMap class Reset() complete
DEBUG: [setbandwidth@WeatherMapLink.class.php:139] configs/example.conf: Setting bandwidth (1000M -> 1000000000 bps, 1000M -> 1000000000 bps, KILO = 1000)
DEBUG: [readconfig@Weathermap.class.php:1371] configs/example.conf: Saving Default Link: DEFAULT
DEBUG: [readconfig@Weathermap.class.php:1357] configs/example.conf: Saving Default Node: DEFAULT
DEBUG: [readconfig@Weathermap.class.php:1362] configs/example.conf: Saving Node: kancrr1
DEBUG: [readconfig@Weathermap.class.php:1362] configs/example.conf: Saving Node: itdcrr1
DEBUG: [setbandwidth@WeatherMapLink.class.php:139] configs/example.conf: Setting bandwidth (1000M -> 1000000000 bps, 1000M -> 1000000000 bps, KILO = 1000)
DEBUG: [readconfig@Weathermap.class.php:2018] configs/example.conf: Saving Link: itdcrr1-kancrr1-ist
DEBUG: [readconfig@Weathermap.class.php:2031] configs/example.conf: ReadConfig has finished reading the file (94 lines)
DEBUG: [readconfig@Weathermap.class.php:2032] configs/example.conf: ------------------------------------------
DEBUG: [readconfig@Weathermap.class.php:2037] configs/example.conf: Adding default SCALE colour set (no SCALE lines seen).
DEBUG: [readconfig@Weathermap.class.php:2067] configs/example.conf: Resolving relative positions for NODEs...
DEBUG: [readconfig@Weathermap.class.php:2107] configs/example.conf: Relative Positions Cycle 100 - set 0 and Skipped 0 for unresolved dependencies
DEBUG: [readconfig@Weathermap.class.php:2116] configs/example.conf: -----------------------------------
DEBUG: [readconfig@Weathermap.class.php:2119] configs/example.conf: Running Pre-Processing Plugins...
DEBUG: [readconfig@Weathermap.class.php:2122] configs/example.conf: Running WeatherMapPreProcessorTest->run()
DEBUG: [run@WeatherMapPreProcessorTest.php:11] configs/example.conf: Test Preprocessor in the hizouse
DEBUG: [readconfig@Weathermap.class.php:2125] configs/example.conf: Finished Pre-Processing Plugins...
DEBUG: [readdata@Weathermap.class.php:554] configs/example.conf: Running Init() for Data Source Plugins...
DEBUG: [readdata@Weathermap.class.php:559] configs/example.conf: Running WeatherMapDataSource_tabfile->Init()
DEBUG: [readdata@Weathermap.class.php:559] configs/example.conf: Running WeatherMapDataSource_fping->Init()
DEBUG: [readdata@Weathermap.class.php:559] configs/example.conf: Running WeatherMapDataSource_cactithold->Init()
DEBUG: [init@WeatherMapDataSource_cactithold.php:65] configs/example.conf: ReadData CactiTHold: Can only run from Cacti environment. [THOLD004]
DEBUG: [readdata@Weathermap.class.php:567] configs/example.conf: Removing WeatherMapDataSource_cactithold from Data Source list, since Init() failed
DEBUG: [readdata@Weathermap.class.php:559] configs/example.conf: Running WeatherMapDataSource_static->Init()
DEBUG: [readdata@Weathermap.class.php:559] configs/example.conf: Running WeatherMapDataSource_dbsample->Init()
DEBUG: [readdata@Weathermap.class.php:559] configs/example.conf: Running WeatherMapDataSource_external->Init()
DEBUG: [readdata@Weathermap.class.php:559] configs/example.conf: Running WeatherMapDataSource_snmp->Init()
DEBUG: [readdata@Weathermap.class.php:559] configs/example.conf: Running WeatherMapDataSource_cactihost->Init()
DEBUG: [init@WeatherMapDataSource_cactihost.php:21] configs/example.conf: ReadData CactiHost: Can only run from Cacti environment.
DEBUG: [readdata@Weathermap.class.php:567] configs/example.conf: Removing WeatherMapDataSource_cactihost from Data Source list, since Init() failed
DEBUG: [readdata@Weathermap.class.php:559] configs/example.conf: Running WeatherMapDataSource_mrtg->Init()
DEBUG: [readdata@Weathermap.class.php:559] configs/example.conf: Running WeatherMapDataSource_rrd->Init()
configs/example.conf: RRD DS: Can't find RRDTOOL. Check line 29 of the 'weathermap' script.
RRD-based TARGETs will fail. [WMRRD02]
DEBUG: [readdata@Weathermap.class.php:567] configs/example.conf: Removing WeatherMapDataSource_rrd from Data Source list, since Init() failed
DEBUG: [readdata@Weathermap.class.php:572] configs/example.conf: Finished Initialising Plugins...
DEBUG: [readdata@Weathermap.class.php:574] configs/example.conf: ======================================
DEBUG: [readdata@Weathermap.class.php:575] configs/example.conf: ReadData: Updating link data for all links and nodes
DEBUG: [readdata@Weathermap.class.php:600] configs/example.conf:
DEBUG: [readdata@Weathermap.class.php:601] configs/example.conf: ReadData for LINK itdcrr1-kancrr1-ist:
DEBUG: [readdata@Weathermap.class.php:607] configs/example.conf: ReadData: New Target: /usr/local/cacti/rra/itdcrr1_traffic_in_15.rrd:traffic_in:traffic_out
configs/example.conf: ReadData: LINK itdcrr1-kancrr1-ist, target: /usr/local/cacti/rra/itdcrr1_traffic_in_15.rrd:traffic_in:traffic_out on config line 89 was recognised as a valid TARGET by a plugin that is unable to run (WeatherMapDataSource_rrd) [WMWARN07]
DEBUG: [readdata@Weathermap.class.php:675] configs/example.conf: ReadData complete for LINK itdcrr1-kancrr1-ist: 0 0
DEBUG: [readdata@Weathermap.class.php:716] configs/example.conf: ReadData: Setting 0,0
DEBUG: [readdata@Weathermap.class.php:600] configs/example.conf:
DEBUG: [readdata@Weathermap.class.php:601] configs/example.conf: ReadData for NODE kancrr1:
DEBUG: [readdata@Weathermap.class.php:679] configs/example.conf: ReadData: No targets for NODE kancrr1
DEBUG: [readdata@Weathermap.class.php:716] configs/example.conf: ReadData: Setting 0,0
DEBUG: [readdata@Weathermap.class.php:600] configs/example.conf:
DEBUG: [readdata@Weathermap.class.php:601] configs/example.conf: ReadData for NODE itdcrr1:
DEBUG: [readdata@Weathermap.class.php:679] configs/example.conf: ReadData: No targets for NODE itdcrr1
DEBUG: [readdata@Weathermap.class.php:716] configs/example.conf: ReadData: Setting 0,0
DEBUG: [readdata@Weathermap.class.php:720] configs/example.conf: ReadData Completed.
DEBUG: [readdata@Weathermap.class.php:721] configs/example.conf: ------------------------------
DEBUG: [drawmap@Weathermap.class.php:2309] configs/example.conf: Running Post-Processing Plugins...
DEBUG: [drawmap@Weathermap.class.php:2312] configs/example.conf: Running WeatherMapPostProcessorTest->run()
DEBUG: [run@WeatherMapPostProcessorTest.php:27] configs/example.conf: weathermappostprocessortest Not Enabled
DEBUG: [drawmap@Weathermap.class.php:2317] configs/example.conf: Finished Post-Processing Plugins...
DEBUG: [drawmap@Weathermap.class.php:2319] configs/example.conf: =====================================
DEBUG: [drawmap@Weathermap.class.php:2320] configs/example.conf: Start of Map Drawing
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT KEYTEXT (0,0,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT KEYOUTLINE (0,0,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT KEYBG (255,255,255)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT BG (255,255,255)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT TITLE (0,0,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT TIME (0,0,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT 0_0 (192,192,192)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT 0_1 (255,255,255)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT 1_10 (140,0,255)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT 10_25 (32,32,255)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT 25_40 (0,192,255)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT 40_55 (0,240,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT 55_70 (240,240,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT 70_85 (255,192,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT 85_100 (255,0,0)
configs/example.conf: Using a non-existent special font (101) - falling back to internal GD fonts
DEBUG: [pre_render@WeatherMapNode.class.php:224] configs/example.conf: Node->pre_render: Label Metrics are: 63 x 15 -> 67 x 19
DEBUG: [pre_render@WeatherMapNode.class.php:365] configs/example.conf: Skipping unavailable imagefilter() call.
DEBUG: [pre_render@WeatherMapNode.class.php:368] configs/example.conf: If this is the last thing in your logs, you probably have a buggy GD library. Get > 2.0.33 or use PHP builtin.
configs/example.conf: Using a non-existent special font (101) - falling back to internal GD fonts [WMWARN03]
configs/example.conf: Using a non-existent special font (101) - falling back to internal GD fonts
DEBUG: [pre_render@WeatherMapNode.class.php:224] configs/example.conf: Node->pre_render: Label Metrics are: 63 x 15 -> 67 x 19
DEBUG: [pre_render@WeatherMapNode.class.php:365] configs/example.conf: Skipping unavailable imagefilter() call.
DEBUG: [pre_render@WeatherMapNode.class.php:368] configs/example.conf: If this is the last thing in your logs, you probably have a buggy GD library. Get > 2.0.33 or use PHP builtin.
configs/example.conf: Using a non-existent special font (101) - falling back to internal GD fonts [WMWARN03]
DEBUG: [draw@WeatherMapLink.class.php:269] configs/example.conf: Outline colour is NOT none for itdcrr1-kancrr1-ist Array
DEBUG: [colourfrompercent@Weathermap.class.php:871] configs/example.conf: CFPC itdcrr1-kancrr1-ist 0_0 192 192 192
DEBUG: [colourfrompercent@Weathermap.class.php:871] configs/example.conf: CFPC itdcrr1-kancrr1-ist 0_0 192 192 192
DEBUG: [draw_curve@WeatherMap.functions.php:723] configs/example.conf: Adding Poly imagemap for LINK:itdcrr1-kancrr1-ist:1
DEBUG: [draw_curve@WeatherMap.functions.php:723] configs/example.conf: Adding Poly imagemap for LINK:itdcrr1-kancrr1-ist:0
DEBUG: [draw@WeatherMapLink.class.php:421] configs/example.conf: Bandwidth for label is 0
configs/example.conf: Using a non-existent special font (100) - falling back to internal GD fonts
configs/example.conf: Using a non-existent special font (100) - falling back to internal GD fonts [WMWARN03]
DEBUG: [draw@WeatherMapLink.class.php:421] configs/example.conf: Bandwidth for label is 0
configs/example.conf: Using a non-existent special font (100) - falling back to internal GD fonts
configs/example.conf: Using a non-existent special font (100) - falling back to internal GD fonts [WMWARN03]
DEBUG: [drawmap@Weathermap.class.php:2394] configs/example.conf: Drawing KEY for DEFAULT if necessary.
DEBUG: [drawlegend_classic@Weathermap.class.php:1144] configs/example.conf: Drawing 9 colours into SCALE
configs/example.conf: Using a non-existent special font (102) - falling back to internal GD fonts
configs/example.conf: Using a non-existent special font (102) - falling back to internal GD fonts
configs/example.conf: Using a non-existent special font (102) - falling back to internal GD fonts
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT KEYTEXT (0,0,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT KEYOUTLINE (0,0,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT KEYBG (255,255,255)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT BG (255,255,255)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT TITLE (0,0,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT TIME (0,0,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT 0_0 (192,192,192)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT 0_1 (255,255,255)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT 1_10 (140,0,255)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT 10_25 (32,32,255)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT 25_40 (0,192,255)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT 40_55 (0,240,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT 55_70 (240,240,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT 70_85 (255,192,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/example.conf: AllocateScaleColours: DEFAULT 85_100 (255,0,0)
configs/example.conf: Using a non-existent special font (102) - falling back to internal GD fonts [WMWARN03]
PHP Notice: Undefined index: key in /usr/local/cacti/plugins/weathermap/Weathermap.class.php on line 1210
DEBUG: [colourfrompercent@Weathermap.class.php:871] configs/example.conf: CFPC 0_0 192 192 192
configs/example.conf: Using a non-existent special font (102) - falling back to internal GD fonts [WMWARN03]
PHP Notice: Undefined index: key in /usr/local/cacti/plugins/weathermap/Weathermap.class.php on line 1210
DEBUG: [colourfrompercent@Weathermap.class.php:871] configs/example.conf: CFPC 0_0 192 192 192
configs/example.conf: Using a non-existent special font (102) - falling back to internal GD fonts [WMWARN03]
PHP Notice: Undefined index: key in /usr/local/cacti/plugins/weathermap/Weathermap.class.php on line 1210
DEBUG: [colourfrompercent@Weathermap.class.php:871] configs/example.conf: CFPC 1_10 140 0 255
configs/example.conf: Using a non-existent special font (102) - falling back to internal GD fonts [WMWARN03]
PHP Notice: Undefined index: key in /usr/local/cacti/plugins/weathermap/Weathermap.class.php on line 1210
DEBUG: [colourfrompercent@Weathermap.class.php:871] configs/example.conf: CFPC 10_25 32 32 255
configs/example.conf: Using a non-existent special font (102) - falling back to internal GD fonts [WMWARN03]
PHP Notice: Undefined index: key in /usr/local/cacti/plugins/weathermap/Weathermap.class.php on line 1210
DEBUG: [colourfrompercent@Weathermap.class.php:871] configs/example.conf: CFPC 25_40 0 192 255
configs/example.conf: Using a non-existent special font (102) - falling back to internal GD fonts [WMWARN03]
PHP Notice: Undefined index: key in /usr/local/cacti/plugins/weathermap/Weathermap.class.php on line 1210
DEBUG: [colourfrompercent@Weathermap.class.php:871] configs/example.conf: CFPC 40_55 0 240 0
configs/example.conf: Using a non-existent special font (102) - falling back to internal GD fonts [WMWARN03]
PHP Notice: Undefined index: key in /usr/local/cacti/plugins/weathermap/Weathermap.class.php on line 1210
DEBUG: [colourfrompercent@Weathermap.class.php:871] configs/example.conf: CFPC 55_70 240 240 0
configs/example.conf: Using a non-existent special font (102) - falling back to internal GD fonts [WMWARN03]
PHP Notice: Undefined index: key in /usr/local/cacti/plugins/weathermap/Weathermap.class.php on line 1210
DEBUG: [colourfrompercent@Weathermap.class.php:871] configs/example.conf: CFPC 70_85 255 192 0
configs/example.conf: Using a non-existent special font (102) - falling back to internal GD fonts [WMWARN03]
PHP Notice: Undefined index: key in /usr/local/cacti/plugins/weathermap/Weathermap.class.php on line 1210
DEBUG: [colourfrompercent@Weathermap.class.php:871] configs/example.conf: CFPC 85_100 255 0 0
configs/example.conf: Using a non-existent special font (102) - falling back to internal GD fonts [WMWARN03]
DEBUG: [drawmap@Weathermap.class.php:2472] configs/example.conf: Writing PNG file to example.png
DEBUG: [@weathermap:231] configs/example.conf: Writing HTML to example.html
Content-type: text/html
X-Powered-By: PHP/4.3.9
Cacti Ver: 0.8.7h
netSNMP 5.4.2.1
PHP 5.3.2-1ubuntu4.9 with Suhosin-Patch
mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1
RRDtool 1.3.8
CCNA,CCDA,CCSE
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Mark. wrote:Is there any way to remove the arrows? They are misleading and kind of ugly. A simple line between the nodes or a lightening bolt option (for WAN circuits) would probably be ok with most of us.
Is that easily done or ?
Huh? So what would change colour? *part* of the lightning bolt? I don't understand why you think the arrows are misleading and why that would be an improvement :-? My WAN circuits are bidirectional...

I'm really curious though... please explain.
Mark. wrote: I've just installed 95b and am having a similar problem. I've increased to 128Mb and everything seems fine for a while (a couple hours) and eventually the CPU starts getting hammered by php instances (i'm seeing like 6 instances of php running). Then spine times out on various hosts. This is a new install. Anyone run into this problem?
I don't think that is weathermap. The poller process quits after 5 minutes max (see posts around here about 298 seconds). Weathermap dies with it. There's isn't a cumulative, memory-leak type of issue - php just kills the process when it hits the memory_limit, which for weathermap is usually when it's constructiing the final image, or loading the background if you have one. Check the cacti.log - weathermap finishes, and has updated the one map you have. It's doing that 11 seconds after the poller process started (assuming you have 5 minute polling). Seems healthy enough.

I'd try lsof or something similar to figure out what the php processes are doing - 'lsof -p pid-of-php-process' should tell you what files/sockets it has open, which might give a clue as to what is going on.
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
Mark.
Cacti User
Posts: 74
Joined: Tue Jul 03, 2007 4:11 pm
Location: San Luis Obispo

Post by Mark. »

Thanks for your help.
Regarding my link statements. I guess the arrow's aren't misleading.

I guess what I'm trying to figure out is, do I have to use link arrows? Can I just use a simple line? Is there a lightening Bolt Line (similar to those used in Visio Drawings) that I could use for my WAN Links?

I don't recall saying anything about Color.

Anyways, hopefully that helps. Thanks again for the help on my potential php problem. I'll disable the weathermap plugin while I monitor the server.
Cacti Ver: 0.8.7h
netSNMP 5.4.2.1
PHP 5.3.2-1ubuntu4.9 with Suhosin-Patch
mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1
RRDtool 1.3.8
CCNA,CCDA,CCSE
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Mark. wrote:Thanks for your help.
Regarding my link statements. I guess the arrow's aren't misleading.

I guess what I'm trying to figure out is, do I have to use link arrows? Can I just use a simple line? Is there a lightening Bolt Line (similar to those used in Visio Drawings) that I could use for my WAN Links?

I don't recall saying anything about Color.
The entire point of the plugin is to show usage, through (mainly) colours. If you'd like to use it as a replacement for Visio, then sure why not, but that's not where the thing is aimed. With that in mind, any link style is going to need a way to represent the utilisation, and also a way to go around corners.

You can reduce the size of the arrowheads to be flush with the link lines by using " ARROWSTYLE compact" though, and you can also say "WIDTH 1" if you want literally lines.
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
Mark.
Cacti User
Posts: 74
Joined: Tue Jul 03, 2007 4:11 pm
Location: San Luis Obispo

Post by Mark. »

oMG.

Using WM as a replacement for Visio? Give me a break.

I would like to use WM features (utilization, floating graphs, colors, etc.) but with a Visio look. I'll use ARROWSTYLE compact.

Thanks again.
Cacti Ver: 0.8.7h
netSNMP 5.4.2.1
PHP 5.3.2-1ubuntu4.9 with Suhosin-Patch
mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1
RRDtool 1.3.8
CCNA,CCDA,CCSE
User avatar
Mark.
Cacti User
Posts: 74
Joined: Tue Jul 03, 2007 4:11 pm
Location: San Luis Obispo

Post by Mark. »

Howie was right. It wasn't Weathermap. After disabling that plugin system performance still sucked.

I created a snapshot of my Virtual Machine before installing weathermap so I've reverted to that snapshot. Will continue to monitor.

The only thing I did other than installing weathermap was install php-gd.

We'll see what happens.

Issuing the 'lsof' showed that each instance of php was handling the same sub tasks. I'm not a linux admin by any means so I'm not sure if that is normal or what. But this isn't the right forum for figuring that out.
Cacti Ver: 0.8.7h
netSNMP 5.4.2.1
PHP 5.3.2-1ubuntu4.9 with Suhosin-Patch
mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1
RRDtool 1.3.8
CCNA,CCDA,CCSE
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest