Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu Feb 21, 2019 11:22 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: how do i get cacti to deliver data to weathermap
PostPosted: Sat Mar 17, 2018 4:30 pm 
Offline

Joined: Sat Mar 17, 2018 4:13 pm
Posts: 1
I have a problem to get weathermap to read data from cacti and make stats in weathermap.

I get this when i run weathermap:
WARNING: /XXXX/weathermap/configs/hjemme.conf: ProcessTargets: NODE PING, target: /var/lib/cacti/rra/ubnt_switch_ping_40.rrd':'ping':AVERAGE on config line 60 of /XXXX/weathermap/configs/hjemme.conf was not recognised as a valid TARGET [WMWARN08]

In the config file i have this:
NODE PING
LABEL Latency {node:this:bandwidth_in:%d} ms / Loss {node:this:bandwidth_out:%d}%
TARGET /var/lib/cacti/rra/ubnt_switch_ping_40.rrd':'ping':AVERAGE
USESCALE ping in percent
POSITION 755 53


Top
 Profile  
 
 Post subject: Re: how do i get cacti to deliver data to weathermap
PostPosted: Sat Mar 17, 2018 5:20 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5290
Location: United Kingdom
It's telling you it's not a valid target because it's not a valid target.

Assuming that your rrd file has DS named ping and AVERAGE (seems a bit strange), the target should be:

Code:
     TARGET /var/lib/cacti/rra/ubnt_switch_ping_40.rrd:ping:AVERAGE

(no apostrophes)

That will take the DS named 'ping' and use it for bandwidth_in, and the DS named 'AVERAGE' and use that for bandwidth_out.

That is close enough to a correct rrd target that even if the DS names are wrong, you will get a better error message in the logs. It'll tell you what the possible DS names are (because the rrd datasource plugin will recognise it as a valid target).

_________________
Weathermap 0.98 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!)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group