I have just installed Weathermap and I am getting a seg fault when trying to add nodes.
If I run "php weathermap ....." with a simple file (no nodes, just background and legend) it works fine. However, when I add a simple node it crashes with the following debug output:
Installation:prompt# php ./weathermap --config /var/www/cacti/plugins/weathermap/configs/Internet.conf --debug --output weathermap_2.png --htmloutput weathermap_2.html
Content-type: text/html
X-Powered-By: PHP/4.3.2
------------------------------------
Starting PHP-Weathermap run, with config: /var/www/cacti/plugins/weathermap/configs/Internet.conf
Setting bandwidth (100 -> 100 bps, 100 -> 100 bps, KILO = 1000)i/plugins/weathermap/configs/Internet.conf --output weathermap_2.png --htmloutput weathermap_.
Saving Default Node: DEFAULT
Setting bandwidth (100M, 100M)
Saving Default Link: DEFAULT
Saving Node: PP8KFOM1
Already have 7 scales, no defaults added.
Cycle 100 - set 0 and Skipped 0 for unresolved dependencies
Running Pre-Processing Plugins...
Running WeatherMapPreProcessorTest->run()
Test Preprocessor in the hizouse
Finished Pre-Processing Plugins...
Running Init() for Data Source Plugins...
Running WeatherMapDataSource_cactihost->Init()
ReadData CactiHost: Can only run from Cacti environment.
Removing WeatherMapDataSource_cactihost from Data Source roster
Running WeatherMapDataSource_dbsample->Init()
Running WeatherMapDataSource_external->Init()
Running WeatherMapDataSource_mrtg->Init()
Running WeatherMapDataSource_rrd->Init()
Running WeatherMapDataSource_snmp->Init()
SNMP DS: snmpget() not found. Do you have the PHP SNMP module?
Removing WeatherMapDataSource_snmp from Data Source roster
Running WeatherMapDataSource_static->Init()
Running WeatherMapDataSource_tabfile->Init()
Finished Initialising Plugins...
================== ReadData: Updating link data for all links and nodes
ReadData for NODE ROUTER1:
ReadData: No targets for NODE ROUTER1
ReadData: Setting 0,0
ReadData Completed.
--------------
Running Post-Processing Plugins...
Running WeatherMapPostProcessorTest->run()
weathermappostprocessortest Not Enabled
Finished Post-Processing Plugins...
AllocateScaleColours: DEFAULT KEYTEXT (0,0,0)
AllocateScaleColours: DEFAULT KEYBG (255,255,255)
AllocateScaleColours: DEFAULT BG (255,255,255)
AllocateScaleColours: DEFAULT TITLE (0,0,0)
AllocateScaleColours: DEFAULT TIME (0,0,0)
AllocateScaleColours: DEFAULT 1:10 (140,0,255)
AllocateScaleColours: DEFAULT 10:25 (32,32,255)
AllocateScaleColours: DEFAULT 25:40 (0,192,255)
AllocateScaleColours: DEFAULT 40:55 (0,240,0)
AllocateScaleColours: DEFAULT 55:70 (240,240,0)
AllocateScaleColours: DEFAULT 70:85 (255,192,0)
AllocateScaleColours: DEFAULT 85:100 (255,0,0)
Node->pre_render: Label Metrics are: 28 x 13 -> 32 x 17
Segmentation fault
Red Hat EL3
Cacti 0.8.6j
weathermap 0.9
gd-1.8.4-12
PHP 4.3.2 (cgi) ---- Copyright (c) 1997-2003 The PHP Group, Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
Any help would be appreciated....
Thanks in advance,
Regards
[/quote]