WithPeak MRTG Graphs

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

Moderators: Developers, Moderators

d0ors
Posts: 10
Joined: Sat May 21, 2005 8:34 am

WithPeak MRTG Graphs

Post by d0ors »

How can I get equivalents of MRTG WithPeak graphs ?

With peaks graph included the following info in weekly, mon, yrly graphs..

Maximal 5 Minute Incoming Traffic
Maximal 5 Minute Outgoing Traffic

Any pointers would be appreciated.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

show me a picture :)

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
d0ors
Posts: 10
Joined: Sat May 21, 2005 8:34 am

With Peaks

Post by d0ors »

Please find the attached picture..

Legend :

GREEN ### Incoming Traffic in Bits per Second
BLUE ### Outgoing Traffic in Bits per Second
DARK GREEN### Maximal 5 Minute Incoming Traffic
MAGENTA### Maximal 5 Minute Outgoing Traffic

Thanks
Attachments
With Peaks
With Peaks
with peaks.png (10.46 KiB) Viewed 11763 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Easy, if you want maximal for both, add a line with the MAX inbound RRA, and another line using the MAX outbound RRA. If you want just the max of whichever is greater, then I would have to test. Maybe the if CDEF function would work for this version of Cacti.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
d0ors
Posts: 10
Joined: Sat May 21, 2005 8:34 am

Resolved

Post by d0ors »

Thanks.

One more clarification, the MAX value represents the 5 min average value polled or an instantaneous max ?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Well, on the 5 minute graphs, it is redundant, however on the Weekly, Monthly, and Yearly it is the MAX average within the interval specified.

In other words, in the weekly, it will be the MAX 5 minute sample. In the monthly, it's the MAX 30 minute average and so forth.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
gabar
Posts: 27
Joined: Mon Jun 13, 2005 3:53 am
Location: Rome
Contact:

Help me with peaks!!

Post by gabar »

Hi, I have some problems to display mrtg-like peaks over my graphs. As you suggested in previous discussions, I add a LINE1 object into "Interface - Traffic (bits/sec)" under "Graph templates" section and I set MAX as Consolidation Function, but this doesn't solve the problem.

In particular (see the attached graphs images), the red line (peak for outbound traffic) is always lower than outbound traffic. I tried to change some options of line object (such as CDEF functions or GPRINT type) without success.

Could you give me any suggestion please?
Any comment will be appreciated.
Thanks.
Attachments
daily-graph.jpg
daily-graph.jpg (136.87 KiB) Viewed 11722 times
weekly-graph.jpg
weekly-graph.jpg (137.56 KiB) Viewed 11722 times
Grand Master Wierdo
Posts: 10
Joined: Fri Nov 05, 2004 11:26 am

Post by Grand Master Wierdo »

I added this to one of my graphs earlier, it looks like it is graphing bytes instead of bits, hence the lower value. I know you have tried changing CDef items but to fix this try the following:

Go into your new item in the graph template (Your Line1)
Set the CDEF to: Turn bytes into Bits
Save and Save.

Good Luck.

Ta

GMW
d0ors
Posts: 10
Joined: Sat May 21, 2005 8:34 am

Bytes to Bits

Post by d0ors »

Yeah it looks like a bytes to bits issue.
gabar
Posts: 27
Joined: Mon Jun 13, 2005 3:53 am
Location: Rome
Contact:

Great. Now it works.

Post by gabar »

Thank you very much. With your answer I resolve my problems. Now I can correctly display peak's data over my graphs.
foxfriend
Posts: 14
Joined: Wed Jul 12, 2006 9:38 pm

Post by foxfriend »

I just can't figure out 2 things:

1.Why weekly's max value is not shown in monthly graph ?
2.Why the value are not match in monthly graph and gprint?
The graph and the configure are attached, and my Cacti version is 0.8.6h.

Any idea will be welcome.
Attachments
not_match.JPG
not_match.JPG (58.33 KiB) Viewed 9817 times
config.JPG
config.JPG (55.93 KiB) Viewed 9817 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Consolidation.

Read bout it in the documentation site or rrdtool's website. You can increase the history (aka rows) rrd files store, with increased disk space, of course.

You really should upgrade cacti to 0.8.6j + patches or consider 0.8.7a.
foxfriend
Posts: 14
Joined: Wed Jul 12, 2006 9:38 pm

Post by foxfriend »

All right, I'v upgraded my Cacti to 0.8.7a, and the problem still remained.
So, I guest it's about increase the history rrd files store by increasing disk space. But I have lots of it:

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 152965700 7597160 137598304 6% /
/dev/sda1 101086 11572 84295 13% /boot
none 1037912 0 1037912 0% /dev/shm

My Cacti located at /etc/www/html, which only used less than 6%.

The Problem is, how should I increase the history rrd files store?

Thank you.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Did you read about how to increase the rrdtool history in the documentation site yet?
foxfriend
Posts: 14
Joined: Wed Jul 12, 2006 9:38 pm

Post by foxfriend »

I think I got it. Thanks again.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests