Creating a graph for network traffic....
Moderators: Developers, Moderators
Creating a graph for network traffic....
Hi guys,
I have installed cacti and love it. So far I have graphs setup for HD space, Systemload and total process. I created the graphs using the included templates.
Now, I need to create a graph that displays total bandwidth used, and actual traffic from the eht0 device.
When I try to create a new graph, under Create > New Graph, it doesn't show me the "Interface - Traffic (bytes/sec, Total Bandwidth)" template, so I can't add it.
I have a Redhat Enterprise 3 server, and have setup the device using the "Local Linux Machine" template. Could someone please point me in the right direction to set this graphs?
Thanks in advance
Dennys
I have installed cacti and love it. So far I have graphs setup for HD space, Systemload and total process. I created the graphs using the included templates.
Now, I need to create a graph that displays total bandwidth used, and actual traffic from the eht0 device.
When I try to create a new graph, under Create > New Graph, it doesn't show me the "Interface - Traffic (bytes/sec, Total Bandwidth)" template, so I can't add it.
I have a Redhat Enterprise 3 server, and have setup the device using the "Local Linux Machine" template. Could someone please point me in the right direction to set this graphs?
Thanks in advance
Dennys
First thing first...
Did you read the Manual?....
Cause it explain very well how to setup your first graph to monitor bandwith utilization!
the only thing you have to do is to
1. Create the device
-Be sure to answer all question in the page of Device Creation
-Don't use Local Machine if it's a distant machine...like if you want to have the bandwith utilization of a router, you may use Cisco Router or General SNMP at least...
2. Add graph to this device
-Be sure SNMP is enable on this equipment
-If SNMP is well configure you'll see all the interface and you'll be able to select what you want from Cacti!
I hope it will help a bit...don't forget to always read manual...it's important :S...
see ya!
Did you read the Manual?....
Cause it explain very well how to setup your first graph to monitor bandwith utilization!
the only thing you have to do is to
1. Create the device
-Be sure to answer all question in the page of Device Creation
-Don't use Local Machine if it's a distant machine...like if you want to have the bandwith utilization of a router, you may use Cisco Router or General SNMP at least...
2. Add graph to this device
-Be sure SNMP is enable on this equipment
-If SNMP is well configure you'll see all the interface and you'll be able to select what you want from Cacti!
I hope it will help a bit...don't forget to always read manual...it's important :S...
see ya!
Oh look!...
Hi,
I have read the manual. I added another device using "Generic SNMP enabled host" template, and assigned it the external IP on eth0. I added a graph using the "Interface Traffic" data template using eth0 as the Index Value, but it is not polling any data.
Is there anything else I should be checking?
Thanks in advance
Dennys
I have read the manual. I added another device using "Generic SNMP enabled host" template, and assigned it the external IP on eth0. I added a graph using the "Interface Traffic" data template using eth0 as the Index Value, but it is not polling any data.
Is there anything else I should be checking?
Thanks in advance
Dennys
If I do a "Verbose Query" on the associated Data queries to the device I get this:
I have also verified that SNMP is running:
I see a "No SNMP data returned" message on the output, but I'm not sure what that means Any help??
Thanks
Dennys
Code: Select all
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/home/httpd/vhosts/elige.org/httpdocs/monitor/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/home/httpd/vhosts/elige.org/httpdocs/monitor/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/home/httpd/vhosts/elige.org/httpdocs/monitor/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/home/httpd/vhosts/elige.org/httpdocs/monitor/resource/snmp_queries/interface.xml'
Code: Select all
SNMP Information
System: Linux rhes.elige.org 2.4.21-15.ELsmp #1 SMP Thu Apr 22 00:18:24 EDT 2004 i686
Uptime: 483580
Hostname: rhes.elige.org
Thanks
Dennys
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Do you have a SNMP server running and configured on that server? To retrieve the interface stats, you will need a SNMP server.
Check that you have net-snmp installed.
This will give you a list of installed packages that have snmp in there name, you are looking for net-snmp. If that is installed, then you have a snmp server installed. Now you just need to configure it and start it.
The configuration files are located in /etc/snmp/ directory on Redhat. I have to direct you to the man pages for the snmpd.conf file for how to set the configuration options.
Good luck.
Check that you have net-snmp installed.
Code: Select all
rpm -qa | grep snmp
The configuration files are located in /etc/snmp/ directory on Redhat. I have to direct you to the man pages for the snmpd.conf file for how to set the configuration options.
Good luck.
[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]
[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]
Hi rony,
I'm also in Wisconsin!!
Anyway, I do have SNMP installed and running:
Would I need to enable anything other than what comes standard in order to get the network statistics to work?
When I do a snmpwalk command, I can only see MIB process:
I have also enabled and started the snmptrap service (not sure what is for)
One last thing is that snmp is reporting version 2, but my device is configured as version 1 on cacti... I will try setting it to version 2 and post back.
Thanks
-d
I'm also in Wisconsin!!
Anyway, I do have SNMP installed and running:
Code: Select all
> rpm -qa | grep snmp
net-snmp-utils-5.0.9-2.30E.12
net-snmp-devel-5.0.9-2.30E.3
net-snmp-5.0.9-2.30E.3
> service snmpd status
snmpd (pid 16074) is running...
When I do a snmpwalk command, I can only see MIB process:
Code: Select all
SNMPv2-MIB::sysDescr.0 = STRING: Linux rhes.elige.org 2.4.21-15.ELsmp #1 SMP Thu Apr 22 00:18:24 EDT 2004 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
SNMPv2-MIB::sysUpTime.0 = Timeticks: (644285) 1:47:22.85
SNMPv2-MIB::sysContact.0 = STRING: Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
SNMPv2-MIB::sysName.0 = STRING: rhes.elige.org
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (3) 0:00:00.03
SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.2 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.3 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.4 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.5 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.6 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.7 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.8 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module to describe generic objects for network interface sub-layers
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.6 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.7 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.8 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.9 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (3) 0:00:00.03
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (3) 0:00:00.03
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (3) 0:00:00.03
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (14384182) 1 day, 15:57:21.82
End of MIB
One last thing is that snmp is reporting version 2, but my device is configured as version 1 on cacti... I will try setting it to version 2 and post back.
Thanks
-d
After doing some reading, I think my snmpd daemon is not configured correctly. If I run this
It doesn't return any IF-MIB information.
Can someone please tell me how to enable the network interface part on snmp?
Thanks
-d
Code: Select all
>snmpwalk -v2c localhost -c public interface
IF-MIB::interfaces = No Such Object available on this agent at this OID
Can someone please tell me how to enable the network interface part on snmp?
Thanks
-d
Well, I actually figured out how to enable network on snmpd.conf. Now the SNMP - Interface Statistics querie returns this on Verbose Debug:
I have created a new graph using the New Graph option to show eth0 - In/Out bytes, but the rrd file doesn't get created. Is there anything else I need to do, or check?
Any help would be appreciated
Thanks
-d
Code: Select all
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/home/httpd/vhosts/elige.org/httpdocs/monitor/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='1'] index: 1 [from value]
+ Found item [ifIndex='2'] index: 2 [from value]
+ Found item [ifIndex='3'] index: 3 [from value]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='Up'] index: 1 [from value]
+ Found item [ifOperStatus='Up'] index: 2 [from value]
+ Found item [ifOperStatus='Down'] index: 3 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='lo'] index: 1 [from value]
+ Found item [ifDescr='eth0'] index: 2 [from value]
+ Found item [ifDescr='eth1'] index: 3 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='softwareLoopback(24)'] index: 1 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 2 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 3 [from value]
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Found item [ifSpeed='10000000'] index: 1 [from value]
+ Found item [ifSpeed='100000000'] index: 2 [from value]
+ Found item [ifSpeed='10000000'] index: 3 [from value]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr=''] index: 1 [from value]
+ Found item [ifHwAddr='00:00:11:11:67:A7:0C'] index: 2 [from value]
+ Found item [ifHwAddr='00:00:09:5B:E1:AF:FA'] index: 3 [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found item [ifIP='67.15.121.17'] index: 4 [from regexp oid parse]
+ Found item [ifIP='127.0.0.1'] index: 1 [from regexp oid parse]
+ Found data query XML file at '/home/httpd/vhosts/elige.org/httpdocs/monitor/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/home/httpd/vhosts/elige.org/httpdocs/monitor/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/home/httpd/vhosts/elige.org/httpdocs/monitor/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/home/httpd/vhosts/elige.org/httpdocs/monitor/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/home/httpd/vhosts/elige.org/httpdocs/monitor/resource/snmp_queries/interface.xml'
Any help would be appreciated
Thanks
-d
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
You need to following the instructions and schedule poller.php in your cron and verify that your crond is working.
TheWitness
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?
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?
I feel like this topic has diverged from the original poster's question - which is the same question I have.
I have a new instance of Cacti running on a single machine. I'd like to graph traffic on that machine's eth0. If possible, I'd like to do this without the overhead of snmpd -- surely this is possible?
I've read the documentation. As nice as cacti is, the documentation leaves much to the imagination.
I have a new instance of Cacti running on a single machine. I'd like to graph traffic on that machine's eth0. If possible, I'd like to do this without the overhead of snmpd -- surely this is possible?
I've read the documentation. As nice as cacti is, the documentation leaves much to the imagination.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
It would involve a script the retrieve the values from the local interface. This is very doable, but cacti will do it through SNMP easier, without a custom script, and without a custom set of Graphs and Data Sources.
The overhead on SNMP really isn't even noticed on most machines. Honesly, it might take longer to execute the local script, then query the SNMP daemon.
The overhead on SNMP really isn't even noticed on most machines. Honesly, it might take longer to execute the local script, then query the SNMP daemon.
[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]
[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]
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I second Rony's postion.
TheWitness
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?
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?
Would you mind sharing what you did to enable the network?
Well, I actually figured out how to enable network on snmpd.conf. Now the SNMP - Interface Statistics querie returns this on Verbose Debug:I have created a new graph using the New Graph option to show eth0 - In/Out bytes, but the rrd file doesn't get created. Is there anything else I need to do, or check?Code: Select all
+ Running data query [1]. + Found type = '3' [snmp query]. + Found data query XML file at '/home/httpd/vhosts/elige.org/httpdocs/monitor/resource/snmp_queries/interface.xml' + XML file parsed ok. + Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1' + Located input field 'ifIndex' [walk] + Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1' + Found item [ifIndex='1'] index: 1 [from value] + Found item [ifIndex='2'] index: 2 [from value] + Found item [ifIndex='3'] index: 3 [from value] + Located input field 'ifOperStatus' [walk] + Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8' + Found item [ifOperStatus='Up'] index: 1 [from value] + Found item [ifOperStatus='Up'] index: 2 [from value] + Found item [ifOperStatus='Down'] index: 3 [from value] + Located input field 'ifDescr' [walk] + Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2' + Found item [ifDescr='lo'] index: 1 [from value] + Found item [ifDescr='eth0'] index: 2 [from value] + Found item [ifDescr='eth1'] index: 3 [from value] + Located input field 'ifName' [walk] + Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1' + Located input field 'ifAlias' [walk] + Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18' + Located input field 'ifType' [walk] + Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3' + Found item [ifType='softwareLoopback(24)'] index: 1 [from value] + Found item [ifType='ethernetCsmacd(6)'] index: 2 [from value] + Found item [ifType='ethernetCsmacd(6)'] index: 3 [from value] + Located input field 'ifSpeed' [walk] + Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5' + Found item [ifSpeed='10000000'] index: 1 [from value] + Found item [ifSpeed='100000000'] index: 2 [from value] + Found item [ifSpeed='10000000'] index: 3 [from value] + Located input field 'ifHwAddr' [walk] + Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6' + Found item [ifHwAddr=''] index: 1 [from value] + Found item [ifHwAddr='00:00:11:11:67:A7:0C'] index: 2 [from value] + Found item [ifHwAddr='00:00:09:5B:E1:AF:FA'] index: 3 [from value] + Located input field 'ifIP' [walk] + Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2' + Found item [ifIP='67.15.121.17'] index: 4 [from regexp oid parse] + Found item [ifIP='127.0.0.1'] index: 1 [from regexp oid parse] + Found data query XML file at '/home/httpd/vhosts/elige.org/httpdocs/monitor/resource/snmp_queries/interface.xml' + Found data query XML file at '/home/httpd/vhosts/elige.org/httpdocs/monitor/resource/snmp_queries/interface.xml' + Found data query XML file at '/home/httpd/vhosts/elige.org/httpdocs/monitor/resource/snmp_queries/interface.xml' + Found data query XML file at '/home/httpd/vhosts/elige.org/httpdocs/monitor/resource/snmp_queries/interface.xml' + Found data query XML file at '/home/httpd/vhosts/elige.org/httpdocs/monitor/resource/snmp_queries/interface.xml'
Any help would be appreciated
Thanks
-d
Who is online
Users browsing this forum: No registered users and 2 guests