[SOLVED] Interface Traffic Setup (Inbound and Outbound)
Moderators: Developers, Moderators
-
- Posts: 19
- Joined: Fri Oct 26, 2012 2:30 pm
[SOLVED] Interface Traffic Setup (Inbound and Outbound)
I am trying to get the traffic interface graphing up and running for inbound and outbound traffic, however I am just a blank screen for the graph and its been up for a several days. Below is all the settings:
For the Graph Management
Graph Template Selection
Selected Graph Template: Interface - Traffic (bits/sec)
Host: Server (IP Address)
Supplemental Graph Template Data
Title: |host_description| - Traffic
Inbound Data Source: Server - Traffic (traffic_in)
Outbound Data Source: Server - Traffic (traffic_out)
For the Data Sources
Data Template Selection
Selected Data Template: Interface - Traffic
Host: Server (IP_Address)
Supplemental Data Template Data
Name: |host_description| - Traffic
Data Source Path: <path_rra>/server_traffic_in_24.rrd
Maximum Value (for traffic_in): 100000000
Maximum Value (for traffic_out): 100000000
Output Type ID: Data query data sources must be created through New Graphs
Index Value: Bits
Index Type: Data query data sources must be created through New Graphs
Thanks for any help!
For the Graph Management
Graph Template Selection
Selected Graph Template: Interface - Traffic (bits/sec)
Host: Server (IP Address)
Supplemental Graph Template Data
Title: |host_description| - Traffic
Inbound Data Source: Server - Traffic (traffic_in)
Outbound Data Source: Server - Traffic (traffic_out)
For the Data Sources
Data Template Selection
Selected Data Template: Interface - Traffic
Host: Server (IP_Address)
Supplemental Data Template Data
Name: |host_description| - Traffic
Data Source Path: <path_rra>/server_traffic_in_24.rrd
Maximum Value (for traffic_in): 100000000
Maximum Value (for traffic_out): 100000000
Output Type ID: Data query data sources must be created through New Graphs
Index Value: Bits
Index Type: Data query data sources must be created through New Graphs
Thanks for any help!
Last edited by gradientpixel on Thu Dec 06, 2012 3:05 pm, edited 1 time in total.
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
Re: Interface Traffic Setup (Inbound and Outbound)
Go to Console -> Graph Management -> (Edit), and select a graph
Now click the link at the top right "*Turn On Graph Debug Mode"
See what the output is for the affected graph, and post it here.
Now click the link at the top right "*Turn On Graph Debug Mode"
See what the output is for the affected graph, and post it here.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
-
- Posts: 19
- Joined: Fri Oct 26, 2012 2:30 pm
Re: Interface Traffic Setup (Inbound and Outbound)
Here is the results for the graph debug:
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='Server - Traffic' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="/var/lib/cacti/rra/server_traffic_in_24.rrd":traffic_in:AVERAGE \
DEF:b="/var/lib/cacti/rra/server_traffic_in_24.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
ERROR: opening '/var/lib/cacti/rra/server_traffic_in_24.rrd': No such file or directory
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='Server - Traffic' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="/var/lib/cacti/rra/server_traffic_in_24.rrd":traffic_in:AVERAGE \
DEF:b="/var/lib/cacti/rra/server_traffic_in_24.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
ERROR: opening '/var/lib/cacti/rra/server_traffic_in_24.rrd': No such file or directory
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
Re: Interface Traffic Setup (Inbound and Outbound)
Code: Select all
ERROR: opening '/var/lib/cacti/rra/server_traffic_in_24.rrd': No such file or directory
First, we'll need a bit more information about your system before we can proceed any further.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
-
- Posts: 19
- Joined: Fri Oct 26, 2012 2:30 pm
Re: Interface Traffic Setup (Inbound and Outbound)
I am running version 0.8.7i of cacti on ubuntu 12.04. If it is an SNMP issue, it is probably because SMNP is not setup for that server. I am fairly new at using cacti and not sure what uses SMNP and what doesn't. Does the graphing of inbound and outbound traffic require SMNP?
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
Re: Interface Traffic Setup (Inbound and Outbound)
If you are graphing a remote host, then SNMP is required on that host - not the Cacti server itself. Did you install Cacti from scratch, or from a DEB package ? If you used a DEB package, then the dependencies would have been there already, and installed.
Also, if you installed PHP by hand, then you will also need PHP-SNMP support (PHP extension).
Seeing as you are "new" to Cacti, you may want to have a look at http://docs.cacti.net/manual:088
If you have just installed this, and are prepared to ditch the build and start again, then installing under UBUNTU is easy as doing
Hope this is of some use.
Also, if you installed PHP by hand, then you will also need PHP-SNMP support (PHP extension).
Seeing as you are "new" to Cacti, you may want to have a look at http://docs.cacti.net/manual:088
If you have just installed this, and are prepared to ditch the build and start again, then installing under UBUNTU is easy as doing
Code: Select all
sudo apt-get install cacti
Last edited by mcutting on Fri Nov 02, 2012 11:10 am, edited 1 time in total.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
Re: Interface Traffic Setup (Inbound and Outbound)
Sorry - just re-read your post concerning 0.8.7i and an existing server.
My guess here would be that SNMP is either not enabled on the remote host, or is incorrectly configured. In direct answer, yes, you do need SNMP to pull interface traffic (unless you are doing this via WMI - again, I'm assuming that this coming from a windows box for example)
My guess here would be that SNMP is either not enabled on the remote host, or is incorrectly configured. In direct answer, yes, you do need SNMP to pull interface traffic (unless you are doing this via WMI - again, I'm assuming that this coming from a windows box for example)
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
-
- Posts: 19
- Joined: Fri Oct 26, 2012 2:30 pm
Re: Interface Traffic Setup (Inbound and Outbound)
Yeah its a windows server that I am trying to monitor. I know for a fact the server needs to have SNMP setup. Once I am able to get that setup on the server I will see what happens with the graphing.
Also I am assuming that most of the graphing comes from having SNMP setup. Am I correct on this? The only thing I really have at the moment is Ping Latency being graphed.
Also I am assuming that most of the graphing comes from having SNMP setup. Am I correct on this? The only thing I really have at the moment is Ping Latency being graphed.
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
Re: Interface Traffic Setup (Inbound and Outbound)
Not necessarily, no. The basic rule is, if you can script it, Cacti can graph it.
I have several scripts running on Windows machines, including WMI. However, for the native Interface Graphs in Cacti, you will require SNMP.
I have several scripts running on Windows machines, including WMI. However, for the native Interface Graphs in Cacti, you will require SNMP.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
-
- Posts: 19
- Joined: Fri Oct 26, 2012 2:30 pm
Re: Interface Traffic Setup (Inbound and Outbound)
Ok, I have setup a server in cacti that has SNMP setup. I know that the SNMP seems to be working because I am getting a Ping Latency graph from it. Everything is running off the SNMP. However, I have two graphs for this one that aren't working, Inbound/Outbound Traffic and then Errors/Discards. I created the data sources for each graph. When looking at graph debug here is the errors (same error really):
For Interface Traffic:
ERROR: opening '/var/lib/cacti/rra/server_traffic_in_30.rrd': No such file or directory
For Errors/Discrads:
ERROR: opening '/var/lib/cacti/rra/server_errors_in_29.rrd': No such file or directory
This is also the same error that my first server i tried for this which was previously posted
For Interface Traffic:
ERROR: opening '/var/lib/cacti/rra/server_traffic_in_30.rrd': No such file or directory
For Errors/Discrads:
ERROR: opening '/var/lib/cacti/rra/server_errors_in_29.rrd': No such file or directory
This is also the same error that my first server i tried for this which was previously posted
-
- Cacti Pro User
- Posts: 613
- Joined: Tue Aug 29, 2006 4:09 pm
- Location: NL
Re: Interface Traffic Setup (Inbound and Outbound)
What errors are reported in the logs?
/var/log/cacti/*.log.
/var/log/cacti/*.log.
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
-
- Posts: 19
- Joined: Fri Oct 26, 2012 2:30 pm
Re: Interface Traffic Setup (Inbound and Outbound)
I realized that I was able to create the graphs that I wanted (after enabling SNMP) by adding an associated data query. Everything is working fine now. Thanks for all the help.
Who is online
Users browsing this forum: No registered users and 2 guests