REQUEST: 95th percentile both directions + Bandwidth total

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

Moderators: Developers, Moderators

john_d13
Posts: 41
Joined: Mon Mar 17, 2008 11:51 pm

REQUEST: 95th percentile both directions + Bandwidth total

Post by john_d13 »

Hi im looking for a template or a way to make this happen. Im using the default cacti template that includes 95th percentile but its in+out. Im trying to do 95th for in and 95th for out and graph both.

Also the I would ilke the template to include total transfer in+out instead of default total in and total out

Any help would be greatly appreciated
john_d13
Posts: 41
Joined: Mon Mar 17, 2008 11:51 pm

Post by john_d13 »

anyone ?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

It's easy to create... :)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
john_d13
Posts: 41
Joined: Mon Mar 17, 2008 11:51 pm

Post by john_d13 »

lol thx but im still a newb to cacti

I tried creating a new graph item in the graph template with inbound as source and ourbound each with its own comment and hrule but inbound 95th percentile is showing same as outbound.

For bandwidth calculation basically i want to sum both data sources (in total + out total)

If you would be kind enough to export your template or show me that would be apprecitated
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

What Cacti version do you have?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
john_d13
Posts: 41
Joined: Mon Mar 17, 2008 11:51 pm

Post by john_d13 »

Version 0.8.7d
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Ok, attached is a updated data query and templates to do what you where asking.

Let me know if you have any issues.

FYI, I don't usually create templates like this when requested, but it has been bugging me that some of these aren't default.
Attachments
extending_interface_graphs_template_196.xml
Updated Interface graph templates and data query. Added 95th Percentile In and Out, Bandwidth Summation total in and out and 64-bit
(149.61 KiB) Downloaded 3329 times
Last edited by rony on Thu May 14, 2009 10:37 am, edited 2 times in total.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

FYI, don't just create the graph from the template, use the "Create Graphs" link from the device screen. One there, you will see the "SNMP Intefaces" for the device. There at the bottom, you can select the graph to create for the selected interfaces.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
john_d13
Posts: 41
Joined: Mon Mar 17, 2008 11:51 pm

Post by john_d13 »

thank you

One thing i noticed is when graphing the 95th percentile out value decimal was incorrect showing 5434324.22

I changed Item 13 from 0 to 6 where its bold and now its looking fine

Item # 10 HRULE: |95:bits:0:current:2| HRULE AVERAGE FF0000 Move Down Move Up Delete
Item # 11 COMMENT: |95:bits:6:current:2| Mb<HR> COMMENT AVERAGE Move Down Move Up Delete
Item # 12 HRULE: |95:bits:0:current:2| HRULE AVERAGE FFC73B Move Down Move Up Delete
Item # 13 COMMENT: |95:bits:0:current:2| Mb<HR> COMMENT AVERAGE Move Down Move Up Delete
Attachments
graph_image.php.png
graph_image.php.png (49.77 KiB) Viewed 24205 times
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Opps... lol Yes, that will fix it.. :)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

I have updated the template to have the correct variable defined.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

FYI, I hate using yellow for a line, it's hard to see. :P
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

I had to adjust my data query to indicate cacti path
per http://forums.cacti.net/about29671.html

Once I did this, my graphs came back
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
iggi
Cacti User
Posts: 61
Joined: Sat Feb 23, 2008 10:41 am
Location: Flint, Michigan
Contact:

Post by iggi »

*edit - non relevant question.
cmarticus
Posts: 18
Joined: Mon Apr 02, 2007 3:21 pm

Post by cmarticus »

I added this template and now my interfaces are not graphing.

here is my other post
http://forums.cacti.net/viewtopic.php?p=164084#164084

I get the following error on the add graph page

Data Query [SNMP - Interface Statistics]

Error in data query.

Notice: Undefined variable: column_counter in C:\Inetpub\wwwroot\cacti\graphs_new.php on line 888

My logs look clean

Cacti Version - 0.8.7d
Plugin Architecture - 2.4-1
Poller Type - Cactid v
Server Info - Windows NT 5.2
Web Server - Microsoft-IIS/6.0
PHP - 5.2.9-1
PHP Extensions - bcmath, calendar, com_dotnet, ctype, session, filter, ftp, hash, iconv, json, odbc, pcre, Reflection, date, libxml, standard, tokenizer, zlib, SimpleXML, dom, SPL, wddx, xml, xmlreader, xmlwriter, ISAPI, gd, mysql, snmp, sockets, bz2, curl, dba, dbase, fdf, gettext, gmp, imap, interbase, ldap, mbstring, mcrypt, mhash, mime_magic, ming, msql, mssql, mysqli, openssl, PDO, PDO_Firebird, pdo_mssql, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, pspell, shmop, soap, SQLite, tidy, xmlrpc, xsl, zip, exif
MySQL - 5.0.51a-community-nt
RRDTool - 1.2.30
SNMP - snmpwalk [OPTIONS] AGENT [OID]

Version: 5.4.2.1
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sourceforge.net

OPTIONS:
the request
Plugins
  • Global Plugin Settings (settings - v0.5)
    Host Info (hostinfo - v0.2)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests