|
|
| Author |
Message |
turqmr2
Joined: 23 Apr 2008 Posts: 4
|
Posted: Thu Apr 24, 2008 10:04 am Post subject: Zenoss and Weathermap |
|
|
I'm attempting to use the RRD files generated by Zenoss (www.zenoss.com) as the source for my weathermap. There seems to be a problem with the spaces in the local path to the rrd files.
For example: | Code: | | /usr/local/zenoss/perf/Devices/Admin_Bldg_Core_Switch/os/interfaces/RMON VLAN 00001/ifInOctets_ifInOctets.rrd |
The target attribute for the first node is
| Code: | | TARGET {map:adminbldgcore}/ifInOctets_ifInOctets.rrd:-:DS0 {map:adminbldgcore}/ifOutOctets_ifOutOctets.rrd:DS0:- |
Setting the variable:
| Code: | | SET adminbldgcore /usr/local/zenoss/perf/Devices/Admin_Bldg_Core_Switch/os/interfaces/RMON VLAN 00001 |
Command:
| Code: | | php ./weathermap --config configs/core.conf --output core.png --htmloutput core.html |
Output:
| Code: | ERROR: unknown consolidation function 'VLAN'
configs/core.conf: RRD ReadData: At least one of your DS names (- and DS0) were not found, even though there was a valid data line. Maybe they are wrong? Valid DS names in this file are: [WMRRD06]
configs/core.conf: ReadData: NODE 172.18.28.47, target: rrd:/usr/local/zenoss/perf/Devices/Admin_Bldg_Core_Switch/os/interfaces/RMON VLAN 00001/ifInOctets_ifInOctets.rrd:-:DS0 on config line 46 had no valid data, according to WeatherMapDataSource_rrd
ERROR: unknown consolidation function 'VLAN'
configs/core.conf: RRD ReadData: At least one of your DS names (DS0 and -) were not found, even though there was a valid data line. Maybe they are wrong? Valid DS names in this file are: [WMRRD06]
configs/core.conf: ReadData: NODE 172.18.28.47, target: /usr/local/zenoss/perf/Devices/Admin_Bldg_Core_Switch/os/interfaces/RMON VLAN 00001/ifOutOctets_ifOutOctets.rrd:DS0:- on config line 46 had no valid data, according to WeatherMapDataSource_rrd |
Thanks for any help
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 1989 Location: United Kingdom
|
Posted: Thu Apr 24, 2008 11:09 am Post subject: |
|
|
OK. You are correct that you'd need to set the variable for the path to avoid the TARGET being interpreted as multiple aggregated targets.
It looks like the rrdtool datasource plugin could use a couple of single-quotes to solve that side of it though... Try uncommenting line 185 and commenting line 186 in lib/datasources/WeatherMapDataSource_rrd.php
That used to be the default, but it turned out to break Windows rrdtool...
|
|
| Back to top |
|
 |
turqmr2
Joined: 23 Apr 2008 Posts: 4
|
Posted: Thu Apr 24, 2008 11:55 am Post subject: Almost |
|
|
Thanks for the quick reply, Howie.
The change you specified fixed the RRDtool errors, but the rest of the output is the same. I changed the rrd to double check and got the same error. Since I am new to all three systems involved, keep in mind I might be making a basic error.
Thanks again!
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 1989 Location: United Kingdom
|
Posted: Thu Apr 24, 2008 12:19 pm Post subject: |
|
|
According to this the DS name should be ds0 not DS0 (they are case sensitive as far as I know).
Which errors remain after that?
|
|
| Back to top |
|
 |
turqmr2
Joined: 23 Apr 2008 Posts: 4
|
Posted: Thu Apr 24, 2008 12:28 pm Post subject: |
|
|
That's the link that got me started on this. I was changing things blindly while trying to understand how this works. Here is the error that remains:
| Code: | configs/core.conf: ReadData: NODE 172.18.28.47, target: rrd:/usr/local/zenoss/perf/Devices/Admin 3870 Switch Stack/os/interfaces/VLAN 00001/ifInOctets_ifInOctets.rrd:-:ds0 on config line 47 had no valid data, according to WeatherMapDataSource_rrd
configs/core.conf: ReadData: NODE 172.18.28.47, target: rrd:/usr/local/zenoss/perf/Devices/Admin 3870 Switch Stack/os/interfaces/VLAN 00001/ifOutOctets_ifOutOctets.rrd:ds0:- on config line 47 had no valid data, according to WeatherMapDataSource_rrd |
Here is the config, I removed all nodes and links and added this:
| Code: | SET adminbldgcore /usr/local/zenoss/perf/Devices/Admin 3870 Switch Stack/os/interfaces/VLAN 00001
NODE 172.18.28.47
LABEL Admin Bldg Core Switch
TARGET rrd:{map:adminbldgcore}/ifInOctets_ifInOctets.rrd:-:ds0 rrd:{map:adminbldgcore}/ifOutOctets_ifOutOctets.rrd:ds0:-
POSITION 260 90 |
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 1989 Location: United Kingdom
|
Posted: Thu Apr 24, 2008 1:03 pm Post subject: |
|
|
| OK - well, that's looking better... now try running with --debug and you'll get a lot more information out of the data plugins - look for lines that mention ReadData or ReadData RRD. You should see some sort of clue as to why it thinks there's no data.
|
|
| Back to top |
|
 |
turqmr2
Joined: 23 Apr 2008 Posts: 4
|
Posted: Thu Apr 24, 2008 1:09 pm Post subject: Thanks! |
|
|
I looked at the graphs through Zenoss and there was, indeed, no data in the two files I was trying to use.
I finally have my very first node! Thanks for all your help!
| Description: |
|
| Filesize: |
403 KB |
| Viewed: |
1252 Time(s) |

|
|
|
| Back to top |
|
 |
|