plugin weathermap problem

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
abenet
Posts: 1
Joined: Mon Mar 02, 2009 4:17 am

plugin weathermap problem

Post by abenet »

Hi,

I installed a cacti + weathermap,.. but when I execute the command " php ./weathermap --debug --config configs/bscmap.conf" it never ends.

Can someone help me??

Thank you very much for everything

root@root:> php ./weathermap --debug --config configs/bscmap.conf
DEBUG: [@weathermap:176] ------------------------------------
DEBUG: [@weathermap:177] Starting PHP-Weathermap run, with config: configs/bscmap.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:541] Skipping .
DEBUG: [loadplugins@Weathermap.class.php:541] Skipping ..
DEBUG: [loadplugins@Weathermap.class.php:541] Skipping README.txt
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: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: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: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_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: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: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_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_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_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:541] Skipping WeatherMapDataSource_skeleton.php.txt
DEBUG: [loadplugins@Weathermap.class.php:498] Beginning to load pre plugins from lib/pre
DEBUG: [loadplugins@Weathermap.class.php:541] Skipping .
DEBUG: [loadplugins@Weathermap.class.php:541] Skipping ..
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: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: [readconfig@Weathermap.class.php:1362] configs/bscmap.conf: Saving Node: CAT6509
DEBUG: [readconfig@Weathermap.class.php:1362] configs/bscmap.conf: Saving Node: FORCE10
DEBUG: [setbandwidth@WeatherMapLink.class.php:139] configs/bscmap.conf: Setting bandwidth (1G -> 1000000000 bps, 1G -> 1000000000 bps, KILO = 1000)
DEBUG: [readconfig@Weathermap.class.php:2018] configs/bscmap.conf: Saving Link: CAT6509-FORCE10
DEBUG: [readconfig@Weathermap.class.php:2031] configs/bscmap.conf: ReadConfig has finished reading the file (67 lines)
DEBUG: [readconfig@Weathermap.class.php:2032] configs/bscmap.conf: ------------------------------------------
DEBUG: [readconfig@Weathermap.class.php:2059] configs/bscmap.conf: Already have 8 scales, no defaults added.
DEBUG: [readconfig@Weathermap.class.php:2067] configs/bscmap.conf: Resolving relative positions for NODEs...
DEBUG: [readconfig@Weathermap.class.php:2107] configs/bscmap.conf: Relative Positions Cycle 100 - set 0 and Skipped 0 for unresolved dependencies
DEBUG: [readconfig@Weathermap.class.php:2116] configs/bscmap.conf: -----------------------------------
DEBUG: [readconfig@Weathermap.class.php:2119] configs/bscmap.conf: Running Pre-Processing Plugins...
DEBUG: [readconfig@Weathermap.class.php:2122] configs/bscmap.conf: Running WeatherMapPreProcessorTest->run()
DEBUG: [run@WeatherMapPreProcessorTest.php:11] configs/bscmap.conf: Test Preprocessor in the hizouse
DEBUG: [readconfig@Weathermap.class.php:2125] configs/bscmap.conf: Finished Pre-Processing Plugins...
DEBUG: [readdata@Weathermap.class.php:554] configs/bscmap.conf: Running Init() for Data Source Plugins...
DEBUG: [readdata@Weathermap.class.php:559] configs/bscmap.conf: Running WeatherMapDataSource_cactihost->Init()
DEBUG: [init@WeatherMapDataSource_cactihost.php:21] configs/bscmap.conf: ReadData CactiHost: Can only run from Cacti environment.
DEBUG: [readdata@Weathermap.class.php:567] configs/bscmap.conf: Removing WeatherMapDataSource_cactihost from Data Source list, since Init() failed
DEBUG: [readdata@Weathermap.class.php:559] configs/bscmap.conf: Running WeatherMapDataSource_cactithold->Init()
DEBUG: [init@WeatherMapDataSource_cactithold.php:65] configs/bscmap.conf: ReadData CactiTHold: Can only run from Cacti environment. [THOLD004]
DEBUG: [readdata@Weathermap.class.php:567] configs/bscmap.conf: Removing WeatherMapDataSource_cactithold from Data Source list, since Init() failed
DEBUG: [readdata@Weathermap.class.php:559] configs/bscmap.conf: Running WeatherMapDataSource_dbsample->Init()
DEBUG: [readdata@Weathermap.class.php:559] configs/bscmap.conf: Running WeatherMapDataSource_external->Init()
DEBUG: [readdata@Weathermap.class.php:559] configs/bscmap.conf: Running WeatherMapDataSource_mrtg->Init()
DEBUG: [readdata@Weathermap.class.php:559] configs/bscmap.conf: Running WeatherMapDataSource_rrd->Init()
DEBUG: [readdata@Weathermap.class.php:559] configs/bscmap.conf: Running WeatherMapDataSource_static->Init()
DEBUG: [readdata@Weathermap.class.php:559] configs/bscmap.conf: Running WeatherMapDataSource_tabfile->Init()
DEBUG: [readdata@Weathermap.class.php:559] configs/bscmap.conf: Running WeatherMapDataSource_snmp->Init()
DEBUG: [readdata@Weathermap.class.php:559] configs/bscmap.conf: Running WeatherMapDataSource_fping->Init()
DEBUG: [readdata@Weathermap.class.php:572] configs/bscmap.conf: Finished Initialising Plugins...
DEBUG: [readdata@Weathermap.class.php:574] configs/bscmap.conf: ======================================
DEBUG: [readdata@Weathermap.class.php:575] configs/bscmap.conf: ReadData: Updating link data for all links and nodes
DEBUG: [readdata@Weathermap.class.php:600] configs/bscmap.conf:
DEBUG: [readdata@Weathermap.class.php:601] configs/bscmap.conf: ReadData for LINK CAT6509-FORCE10:
DEBUG: [readdata@Weathermap.class.php:607] configs/bscmap.conf: ReadData: New Target: /bsc/www/htdocs/cacti/rra/catalyst_6509_traffic_in_9.rrd
DEBUG: [readdata@Weathermap.class.php:638] configs/bscmap.conf: ReadData: Matched for WeatherMapDataSource_rrd. Calling WeatherMapDataSource_rrd->ReadData()
DEBUG: [readdata@WeatherMapDataSource_rrd.php:333] configs/bscmap.conf: SCALING result by 8
DEBUG: [readdata@WeatherMapDataSource_rrd.php:361] configs/bscmap.conf: RRD ReadData: Target DS names are traffic_in and traffic_out
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:174] configs/bscmap.conf: RRD ReadData: traditional style
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:189] configs/bscmap.conf: RRD ReadData: Running: /usr/bin/rrdtool fetch /bsc/www/htdocs/cacti/rra/catalyst_6509_traffic_in_9.rrd AVERAGE --start now-800 --end now
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:209] configs/bscmap.conf: > 1235984700: 5.4748083760e+06 2.9877472723e+06
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:209] configs/bscmap.conf: > 1235985000: 1.0393929030e+07 3.0840453142e+06
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:209] configs/bscmap.conf: > 1235985300: 9.2509839600e+06 3.0700804431e+06
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:209] configs/bscmap.conf: > 1235985600: 9.3015735314e+06 3.0036303618e+06
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:209] configs/bscmap.conf: > 1235985900: nan nan
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:209] configs/bscmap.conf: > DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:216] configs/bscmap.conf: RRD ReadData: Read 6 lines from rrdtool
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:217] configs/bscmap.conf: RRD ReadData: Headings are: traffic_in traffic_out

DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:226] configs/bscmap.conf: --
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:226] configs/bscmap.conf: --1235985900: nan nan

DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:226] configs/bscmap.conf: --1235985600: 9.3015735314e+06 3.0036303618e+06

DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:247] configs/bscmap.conf: 9.3015735314e+06 is OK value for traffic_in
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:247] configs/bscmap.conf: 3.0036303618e+06 is OK value for traffic_out
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:281] configs/bscmap.conf: RRD ReadDataFromRealRRD: Returning (9.3015735314e+06,9.3015735314e+06,1235985600)
DEBUG: [readdata@WeatherMapDataSource_rrd.php:384] configs/bscmap.conf: RRD ReadData: Returning (74412588.2512,74412588.2512,1235985600)
DEBUG: [readdata@Weathermap.class.php:675] configs/bscmap.conf: ReadData complete for LINK CAT6509-FORCE10: 74412588.2512 24029042.8944
DEBUG: [readdata@Weathermap.class.php:716] configs/bscmap.conf: ReadData: Setting 74412588.2512,24029042.8944
DEBUG: [readdata@Weathermap.class.php:600] configs/bscmap.conf:
DEBUG: [readdata@Weathermap.class.php:601] configs/bscmap.conf: ReadData for NODE CAT6509:
DEBUG: [readdata@Weathermap.class.php:679] configs/bscmap.conf: ReadData: No targets for NODE CAT6509
DEBUG: [readdata@Weathermap.class.php:716] configs/bscmap.conf: ReadData: Setting 0,0
DEBUG: [readdata@Weathermap.class.php:600] configs/bscmap.conf:
DEBUG: [readdata@Weathermap.class.php:601] configs/bscmap.conf: ReadData for NODE FORCE10:
DEBUG: [readdata@Weathermap.class.php:679] configs/bscmap.conf: ReadData: No targets for NODE FORCE10
DEBUG: [readdata@Weathermap.class.php:716] configs/bscmap.conf: ReadData: Setting 0,0
DEBUG: [readdata@Weathermap.class.php:720] configs/bscmap.conf: ReadData Completed.
DEBUG: [readdata@Weathermap.class.php:721] configs/bscmap.conf: ------------------------------
DEBUG: [drawmap@Weathermap.class.php:2309] configs/bscmap.conf: Running Post-Processing Plugins...
DEBUG: [drawmap@Weathermap.class.php:2312] configs/bscmap.conf: Running WeatherMapPostProcessorTest->run()
DEBUG: [run@WeatherMapPostProcessorTest.php:27] configs/bscmap.conf: weathermappostprocessortest Not Enabled
DEBUG: [drawmap@Weathermap.class.php:2317] configs/bscmap.conf: Finished Post-Processing Plugins...
DEBUG: [drawmap@Weathermap.class.php:2319] configs/bscmap.conf: =====================================
DEBUG: [drawmap@Weathermap.class.php:2320] configs/bscmap.conf: Start of Map Drawing
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/bscmap.conf: AllocateScaleColours: DEFAULT KEYTEXT (0,0,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/bscmap.conf: AllocateScaleColours: DEFAULT KEYOUTLINE (0,0,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/bscmap.conf: AllocateScaleColours: DEFAULT KEYBG (255,255,255)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/bscmap.conf: AllocateScaleColours: DEFAULT BG (255,255,255)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/bscmap.conf: AllocateScaleColours: DEFAULT TITLE (0,0,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/bscmap.conf: AllocateScaleColours: DEFAULT TIME (0,0,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/bscmap.conf: AllocateScaleColours: DEFAULT 0_0.001 (0,0,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/bscmap.conf: AllocateScaleColours: DEFAULT 0.001_10 (140,0,255)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/bscmap.conf: AllocateScaleColours: DEFAULT 10_25 (32,32,255)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/bscmap.conf: AllocateScaleColours: DEFAULT 25_40 (0,192,255)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/bscmap.conf: AllocateScaleColours: DEFAULT 40_55 (0,240,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/bscmap.conf: AllocateScaleColours: DEFAULT 55_70 (240,240,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/bscmap.conf: AllocateScaleColours: DEFAULT 70_85 (255,192,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/bscmap.conf: AllocateScaleColours: DEFAULT 85_100 (255,0,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/bscmap.conf: AllocateScaleColours: cactiupdown 0_0.5 (192,192,192)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/bscmap.conf: AllocateScaleColours: cactiupdown 0.5_1.5 (255,0,0)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/bscmap.conf: AllocateScaleColours: cactiupdown 1.5_2.5 (0,0,255)
DEBUG: [allocatescalecolours@Weathermap.class.php:2297] configs/bscmap.conf: AllocateScaleColours: cactiupdown 2.5_3.5 (0,255,0)
DEBUG: [pre_render@WeatherMapNode.class.php:224] configs/bscmap.conf: Node->pre_render: Label Metrics are: 49 x 13 -> 53 x 17
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Run php check.php and php check-gdbug.php

I think you have a buggy gd library.
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