|
|
| Author |
Message |
flipflap Cacti User
Joined: 09 Jul 2005 Posts: 137
|
Posted: Mon Jan 30, 2006 5:42 am Post subject: packets / sec |
|
|
Hi
i wanted to query the packets / sec on an interface. i wanted to do it the same way as snmp - interface does it, looks for active interfaces and creats various graphs. i've already made the data template and graph template but can't see anything under "Associated Data Templates" when i add the graph template via data queries. what am i doing wrong? thanks.
i've attached the data template and graph template that i made also the the script that i was using. is there also something wrong with the script? thanks.
| Description: |
| script that i use on the data queries |
|
 Download |
| Filename: |
packet.xml |
| Filesize: |
828 Bytes |
| Downloaded: |
263 Time(s) |
| Description: |
|
 Download |
| Filename: |
cacti_graph_template_interface_packet_throughput.xml |
| Filesize: |
13.52 KB |
| Downloaded: |
249 Time(s) |
| Description: |
|
 Download |
| Filename: |
cacti_data_template_interface_packet_throughput.xml |
| Filesize: |
7.16 KB |
| Downloaded: |
210 Time(s) |
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12291 Location: Muenster, Germany
|
Posted: Mon Jan 30, 2006 2:26 pm Post subject: |
|
|
Change | Code: | <locIfOutPktsSec>
<name>Output Packets Sec</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.9.2.2.1.1.9</oid>
</locIfOutPktsSec> | to read | Code: | <locIfOutPktsSec>
<name>Output Packets Sec</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.9.2.2.1.1.9</oid>
</locIfOutPktsSec> |
You may follow the thread at Howto: from snmptable to XML Graphs (Data Query walkthrough).
Reinhard
Last edited by gandalf on Wed Feb 01, 2006 2:46 pm; edited 1 time in total |
|
| Back to top |
|
 |
flipflap Cacti User
Joined: 09 Jul 2005 Posts: 137
|
Posted: Tue Jan 31, 2006 9:44 am Post subject: |
|
|
thanks for the feedback it works now. ive attached the script it was patterned after the interface script.
i got another problem the graph and the values that cacti get is nowhere near what the interface packet throughput is. i checked via net-snmp via snmpget and the value returned is correct but when cacti polls the router and graphs it, it displays a different result. could somebody please tell what i'm doing wrong again. thanks.
| Description: |
| updated script that works |
|
 Download |
| Filename: |
packet.xml |
| Filesize: |
2.22 KB |
| Downloaded: |
207 Time(s) |
|
|
| Back to top |
|
 |
flipflap Cacti User
Joined: 09 Jul 2005 Posts: 137
|
Posted: Tue Jan 31, 2006 9:11 pm Post subject: |
|
|
| bump. please help
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9696 Location: MI, USA
|
Posted: Tue Jan 31, 2006 10:04 pm Post subject: |
|
|
What is the magnitude of the difference? Is it a factor of 8 or 1000?
TheWitness
|
|
| Back to top |
|
 |
flipflap Cacti User
Joined: 09 Jul 2005 Posts: 137
|
Posted: Wed Feb 01, 2006 4:53 am Post subject: |
|
|
hi attached is the sample pic of one of the interfaces that i am monitoring
actual values using net-snmp and sh int command on the router is around 300 packets/sec incoming and outgoing
thanks for the help
| Description: |
|
| Filesize: |
49.99 KB |
| Viewed: |
4058 Time(s) |

|
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9696 Location: MI, USA
|
Posted: Wed Feb 01, 2006 6:22 am Post subject: |
|
|
Look at the standard Interfaces Packets/Second. I think you will find that it is dividing by 1024.
TheWitness
|
|
| Back to top |
|
 |
flipflap Cacti User
Joined: 09 Jul 2005 Posts: 137
|
Posted: Wed Feb 01, 2006 6:26 am Post subject: |
|
|
| sorry but i don't understand your reply. what do you mean by standard interface packet/sec? i think even if you divide the values that cacti get it won't equal the value from net-snmp.
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9696 Location: MI, USA
|
Posted: Wed Feb 01, 2006 6:37 am Post subject: |
|
|
Under the "standard" Cacti installation, the Interfaces data query includes a "standard" interface packets/second Graph Template. Edit that template, please become famiiar with the supporting Data Query and Data Template and you will discover answer to your questions.
TheWitness
|
|
| Back to top |
|
 |
flipflap Cacti User
Joined: 09 Jul 2005 Posts: 137
|
Posted: Thu Feb 02, 2006 7:08 am Post subject: |
|
|
thanks for the help guys. sorry late reply
|
|
| Back to top |
|
 |
zjw199
Joined: 17 Aug 2006 Posts: 1
|
Posted: Fri Oct 27, 2006 4:38 am Post subject: |
|
|
| TheWitness wrote: | Under the "standard" Cacti installation, the Interfaces data query includes a "standard" interface packets/second Graph Template. Edit that template, please become famiiar with the supporting Data Query and Data Template and you will discover answer to your questions.
TheWitness |
I met the same problem.I can.t find the "standard" interface packets/second Graph Template referred anywhere.
can you help me how to fix it? thx.
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12291 Location: Muenster, Germany
|
Posted: Fri Oct 27, 2006 1:09 pm Post subject: |
|
|
Actually, non-unicast and unicast packets are there. Is this what you're looking for?
Reinhard
|
|
| Back to top |
|
 |
|