Netscreen Template to monitor traffic for sub-interfaces

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

abdulcc
Cacti User
Posts: 52
Joined: Fri Jul 14, 2006 7:06 am

Post by abdulcc »

Here the data query in deug mode

+ Running data query [14].
+ Found type = '4 '[script query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'
+ XML file parsed ok.
+ Executing script for list of indexes ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'



SNMP walk

-bash-2.05b# snmpwalk -v 2c -c public 10.28.2.34 1.3.6.1.4.1.3224.9.3.1.1
SNMPv2-SMI::enterprises.3224.9.3.1.1.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3224.9.3.1.1.1 = INTEGER: 1
SNMPv2-SMI::enterprises.3224.9.3.1.1.2 = INTEGER: 2
SNMPv2-SMI::enterprises.3224.9.3.1.1.3 = INTEGER: 3
SNMPv2-SMI::enterprises.3224.9.3.1.1.4 = INTEGER: 4
SNMPv2-SMI::enterprises.3224.9.3.1.1.5 = INTEGER: 5
SNMPv2-SMI::enterprises.3224.9.3.1.1.6 = INTEGER: 6
SNMPv2-SMI::enterprises.3224.9.3.1.1.7 = INTEGER: 7
SNMPv2-SMI::enterprises.3224.9.3.1.1.8 = INTEGER: 8
SNMPv2-SMI::enterprises.3224.9.3.1.1.9 = INTEGER: 9
SNMPv2-SMI::enterprises.3224.9.3.1.1.10 = INTEGER: 10
SNMPv2-SMI::enterprises.3224.9.3.1.1.11 = INTEGER: 11
SNMPv2-SMI::enterprises.3224.9.3.1.1.12 = INTEGER: 12
SNMPv2-SMI::enterprises.3224.9.3.1.1.13 = INTEGER: 13
SNMPv2-SMI::enterprises.3224.9.3.1.1.14 = INTEGER: 14
SNMPv2-SMI::enterprises.3224.9.3.1.1.15 = INTEGER: 15
SNMPv2-SMI::enterprises.3224.9.3.1.1.16 = INTEGER: 16
SNMPv2-SMI::enterprises.3224.9.3.1.1.17 = INTEGER: 17
SNMPv2-SMI::enterprises.3224.9.3.1.1.18 = INTEGER: 18
SNMPv2-SMI::enterprises.3224.9.3.1.1.19 = INTEGER: 19
SNMPv2-SMI::enterprises.3224.9.3.1.1.20 = INTEGER: 20
SNMPv2-SMI::enterprises.3224.9.3.1.1.21 = INTEGER: 21
SNMPv2-SMI::enterprises.3224.9.3.1.1.22 = INTEGER: 22
SNMPv2-SMI::enterprises.3224.9.3.1.1.23 = INTEGER: 23
SNMPv2-SMI::enterprises.3224.9.3.1.1.24 = INTEGER: 24
SNMPv2-SMI::enterprises.3224.9.3.1.1.25 = INTEGER: 25
SNMPv2-SMI::enterprises.3224.9.3.1.1.26 = INTEGER: 26
SNMPv2-SMI::enterprises.3224.9.3.1.1.27 = INTEGER: 27
SNMPv2-SMI::enterprises.3224.9.3.1.1.28 = INTEGER: 28
SNMPv2-SMI::enterprises.3224.9.3.1.1.29 = INTEGER: 29
abdulcc
Cacti User
Posts: 52
Joined: Fri Jul 14, 2006 7:06 am

here is the request

Post by abdulcc »

The snmp walk is ok

-bash-2.05b# snmpwalk -v 2c -c public 10.28.2.34 1.3.6.1.4.1.3224.9.3.1.1
SNMPv2-SMI::enterprises.3224.9.3.1.1.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3224.9.3.1.1.1 = INTEGER: 1
SNMPv2-SMI::enterprises.3224.9.3.1.1.2 = INTEGER: 2
SNMPv2-SMI::enterprises.3224.9.3.1.1.3 = INTEGER: 3
SNMPv2-SMI::enterprises.3224.9.3.1.1.4 = INTEGER: 4
SNMPv2-SMI::enterprises.3224.9.3.1.1.5 = INTEGER: 5
SNMPv2-SMI::enterprises.3224.9.3.1.1.6 = INTEGER: 6
SNMPv2-SMI::enterprises.3224.9.3.1.1.7 = INTEGER: 7
SNMPv2-SMI::enterprises.3224.9.3.1.1.8 = INTEGER: 8
SNMPv2-SMI::enterprises.3224.9.3.1.1.9 = INTEGER: 9
SNMPv2-SMI::enterprises.3224.9.3.1.1.10 = INTEGER: 10
SNMPv2-SMI::enterprises.3224.9.3.1.1.11 = INTEGER: 11
SNMPv2-SMI::enterprises.3224.9.3.1.1.12 = INTEGER: 12
SNMPv2-SMI::enterprises.3224.9.3.1.1.13 = INTEGER: 13
SNMPv2-SMI::enterprises.3224.9.3.1.1.14 = INTEGER: 14
SNMPv2-SMI::enterprises.3224.9.3.1.1.15 = INTEGER: 15
SNMPv2-SMI::enterprises.3224.9.3.1.1.16 = INTEGER: 16
SNMPv2-SMI::enterprises.3224.9.3.1.1.17 = INTEGER: 17
SNMPv2-SMI::enterprises.3224.9.3.1.1.18 = INTEGER: 18
SNMPv2-SMI::enterprises.3224.9.3.1.1.19 = INTEGER: 19
SNMPv2-SMI::enterprises.3224.9.3.1.1.20 = INTEGER: 20
SNMPv2-SMI::enterprises.3224.9.3.1.1.21 = INTEGER: 21
SNMPv2-SMI::enterprises.3224.9.3.1.1.22 = INTEGER: 22
SNMPv2-SMI::enterprises.3224.9.3.1.1.23 = INTEGER: 23
SNMPv2-SMI::enterprises.3224.9.3.1.1.24 = INTEGER: 24
SNMPv2-SMI::enterprises.3224.9.3.1.1.25 = INTEGER: 25
SNMPv2-SMI::enterprises.3224.9.3.1.1.26 = INTEGER: 26
SNMPv2-SMI::enterprises.3224.9.3.1.1.27 = INTEGER: 27
SNMPv2-SMI::enterprises.3224.9.3.1.1.28 = INTEGER: 28
SNMPv2-SMI::enterprises.3224.9.3.1.1.29 = INTEGER: 29

Data query from cacti NOK
Data Query Debug Information
+ Running data query [14].
+ Found type = '4 '[script query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'
+ XML file parsed ok.
+ Executing script for list of indexes ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'
abdulcc
Cacti User
Posts: 52
Joined: Fri Jul 14, 2006 7:06 am

Woohoo

Post by abdulcc »

I got it to work

Thanks Jay Great Job
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Thanks Jay for this template - I've just got around to looking seriously at a couple of 208s we have with a lots of VLANs and VSIs, and it's saved me a lot of time!

The only change I did make was to change the DS names to traffic_in and traffic_out, so I could use them in a weathermap mixed with regular interfaces without specifying to DSes all the time, but that's just my laziness :)
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
jbiel
Posts: 20
Joined: Thu May 05, 2005 12:26 pm

Post by jbiel »

Jay,

Under Associated Graph Templates, the optoins

Data Source: NS_Int_traffic_in
Data Source: NS_Int_traffic_out

Do not have any options in the drop down menu.

Cacti Versoin: 0.8.6i
Jason
jay
Cacti User
Posts: 390
Joined: Wed Aug 31, 2005 8:55 am
Location: Bristol, England

Post by jay »

Hi

That's strange. I can't remember what version of Cacti I used to upload these. I'm currently running j, not got round to upgrading yet.

Have you put the xml file Netscreen_Interface_Counters.xml into your <path_cacti>/resource/snmp_queries folder??
On the same page does the data input method show GET SNMP Data (Indexed) ?
Do you see your associated graph templates - NS In/Out Bits and NS In/Out Bytes ? When you click on one of these associated graph templates what do you see? Maybe you can post a screen shot of this page.

Jay
Cacti Version 0.8.7e, Spine 0.8.7e, Apache 2.2.15, Mysql 5.0.88, PHP 5.2.13, RRDTool 1.2.30, NET-SNMP 5.5
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75

SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
jbiel
Posts: 20
Joined: Thu May 05, 2005 12:26 pm

Post by jbiel »

ls -alh /var/www/html/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml
-rw------- 1 root root 1.4K Mar 13 12:47 /var/www/html/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml

EDIT: Sorry, all the screenshots are correct now.
Attachments
untitled_2.JPG
untitled_2.JPG (78.03 KiB) Viewed 11948 times
untitled.JPG
untitled.JPG (65.86 KiB) Viewed 11948 times
Jason
jay
Cacti User
Posts: 390
Joined: Wed Aug 31, 2005 8:55 am
Location: Bristol, England

Post by jay »

HI Jason


Try re-importing the templates but leave the xml file where it is so you are just importing the graph and data templates. Let me know if you get any errors when doing this.

You should have the following templates within the Cacti gui:-
Data Templates - Netscreen - Interface Stats

Graph Templates - Netscreen - Interface Traffic (bits/sec) and Netscreen - Interface Traffic (bytes/sec)

Data queries - Netscreen - Interface Statistics

Do you have all of these after re -importing the templates? Might be worth checking you have these before re-importing.

Jay
Cacti Version 0.8.7e, Spine 0.8.7e, Apache 2.2.15, Mysql 5.0.88, PHP 5.2.13, RRDTool 1.2.30, NET-SNMP 5.5
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75

SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
jay
Cacti User
Posts: 390
Joined: Wed Aug 31, 2005 8:55 am
Location: Bristol, England

Post by jay »

Hi Jason

I've just seen that you uploaded screen shots and edited your post. Is this now working for you??

Jay
Cacti Version 0.8.7e, Spine 0.8.7e, Apache 2.2.15, Mysql 5.0.88, PHP 5.2.13, RRDTool 1.2.30, NET-SNMP 5.5
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75

SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
jbiel
Posts: 20
Joined: Thu May 05, 2005 12:26 pm

Post by jbiel »

I have removed all the templates and left the xml file in place and re-imported the templates.

Code: Select all

Cacti has imported the following items:

Round Robin Archive
[success] Daily (5 Minute Average) [update]
[success] Weekly (30 Minute Average) [update]
[success] Monthly (2 Hour Average) [update]
[success] Yearly (1 Day Average) [update]

CDEF
[success] Turn Bytes into Bits [update]

GPRINT Preset
[success] Normal [update]

Data Input Method
[success] Get SNMP Data (Indexed) [update]

Data Template
[success] Interface - Errors/Discards [update]
[success] Netscreen - Interface Stats [new]

Graph Template
[success] Interface - Errors/Discards [update]
[success] Netscreen - Interface Traffic (bytes/sec) [new]
[success] Netscreen - Interface Traffic (bits/sec) [new]

Data Query
[success] Netscreen - Interface Statistics [new]

Code: Select all

Cacti has imported the following items:

Round Robin Archive
[success] Daily (5 Minute Average) [update]
[success] Weekly (30 Minute Average) [update]
[success] Monthly (2 Hour Average) [update]
[success] Yearly (1 Day Average) [update]

Data Input Method
[success] Get SNMP Data (Indexed) [update]

Data Template
[success] Netscreen - Interface Stats [update]

Code: Select all

Cacti has imported the following items:

Round Robin Archive
[success] Daily (5 Minute Average) [update]
[success] Weekly (30 Minute Average) [update]
[success] Monthly (2 Hour Average) [update]
[success] Yearly (1 Day Average) [update]

CDEF
[success] Turn Bytes into Bits [update]

GPRINT Preset
[success] Normal [update]

Data Input Method
[success] Get SNMP Data (Indexed) [update]

Data Template
[success] Netscreen - Interface Stats [update]

Graph Template
[success] Netscreen - Interface Traffic (bits/sec) [update]

Code: Select all

Cacti has imported the following items:

Round Robin Archive
[success] Daily (5 Minute Average) [update]
[success] Weekly (30 Minute Average) [update]
[success] Monthly (2 Hour Average) [update]
[success] Yearly (1 Day Average) [update]

GPRINT Preset
[success] Normal [update]

Data Input Method
[success] Get SNMP Data (Indexed) [update]

Data Template
[success] Netscreen - Interface Stats [update]

Graph Template
[success] Netscreen - Interface Traffic (bytes/sec) [update]
Attachments
untitled_3.JPG
untitled_3.JPG (65.28 KiB) Viewed 11939 times
untitled_4.JPG
untitled_4.JPG (76 KiB) Viewed 11939 times
Jason
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Does anyone know of way to get interface stats out of L2 Netscreen ports? (e.g. the component ports of bgroup0 on an SSG-5)

I have a situation where getting per-port stats would be very handy. The ports are listed, but the counters don't go up.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
nebj00la
Cacti User
Posts: 112
Joined: Fri Feb 17, 2006 9:02 pm
Location: Massachusetts, USA
Contact:

Post by nebj00la »

I needed to graph tunnel interfaces while tracking the interface speed (gathered via the parent physical interface), so the attached template is used.

Credit goes to jay for the majority of the template work.
Attachments
vpn.tunnel.interface.png
vpn.tunnel.interface.png (37.78 KiB) Viewed 8933 times
netscreen.vpn.tunnel.utilization.zip
(8.36 KiB) Downloaded 492 times
Thanks,
nebj00la
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests