[solved] Real count value.

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
winfuk
Posts: 2
Joined: Sat Nov 22, 2008 8:40 pm

[solved] Real count value.

Post by winfuk »

hi all

I'm creating a script and I have a doubt, my script returns a value that must be added to the value that is already in the one shown in cacti, how can I do this?

how must i do the Data Templates or the Graph Templates for do that?

explained better, in the graph of cacti are
i.e. Foobar: Current: 10
my script returns 5, and the graph has to add and be
i.e. Foobar: Current: 15
and so on

Thank you so much.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I did not hear of such an approach yet. To make sure that I understand: Your graph shall print an increasing value; the value increasing 'til eternity cause it will never shrink. But your script always prints only the "difference" between last and current data point?
Reinhard
winfuk
Posts: 2
Joined: Sat Nov 22, 2008 8:40 pm

Post by winfuk »

yes, but I read the tutorial of rrdtool from the website, and what I need is not supported, the DST only can be COUNTER, DERIVE, ABSOLUTE, GAUGE, and the behavior is

Values = 300, 600, 900, 1200
Step = 300 seconds
COUNTER DS = 1, 1, 1, 1
DERIVE DS = 1, 1, 1, 1
ABSOLUTE DS = 1, 2, 3, 4
GAUGE DS = 300, 600, 900, 1200


and what we needed was

Values = 300, 600, 900, 1200
Step = 300 seconds
X DS = 300, 900, 1800, 3000


Now I have rewritten the script and is responsible for the account of the totals in a file.

Thank you for your time and answers
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests