CF error in the weathermap from SVN

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
ok1ean
Posts: 4
Joined: Tue Jun 19, 2012 10:30 pm
Location: Yekaterinburg, Russia

CF error in the weathermap from SVN

Post by ok1ean »

Hi Howie!
I installed the latest version from SVN (revision 617).
Maps are drawn, but there is no color-coded arrows. Cacti are written to the log errors on each link of the configuration files, for example, one of the entries:
WEATHERMAP: Poller[0] WARNING: [Map 44] COD.conf: ReadData: LINK ACSW24, target: /var/lib/cacti/rra/88/3699.rrd on config line 1323 of /usr/share/cacti/site/plugins/weathermap/configs/COD.conf had no valid data, according to WeatherMapDataSource_rrd [WMWARN70]
WEATHERMAP: Poller[0] WARNING: [Map 44] COD.conf: RRD ReadData: At least one of your DS names (traffic_in and traffic_out) were not found, even though there was a valid data line. Maybe they are wrong? Valid DS names in this file are: [WMRRD06]
In debug shows that one of the parameters passed to rrdtool not follows the syntax:
/usr/bin/rrdtool fetch /var/lib/cacti/rra/88/3699.rrd 0 --start now-800 --end now
But all files *.rrd contains the parameter "AVERAGE".

In order that all displays correctly I modified lines in the file /weathermap/lib/datasources/WeatherMapDataSource_rrd.php:
comment out the lines

Code: Select all

$cfname = intval($map->get_hint('rrd_cf'));
	if($cfname===null) $cfname='AVERAGE';
and added a line

Code: Select all

$cfname='AVERAGE';
How to determine origin of the this value of the parameter? It is read from a database or file *.rrd?

I am sorry for my bad english - I use a google translate.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest