Edit Graph / Add datasource to untemplated graph by CLI

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
tigerz
Posts: 20
Joined: Fri May 20, 2016 3:41 pm

Edit Graph / Add datasource to untemplated graph by CLI

Post by tigerz »

Hi,

after created aggregated graph with Aggregate Plugin
need to maintenance this graph by adding new datasource manually by CLI each and every time a new interface is added/changed
guessing it's related to rrdtool but didn't find any relevant information for edit untemplated graph (manually added graph)

thanks in advance,

Cacti Version 0.8.8f
tigerz
Posts: 20
Joined: Fri May 20, 2016 3:41 pm

Re: Edit Graph / Add datasource to untemplated graph by CLI

Post by tigerz »

for example

once created aggregate graph, need to update datasources
the issue is that the sequence of the DS is important since using cdef and AREA/STACK method
looking for an option to update additional DS to a specific sequence in the graph


DEF:a='/var/www/html/cacti/rra/r1_queue6_40666.rrd':'queue5':AVERAGE \
DEF:b='/var/www/html/cacti/rra/r1_queue6_40627.rrd':'queue5':AVERAGE \
DEF:c='/var/www/html/cacti/rra/r1_queue6_40672.rrd':'queue5':AVERAGE \
DEF:d= ---new datasource will be located here---
DEF:e='/var/www/html/cacti/rra/r1_queue6_40634.rrd':'queue5':AVERAGE \
DEF:f='/var/www/html/cacti/rra/r1_queue6_47733.rrd':'queue5':AVERAGE \
DEF:g='/var/www/html/cacti/rra/r1_queue6_47902.rrd':'queue5':AVERAGE \


since its an very dynamic graph, not effective to update it all the time by GUI but only by CLI command

Regards,



Cacti Version 0.8.8f
tigerz
Posts: 20
Joined: Fri May 20, 2016 3:41 pm

Re: Edit Graph / Add datasource to untemplated graph by CLI

Post by tigerz »

still looking to add/remove DS or any item to graph by CLI
any suggestions?

thanks in advance
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Edit Graph / Add datasource to untemplated graph by CLI

Post by netniV »

Have you checked the file in the <cacti>/cli/ folder? There's a bunch of cli based scripts there for manipulating things, though it is possible that you're specific need is not addressed, it's worth checking.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
tigerz
Posts: 20
Joined: Fri May 20, 2016 3:41 pm

Re: Edit Graph / Add datasource to untemplated graph by CLI

Post by tigerz »

thanks, but i checked the cli folder and unfortunately nothing is related to what i'm looking for

there's no bash command or some kind of tool that can add exist DS to aggregated graph manualy?
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Edit Graph / Add datasource to untemplated graph by CLI

Post by netniV »

In that case, I would open an issue on the GitHub issues page to track an enhancement for this request.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
tigerz
Posts: 20
Joined: Fri May 20, 2016 3:41 pm

Re: Edit Graph / Add datasource to untemplated graph by CLI

Post by tigerz »

thank you

posted a request to follow:
https://github.com/Cacti/cacti/issues/1 ... -358362773
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests