Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Zenoss and Weathermap

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
turqmr2



Joined: 23 Apr 2008
Posts: 4

PostPosted: Thu Apr 24, 2008 10:04 am    Post subject: Zenoss and Weathermap Reply with quote

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: 1958
Location: United Kingdom

PostPosted: Thu Apr 24, 2008 11:09 am    Post subject: Reply with quote

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

PostPosted: Thu Apr 24, 2008 11:55 am    Post subject: Almost Reply with quote

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: 1958
Location: United Kingdom

PostPosted: Thu Apr 24, 2008 12:19 pm    Post subject: Reply with quote

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

PostPosted: Thu Apr 24, 2008 12:28 pm    Post subject: Reply with quote

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: 1958
Location: United Kingdom

PostPosted: Thu Apr 24, 2008 1:03 pm    Post subject: Reply with quote

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

PostPosted: Thu Apr 24, 2008 1:09 pm    Post subject: Thanks! Reply with quote

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!



core.png
 Description:
 Filesize:  403 KB
 Viewed:  1180 Time(s)

core.png


Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group