[HOWTO]Current a Graph Templates used the function LAST

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Developers, Moderators

Post Reply
TomeyPan
Posts: 2
Joined: Thu Jan 12, 2012 7:36 am

[HOWTO]Current a Graph Templates used the function LAST

Post by TomeyPan »

HI
Everybody know that make graph LINE will be used function AVERAGE, but sometimes the graph was not accurate.


like the server port stat 1 is up 0 is down if you used function AVERAGE the graph may print 1.5

so I want to ask: How to make a Graph in use function LAST
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: [HOWTO]Current a Graph Templates used the function LAST

Post by BSOD2600 »

In the graph template, change the field in question from AVERAGE to LAST.
TomeyPan
Posts: 2
Joined: Thu Jan 12, 2012 7:36 am

Re: [HOWTO]Current a Graph Templates used the function LAST

Post by TomeyPan »

BSOD2600 wrote:In the graph template, change the field in question from AVERAGE to LAST.
I think you don't understand what I say. If I change the function AVERAGE to LAST,the cacti will report the error:the RRD does not contain an RRA matching the chosen CF.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: [HOWTO]Current a Graph Templates used the function LAST

Post by BSOD2600 »

Then the data template needs to be modified and LAST be added to the list. Then the *.rrd files will need to be deleted so cacti can recreate them.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: [HOWTO]Current a Graph Templates used the function LAST

Post by gandalf »

In most cases I suspect that it's really a need to use LAST.
Please tell us what you're heading at, perhaps there's a different solution
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests