How can I calculate Line speed in CDEF automatically?

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

Moderators: Developers, Moderators

User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

They need to teach AT&T a thing. They are only allowing us to exceed CIR by 10%

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?
dlaperle
Posts: 21
Joined: Thu Jan 06, 2005 7:45 am
Location: Longueuil, Québec
Contact:

Post by dlaperle »

When the .xml is imported!...

What next to use this template...

i'm lost! :S
Oh look!...
disorganizer
Cacti User
Posts: 68
Joined: Thu Aug 04, 2005 8:34 am

Post by disorganizer »

this trick still works with the most updated and patched version, just the entry points and searches are different:

1st searchpoint:
$cdef_string = str_replace("ALL_DATA_SOURCES_NODUPS", $cdef_total_ds, $cdef_string);
Line 946 (i placed the addition below all the other replaces at that place)

2nd searchpoint:
still the same, only in line 537

I Urgently hope this is going to be implemented in the next prepatch or release.

EDIT
after rethinking, it would propably be better to have cacti update the rrd_maximum variable correctly.
Attachments
rrd.zip
attached is the file with all prepatches and the updates.
as of yesterday.
(10.54 KiB) Downloaded 286 times
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Check out the patch I created against 0.8.6f in a similar thread wihich allows any data query variable to be included in the CDEF string. So now you can create CDEF's that do things like:

Code: Select all

CURRENT_DATA_SOURCE,|query_ifSpeed|,/,100,*
-Ian
disorganizer
Cacti User
Posts: 68
Joined: Thu Aug 04, 2005 8:34 am

Post by disorganizer »

ok. i now understand what the other thread was about *g*
anyways, as i use windows, how can i apply the patch?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

raX wrote an "official" patch to use |query_*| in CDEFS. That post includes the "official" patch.

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?
disorganizer
Cacti User
Posts: 68
Joined: Thu Aug 04, 2005 8:34 am

Post by disorganizer »

yes i know, but there is no patch.exe in the windows version? or did i miss something?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Hmm. Let me think about this...

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?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Replace your lib/rrd.php file with the following.

-Ian
Attachments
rrd.patched.txt
Pre-patched lib/rrd.php file
(44.53 KiB) Downloaded 419 times
FPL_NMS
Posts: 37
Joined: Sun Aug 21, 2005 1:17 am

Win32 patch.exe

Post by FPL_NMS »

You know, I too was wondering the same thing about that patch.exe file. I guess good things come to those who wait, just goes to show how new a noobie really is :P
dogfart
Posts: 13
Joined: Fri Jul 29, 2005 4:32 am

How to setup this?

Post by dogfart »

Hi I have done all like in manual but get an silly error

Something with rrdtools

RRDTool Says:

sh: line 1: ,/,100,*,8,*,90,GT,NEGINF,UNKN,IF,UNKN,IF: No such file or directory


What colud be a problem?
User avatar
timi
Cacti User
Posts: 240
Joined: Wed Nov 09, 2005 8:35 am
Location: Timisoara, Romania
Contact:

Post by timi »

what next, afther loading the template into cacti, I have it into the Graph Template, how can I graph the interface now ?

ps: i have cacti 0.8.6h
User avatar
timi
Cacti User
Posts: 240
Joined: Wed Nov 09, 2005 8:35 am
Location: Timisoara, Romania
Contact:

Post by timi »

timi wrote:what next, afther loading the template into cacti, I have it into the Graph Template, how can I graph the interface now ?

ps: i have cacti 0.8.6h
LE: figure it out :) but the |query_ifSpeed| does not work :(
LLE: works :D
User avatar
timi
Cacti User
Posts: 240
Joined: Wed Nov 09, 2005 8:35 am
Location: Timisoara, Romania
Contact:

Post by timi »

for some reasons the 10g interface looks not right :( any ideea why ?
Attachments
graph.png
graph.png (50.89 KiB) Viewed 5664 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please press the green circle next to the Data Query of that device to refresh all "static" data in the poller_cache
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests