WeatherBug script & templates version 3.0 (weatherbug AP

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

User avatar
Simba7
Posts: 31
Joined: Tue Sep 11, 2007 10:56 am

Post by Simba7 »

Code: Select all

RRDTool Says:

ERROR: the RRD does not contain an RRA matching the chosen CF
This is really annoying.. This is the second script pulling this on me.
Alives
Cacti User
Posts: 103
Joined: Mon Jul 11, 2005 11:39 am

Post by Alives »

Simba7 wrote:

Code: Select all

RRDTool Says:

ERROR: the RRD does not contain an RRA matching the chosen CF
This is really annoying.. This is the second script pulling this on me.
You are doing something wrong. It is not the script. Seek help in the help area of the forums. I would like to keep replies on this thread related to this script and its use.

I just did a quick google search and found your answer here: http://forums.cacti.net/post-122652.html

Please look for the answers to your questions before asking.
Alives
Cacti User
Posts: 103
Joined: Mon Jul 11, 2005 11:39 am

Post by Alives »

Simba7 wrote:How do you set this up to do multiple cities/areas?

I want to monitor the areas where my routers and servers are.
Go to create graphs and add another instance of this. Again, I do not want to fill this thread with general cacti support.
BikerYamaha
Posts: 4
Joined: Sat Apr 19, 2008 3:32 am

Post by BikerYamaha »

I don`t get that, but the problem is still there.

That is from cacti host!

Code: Select all

[root@localhost scripts]# perl weatherbug_api.pl A5357708552 77211
DewPoint:42 Temp:79.0 Humidity:26 Wind:1 FeelsLike:78 Rain:0.00 Pressure:30.11
So, i think that perl work but the problem is with Template.

When i make new host script have problem with "data source" = none, And when i select humidity and click save its says saved successful. But when i open again its none again. and its again:

Code: Select all

 
RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Vrsac - Humidity" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--upper-limit=100 \
--lower-limit=0 \
--vertical-label="%" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/share/cacti/rra/vrsac_humidity_325.rrd":Humidity:LAST \
DEF:b="/usr/share/cacti/rra/vrsac_humidity_325.rrd":Humidity:AVERAGE \
DEF:c="/usr/share/cacti/rra/vrsac_humidity_325.rrd":Humidity:MAX \
AREA:a#157419FF:"Humidity\n"  \
GPRINT:a:LAST:"Current\:%8.2lf %s"  \
GPRINT:b:MIN:"Minimum\:%8.2lf %s"  \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:c:MAX:"Maximum\:%8.2lf %s\n" 

RRDTool Says:

ERROR: the RRD does not contain an RRA matching the chosen CF
User avatar
Simba7
Posts: 31
Joined: Tue Sep 11, 2007 10:56 am

Post by Simba7 »

Go to Data Sources, then RRA.. In each one, add "LAST" to it.
This *should* fix your problem. It fixed all of mine.

..but.. If you want to do multiple cities on one box, you have to do this:

Data Templates -> WeatherBug
-- Zipcode for weather lookup [checkmark Use Per-Data Source Value (Ignore this Value)]
Click Save
Data Sources -> In each "WeatherBug" device, you can enter a different zip code.

I have 3 different routers/servers in 3 different cities. This helped out when I wanted to monitor the temperate, etc. in each one.

Also, on a side note, it might me easier to put the zip code in Hostname instead, but I'm not sure where to add the code for that right now.
BikerYamaha
Posts: 4
Joined: Sat Apr 19, 2008 3:32 am

Post by BikerYamaha »

Go to Data Sources, then RRA.. In each one, add "LAST" to it.
This *should* fix your problem. It fixed all of mine.
I have made that done!!!!
Thanx

LAST in RRA is only prob.
Alives
Cacti User
Posts: 103
Joined: Mon Jul 11, 2005 11:39 am

Post by Alives »

The weatherbug metric template and script had some bugs. Please re-download them and re-create your devices and it shoudl work now.
h2d
Posts: 6
Joined: Fri Apr 18, 2008 9:30 am

Post by h2d »

Excellent, I now have this working :)

Unless ive missed something and i can easily relabel the graphs ?

Could something like $citycode be written to the graph template, so it displays the City that you are polling.

I want to graph 7 different citys, however they all look the same !

They only way from what i can see to tell the difference is to look at the data source for each one, which isnt really convenient.

Cheers
Alives
Cacti User
Posts: 103
Joined: Mon Jul 11, 2005 11:39 am

Post by Alives »

h2d wrote:I want to graph 7 different citys, however they all look the same !
Make 7 different devices
BikerYamaha
Posts: 4
Joined: Sat Apr 19, 2008 3:32 am

Post by BikerYamaha »

I have problem with pressure.

Pressure is 1009 mbar but on graph is Current: 1.01k!!!

That is incorrect!
Alives
Cacti User
Posts: 103
Joined: Mon Jul 11, 2005 11:39 am

Post by Alives »

That is correct actually. 1.01k ~ 1009 (its called rounding).

Graph template has been reposted to fix this.
cajunrick
Posts: 7
Joined: Mon Oct 01, 2007 11:03 am

Two problems

Post by cajunrick »

We've finally gotten it working and all is well, except for two (relatively) minor problems.

1. The weather station at our ZIP code does not report rainfall. There are alternate stations available. How difficult would it be to request information by station code rather than by ZIP or city code? What modifications would be necessary? Can some stations be by ZIP code and others by station code?

2. Some of our reporting sites seem to be reporting rainfall incorrectly. For example, Weatherbug itself shows that one station had .09" of rain this morniing, but the graph shows "90 m". Any thoughts as to how we can compenstate for this error? Obviously there is a significant difference between .09" and 90 m of rain!
Alives
Cacti User
Posts: 103
Joined: Mon Jul 11, 2005 11:39 am

Post by Alives »

1) That shouldnt be too hard. Take a look at the script and see what you can do. You might be better off with the first script posted.

2) I think thats rrdtool's fault. It is showing 90 milli-inches of rain. Try going into the graph template and setting each line at the top to use Exact Numbers... if that works I will fix it and re-release the template.
User avatar
bmarofsky
Posts: 49
Joined: Tue Aug 28, 2007 8:35 am
Location: Southington, CT

Post by bmarofsky »

When trying to import I get this- Error: XML parse error.

I have been searching for solutions and have not found one.

Can anyone point me in the right direction?

Cacti v. 0.8.7b on a Win XP box.
Brian

Cacti Version 0.8.7g
Plugin Architecture 2.8
Poller Type Cactid v
Server Info Linux 2.6.9-89.29.1.plus.c4
Web Server Apache/2.0.63 (CentOS)
PHP Version 5.1.6
MySQL Version 5.0.82sp1
RRDTool Version 1.2.23
SNMP Version 5.1.2
Plugins:
Global Plugin Settings (settings - v0.7)
Cycle Graphs (Cycle Graphs - v0.7+)
Thresholds (thold - v0.4.2)
Create Aggregate Graphs (aggregate - v0.75)
Device Monitoring (monitor - v1.2)
Network Tools (tools - v0.3)
Update Checker (update - v0.4)
Host Info (hostinfo - v0.2)
Error Images (errorimage - v0.1)
Cacti-ReportIt (reportit - v0.7.2)
WMI Query (wmi - v0.1)
Realtime Graph Viewer (realtime - v0.42)
Watermark (watermark - v0.1)
User avatar
Simba7
Posts: 31
Joined: Tue Sep 11, 2007 10:56 am

Post by Simba7 »

bmarofsky wrote:When trying to import I get this- Error: XML parse error.

I have been searching for solutions and have not found one.

Can anyone point me in the right direction?

Cacti v. 0.8.7b on a Win XP box.
I'm having the same problem in Gentoo.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest