Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


packets / sec

 
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti
Author Message
flipflap
Cacti User


Joined: 09 Jul 2005
Posts: 137

PostPosted: Mon Jan 30, 2006 5:42 am    Post subject: packets / sec Reply with quote

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.



packet.xml
 Description:
script that i use on the data queries

Download
 Filename:  packet.xml
 Filesize:  828 Bytes
 Downloaded:  265 Time(s)


cacti_graph_template_interface_packet_throughput.xml
 Description:

Download
 Filename:  cacti_graph_template_interface_packet_throughput.xml
 Filesize:  13.52 KB
 Downloaded:  252 Time(s)


cacti_data_template_interface_packet_throughput.xml
 Description:

Download
 Filename:  cacti_data_template_interface_packet_throughput.xml
 Filesize:  7.16 KB
 Downloaded:  212 Time(s)

Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12604
Location: Muenster, Germany

PostPosted: Mon Jan 30, 2006 2:26 pm    Post subject: Reply with quote

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

PostPosted: Tue Jan 31, 2006 9:44 am    Post subject: Reply with quote

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.



packet.xml
 Description:
updated script that works

Download
 Filename:  packet.xml
 Filesize:  2.22 KB
 Downloaded:  212 Time(s)

Back to top
flipflap
Cacti User


Joined: 09 Jul 2005
Posts: 137

PostPosted: Tue Jan 31, 2006 9:11 pm    Post subject: Reply with quote

bump. please help
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9736
Location: MI, USA

PostPosted: Tue Jan 31, 2006 10:04 pm    Post subject: Reply with quote

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

PostPosted: Wed Feb 01, 2006 4:53 am    Post subject: Reply with quote

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



sample.jpg
 Description:
 Filesize:  49.99 KB
 Viewed:  4133 Time(s)

sample.jpg


Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9736
Location: MI, USA

PostPosted: Wed Feb 01, 2006 6:22 am    Post subject: Reply with quote

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

PostPosted: Wed Feb 01, 2006 6:26 am    Post subject: Reply with quote

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: 9736
Location: MI, USA

PostPosted: Wed Feb 01, 2006 6:37 am    Post subject: Reply with quote

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

PostPosted: Thu Feb 02, 2006 7:08 am    Post subject: Reply with quote

thanks for the help guys. sorry late reply
Back to top
zjw199



Joined: 17 Aug 2006
Posts: 1

PostPosted: Fri Oct 27, 2006 4:38 am    Post subject: Reply with quote

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: 12604
Location: Muenster, Germany

PostPosted: Fri Oct 27, 2006 1:09 pm    Post subject: Reply with quote

Actually, non-unicast and unicast packets are there. Is this what you're looking for?
Reinhard
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group