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    


Traffic between 2 peers
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
jaguar



Joined: 02 Jun 2006
Posts: 11

PostPosted: Fri Jun 02, 2006 9:52 am    Post subject: Traffic between 2 peers Reply with quote

Hello,

I'm looking for a template (with XML I think) which can monitor traffic between 2 peers (2 BGP sessions at IX).

On GigaEthernet 0/1, I'm connected on a switch and traffic can be monitored with MAC address.

*** On Cisco 7200 ***
Router# conf t
Router(config)# interface gi0/1
Router(config-if)# ip accounting mac-address input
Router(config-if)# ip accounting mac-address output
Router(config-if)# exit
Router(config)# exit
***

Can somebody help me ?

Thanks.
Back to top
gandalf
Developer


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

PostPosted: Fri Jun 02, 2006 1:01 pm    Post subject: Reply with quote

There's no need for cross-posting. So I deleted the other one ...
Reinhard
Back to top
jaguar



Joined: 02 Jun 2006
Posts: 11

PostPosted: Mon Jun 12, 2006 2:53 pm    Post subject: Reply with quote

OK. All is OK. I have created XML + PHP for monitoring traffic between peering sessions in an IX for example (Panap, FreeIX, AMSIX ...) with ip accounting.

CACTI USERS:
Please contact me if you are interested in it.
Back to top
Wunk



Joined: 05 Mar 2004
Posts: 35

PostPosted: Mon Jun 19, 2006 10:19 am    Post subject: Reply with quote

I'm interested.., how are you monitoring it ?
Back to top
gandalf
Developer


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

PostPosted: Mon Jun 19, 2006 12:21 pm    Post subject: Reply with quote

jaguar wrote:
OK. All is OK. I have created XML + PHP for monitoring traffic between peering sessions in an IX for example (Panap, FreeIX, AMSIX ...) with ip accounting.

CACTI USERS:
Please contact me if you are interested in it.
Would it be an option to publish this under Scripts and Templates?
cheers
Reinhard
Back to top
jaguar



Joined: 02 Jun 2006
Posts: 11

PostPosted: Mon Jun 19, 2006 2:25 pm    Post subject: Reply with quote

Dear Cacti users,

Please see my page http://staff0.as30781.net/cacti/

Regards.
Back to top
gandalf
Developer


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

PostPosted: Tue Jun 20, 2006 12:29 pm    Post subject: Reply with quote

jaguar wrote:
Dear Cacti users,

Please see my page http://staff0.as30781.net/cacti/

Regards.
I'm sorry to step in again. We try to keep all stuff here, in the forums. Cause in the past, external links were abandoned. So it would be very kind to create a new topic at this forum and attach your stuff. Scripts, XML, exported templates, perhaps a little readme with a graph showing your work would be fine
Reinhard
Back to top
jaguar



Joined: 02 Jun 2006
Posts: 11

PostPosted: Wed Jun 21, 2006 7:22 am    Post subject: Reply with quote

OK !

I have joined the files



peering-neuftelecom.png
 Description:
Generated graph
 Filesize:  44.51 KB
 Viewed:  15087 Time(s)

peering-neuftelecom.png



traffic_between_peer.tar.gz
 Description:
All files :)

Download
 Filename:  traffic_between_peer.tar.gz
 Filesize:  4.93 KB
 Downloaded:  618 Time(s)

Back to top
gandalf
Developer


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

PostPosted: Wed Jun 21, 2006 11:43 am    Post subject: Reply with quote

Thank you for your effort
Reinhard
Back to top
jaguar



Joined: 02 Jun 2006
Posts: 11

PostPosted: Thu Jun 29, 2006 11:17 am    Post subject: Reply with quote

jaguar wrote:
OK !

I have joined the files


Update: 20060630
Here, a new version which run on all the interfaces !!!

Kind regards.



traffic_between_peer.tar.gz
 Description:

Download
 Filename:  traffic_between_peer.tar.gz
 Filesize:  5.62 KB
 Downloaded:  559 Time(s)

Back to top
Lojak



Joined: 30 Sep 2004
Posts: 14

PostPosted: Thu Jul 06, 2006 10:59 am    Post subject: Reply with quote

I'm having difficulty with your latest version. When adding the associated data query to either a 7206 or 6506, the process just hangs. After a while the HTTP request times out and I can see that the query has been added to the device, but the query returned 0 rows.

Running the ss_host_mac.php script manually as per the readme.txt file returns the expected information for the main index command, but every other command returns duplicates of each peer. I also do not see anything for the query in/out commands:

Cisco 7206 running IOS v12.4

Code:

bash-2.05b# /usr/bin/php ./ss_host_mac.php N.N.N.N 0 "2:161:10:SNMP_STRING:::[MD5]:None" index
198.32.245.2

etc

bash-2.05b# /usr/bin/php ./ss_host_mac.php N.N.N.N 0 "2:161:10:SNMP_STRING:::[MD5]:None" query index
198.32.245.2!198.32.245.2
198.32.245.2!198.32.245.2

etc

bash-2.05b# /usr/bin/php ./ss_host_mac.php N.N.N.N 0 "2:161:10:SNMP_STRING:::[MD5]:None" query as
198.32.245.2!7271
198.32.245.2!7271

etc..

bash-2.05b# /usr/bin/php ./ss_host_mac.php N.N.N.N 0 "2:161:10:SNMP_STRING:::[MD5]:None" query hostname
198.32.245.2!gw-look.torontointernetxchange.net
198.32.245.2!gw-look.torontointernetxchange.net

