Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu Dec 13, 2018 12:22 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Get RRD information of graph from CLI
PostPosted: Fri Nov 30, 2018 2:34 pm 
Offline

Joined: Sat Apr 07, 2018 4:03 pm
Posts: 1
Hello,

At first, Thank you for dealing,
We are using a cacti 0.8.8h on our network, and with cli command or commands, I want to find which interface is associated to which rrd's?
Is there any way to do this?
Thanks for reply,

Example:
I want to find the information of this line "DEF:a='/var/www/html/cacti-0.8.8h/rra/XXXXXX_sw_traffic_in_18058.rrd':'traffic_out':"

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='1543519072' \
--end='1543605472' \
--title='XXXXXX' \
--rigid \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
COMMENT:"From 2018/11/29 22\:17\:52 To 2018/11/30 22\:17\:52\c" \
COMMENT:" \n" \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a='/var/www/html/cacti-0.8.8h/rra/XXXXXX_sw_traffic_in_18058.rrd':'traffic_out':AVERAGE \
DEF:b='/var/www/html/cacti-0.8.8h/rra/XXXXXX_sw_traffic_in_18058.rrd':'traffic_in':AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdefe='b,8,*' \
AREA:cdefa#00CF00FF:'Downlink' \
GPRINT:cdefa:LAST:'Current\:%8.2lf %s' \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefa:MAX:'Maximum\:%8.2lf %s\n' \
LINE1:cdefe#002A97FF:'Uplink' \
GPRINT:cdefe:LAST:' Current\:%8.2lf %s' \
GPRINT:cdefe:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefe:MAX:'Maximum\:%8.2lf %s\n'

Sincerely,


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

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