Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Jun 25, 2017 1:53 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Adding Link that is not based on Interface OID
PostPosted: Mon Sep 12, 2016 11:02 am 
Offline

Joined: Mon Sep 12, 2016 10:56 am
Posts: 1
Hello
I am creating a graph that is reporting traffic based on Rate limit OID - meaning I have 2 OID that for one Link.
the graph is working well - but I need a way to create it as a link in the Weathermap.
In fact I have 2 DS each one from a different Data Source.
I need this to be like regular interface links - with colors and percentages.
Ideas will be welcome!

Mike


Top
 Profile  
 
 Post subject: Re: Adding Link that is not based on Interface OID
PostPosted: Tue Oct 04, 2016 3:45 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5111
Location: United Kingdom
You can take data from multiple files and add it together. You can also take data for 'in' from a different file to the data for 'out'. You need to know the DS names inside your rrd files though. You can see these in the 'debug graph' output for your graph. If you get them wrong, weathermap will produce an error in the log that tells you what the possible correct ones are, too.

Code:

LINK link1
   NODES a b
   TARGET rrdfile1.rrd:dsname:- rrdfile2.rrd:-:otherdsname


So that is taking the DS named 'dsname' from rrdfile1 and stuffing it into the 'in' value of the link, then taking the 'otherdsname' DS from rrdfile2 and using that for 'out'. If you needed to, you can repeat this to add several values for each of in and out.

_________________
Weathermap 0.98 is out! & QuickTree 0.2. Superlinks is over there now.
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 3 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