etc ..



On a 6506, the peer is not duplicated, but it does not return anything for in/out and the process also hangs.

Ideas?

Thanks,

-- Stephen.
Back to top
jaguar



Joined: 02 Jun 2006
Posts: 11

PostPosted: Mon Jul 10, 2006 3:50 am    Post subject: Reply with quote

Lojak wrote:
I'm having difficulty with your latest version. When adding the associated data query to either a 7206 or 6506, the process just hangs. After a while the HTTP request times out and I can see that the query has been added to the device, but the query returned 0 rows.


Hi,

It's strange because I have just tested again my script and it works !

Cacti returns "Success [75 Items, 25 Rows]" when I'm adding the Associated Data Queries.

Lojak wrote:
Running the ss_host_mac.php script manually as per the readme.txt file returns the expected information for the main index command, but every other command returns duplicates of each peer. I also do not see anything for the query in/out commands:

Cisco 7206 running IOS v12.4

On a 6506, the peer is not duplicated, but it does not return anything for in/out and the process also hangs.


I'm running IOS v12.2. What about :

% /usr/bin/php ./ss_host_mac.php N.N.N.N 0 "2:161:10:SNMP_STRING:::[MD5]:None" query in
% /usr/bin/php ./ss_host_mac.php N.N.N.N 0 "2:161:10:SNMP_STRING:::[MD5]:None" query out

Does Cacti return you some values like :

10.11.12.1!3276838592
10.11.12.2!1299632083
10.11.12.3!1181788175
10.11.12.6!489124051
10.11.12.9!1545992878
10.11.12.10!884392037
10.11.12.12!3228375103
10.11.12.14!109308465
10.11.12.15!2506033437

Try with snmpwalk :

% snmpwalk -v 2c -c SNMP_STRING N.N.N.N 1.3.6.1.4.1.9.9.84.1.2.1.1.4

Have you got some values from snmpwalk ?
Back to top
Lojak



Joined: 30 Sep 2004
Posts: 14

PostPosted: Mon Jul 10, 2006 7:48 am    Post subject: Reply with quote

jaguar wrote:

I'm running IOS v12.2. What about :

% /usr/bin/php ./ss_host_mac.php N.N.N.N 0 "2:161:10:SNMP_STRING:::[MD5]:None" query in
% /usr/bin/php ./ss_host_mac.php N.N.N.N 0 "2:161:10:SNMP_STRING:::[MD5]:None" query out


Nothing is returned.

Quote:


Try with snmpwalk :

% snmpwalk -v 2c -c SNMP_STRING N.N.N.N 1.3.6.1.4.1.9.9.84.1.2.1.1.4

Have you got some values from snmpwalk ?


Yes, I did have data returned on the 7206, not the 6506.

Code:
SNMPv2-SMI-v1::enterprises.9.9.84.1.2.1.1.4.2.2.0.208.192.240.212.17 = Counter32: 312455933


Thanks,
Back to top
jaguar



Joined: 02 Jun 2006
Posts: 11

PostPosted: Tue Jul 11, 2006 2:33 pm    Post subject: Reply with quote

I have no idea about wich OID I have to parse for Cisco 6500.

Can I have access to your 6k via SNMP (read-only of course) for analysing it ?

Kind regards.
Back to top
fmendez75



Joined: 05 Dec 2006
Posts: 7
Location: NYC, NY

PostPosted: Tue Dec 05, 2006 1:33 pm    Post subject: Reply with quote

jaguar wrote:
Lojak wrote:
I'm having difficulty with your latest version. When adding the associated data query to either a 7206 or 6506, the process just hangs. After a while the HTTP request times out and I can see that the query has been added to the device, but the query returned 0 rows.


Hi,

It's strange because I have just tested again my script and it works !

Cacti returns "Success [75 Items, 25 Rows]" when I'm adding the Associated Data Queries.

Lojak wrote:
Running the ss_host_mac.php script manually as per the readme.txt file returns the expected information for the main index command, but every other command returns duplicates of each peer. I also do not see anything for the query in/out commands:

Cisco 7206 running IOS v12.4

On a 6506, the peer is not duplicated, but it does not return anything for in/out and the process also hangs.


I'm running IOS v12.2. What about :

% /usr/bin/php ./ss_host_mac.php N.N.N.N 0 "2:161:10:SNMP_STRING:::[MD5]:None" query in
% /usr/bin/php ./ss_host_mac.php N.N.N.N 0 "2:161:10:SNMP_STRING:::[MD5]:None" query out

Does Cacti return you some values like :

10.11.12.1!3276838592
10.11.12.2!1299632083
10.11.12.3!1181788175
10.11.12.6!489124051
10.11.12.9!1545992878
10.11.12.10!884392037
10.11.12.12!3228375103
10.11.12.14!109308465
10.11.12.15!2506033437

Try with snmpwalk :

% snmpwalk -v 2c -c SNMP_STRING N.N.N.N 1.3.6.1.4.1.9.9.84.1.2.1.1.4

Have you got some values from snmpwalk ?


I am having almost the same problem. I can't get the template to graph.
When I test the script through the command line it does work.
e.g. /usr/local/share/cacti/scripts% php ./ss_host_mac.php [hostname] 0 "2:161:10:[community]:::[MD5]:None" [command]
When I try to create the graph I don't see any Host MIB- Peering under the "Associated Data Queries" I see it under "Associated Graph Templates"
I did follow your instructions in the readme.txt

What can I do to fix this? Thanks in advance.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group