|
|
| Author |
Message |
jay Cacti User
Joined: 31 Aug 2005 Posts: 252 Location: Bristol, England
|
Posted: Wed Dec 21, 2005 6:26 am Post subject: Netscreen Template to monitor traffic for sub-interfaces |
|
|
Hi
I have created a template which allows you to monitor traffic for sub-interfaces for Netscreen firewalls as the default traffic templates won't do this.
The template monitors in and outbound traffic and also errors and discards.
This is my first post to the forum so go easy on me. I won't have a lot of time to answer any queries so i apologise if i don't get back to you very quickly.
I have added an attachment which shows a sub-interface being monitored.
I also have templates which monitor IDS counters such as ping of death and also interface monitoring counters such as authfail. I will post these if anyone is interested and people don't have too many issues with the attached template.
Jay
| Description: |
|
| Filesize: |
28.9 KB |
| Viewed: |
17113 Time(s) |

|
| Description: |
|
 Download |
| Filename: |
cacti_data_template_netscreen_interface_stats.zip |
| Filesize: |
12.5 KB |
| Downloaded: |
2448 Time(s) |
|
|
| Back to top |
|
 |
ttl
Joined: 30 Dec 2005 Posts: 2 Location: FI
|
Posted: Fri Dec 30, 2005 4:57 am Post subject: |
|
|
Hi,
Package does not contain the snmp_query file 'Netscreen_Interface_Counters.xml' or did i miss something?
<clip>
+ Running data query [12].
+ Found type = '3' [snmp query].
+ Could not find data query XML file at '/var/www/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'
+ Error parsing XML file into an array.
+ Could not find data query XML file at '/var/www/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'
+ Could not find data query XML file at '/var/www/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'
+ Could not find data query XML file at '/var/www/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'
</clip>
|
|
| Back to top |
|
 |
jay Cacti User
Joined: 31 Aug 2005 Posts: 252 Location: Bristol, England
|
Posted: Fri Dec 30, 2005 5:32 am Post subject: |
|
|
Hi
I have checked the the data query is included in the package.
Can you check in your the directory (/var/www/cacti/resource/snmp_queries) and see if the xml template is in there.
What version of Cacti are you using? I take it from the path that its a unix server you are using.
Jay
|
|
| Back to top |
|
 |
ttl
Joined: 30 Dec 2005 Posts: 2 Location: FI
|
Posted: Fri Dec 30, 2005 8:39 am Post subject: |
|
|
Hi
There's no any netscreen xml files in /var/www/cacti/resource/snmp_queries and i'm using Cacti 0.86g in Linux Debian 3.1.
I have downloaded cacti_data_template_netscreen_interface_stats.zip and imported all files in to Cacti.
cacti_data_template_netscreen_interface_stats.zip contains files:
cacti_data_query_netscreen_interface_statistics.xml
cacti_data_template_netscreen_interface_stats.xml
cacti_graph_template_netscreen_interface_traffic_bitssec.xml
cacti_graph_template_netscreen_interface_traffic_bytessec.xml
How this 'Netscreen_Interface_Counters.xml' data query XML file is created in snmp_queries directory? I have assumed that file must manually copied from cacti_data_template_netscreen_interface_stats.zip to /var/www/cacti/resource/snmp_queries directory, but there's no that file.
|
|
| Back to top |
|
 |
jay Cacti User
Joined: 31 Aug 2005 Posts: 252 Location: Bristol, England
|
Posted: Fri Dec 30, 2005 12:15 pm Post subject: |
|
|
Hi
The 4 files are correct. I'm not sure what happens when you export. I haven't exported any templates myself. I have been creating them myself.
I have attached a screen shot of what you should see for the data query.
I have also attached the .txt data query which you can add to your resource directory. You will need to change the extension to .xml .You will then need to add your graph templates to the data query as shown in the screenshot.
The screenshot is in word format..not sure if you will be able to open this as you are using Debian. Maybe you can open it in a windown machine so you can see the screen shot.
I will not be logged in from now until tuesday so won't be able to answer any of your queries until then.
Have a good new year.
Jay
| Description: |
|
 Download |
| Filename: |
Netscreen_Interface_Counters.txt |
| Filesize: |
2.22 KB |
| Downloaded: |
1547 Time(s) |
| Description: |
|
 Download |
| Filename: |
NS-Int-Screenshot.doc |
| Filesize: |
129.5 KB |
| Downloaded: |
1220 Time(s) |
|
|
| Back to top |
|
 |
muraping
Joined: 14 Dec 2005 Posts: 12
|
Posted: Sat Dec 31, 2005 2:17 am Post subject: |
|
|
thank jay. i import your xml files in my cacti system.
but no data soure
| Code: | Data Query Debug Information
+ Running data query [11].
+ Found type = '3' [snmp query].
+ Could not find data query XML file at '/www/htdocs/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'
+ Error parsing XML file into an array.
+ Could not find data query XML file at '/www/htdocs/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'
+ Could not find data query XML file at '/www/htdocs/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'
+ Could not find data query XML file at '/www/htdocs/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'
|
|
|
| Back to top |
|
 |
muraping
Joined: 14 Dec 2005 Posts: 12
|
Posted: Sat Dec 31, 2005 4:51 am Post subject: |
|
|
jay
can you got us this xml file?i import your zip files,but no this xml also.
i copy interface.xml to Netscreen_Interface_Counters.xml, | Code: | Data Query Debug Information + Running data query [11].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/www/htdocs/cacti/resource/snmp_queries/Netscreen_Interface_Counters.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]
+ Found item [ifIndex='4'] index: 4 [from value]
+ Found item [ifIndex='5'] index: 5 [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='1'] index: 1 [from value]
+ Found item [ifOperStatus='1'] index: 2 [from value]
+ Found item [ifOperStatus='2'] index: 3 [from value]
+ Found item [ifOperStatus='2'] index: 4 [from value]
+ Found item [ifOperStatus='1'] index: 5 [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='ethernet1'] index: 1 [from value]
+ Found item [ifDescr='ethernet2'] index: 2 [from value]
+ Found item [ifDescr='ethernet3'] index: 3 [from value]
+ Found item [ifDescr='ethernet4'] index: 4 [from value]
+ Found item [ifDescr='vlan1'] index: 5 [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='6'] index: 1 [from value]
+ Found item [ifType='6'] index: 2 [from value]
+ Found item [ifType='6'] index: 3 [from value]
+ Found item [ifType='6'] index: 4 [from value]
+ Found item [ifType='6'] index: 5 [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='100000000'] index: 1 [from value]
+ Found item [ifSpeed='10000000'] index: 2 [from value]
+ Found item [ifSpeed='10000000'] index: 3 [from value]
+ Found item [ifSpeed='10000000'] index: 4 [from value]
+ Found item [ifSpeed='0'] index: 5 [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='00:10:DB:90:44:30'] index: 1 [from value]
+ Found item [ifHwAddr='00:10:DB:90:44:35'] index: 2 [from value]
+ Found item [ifHwAddr='00:10:DB:90:44:36'] index: 3 [from value]
+ Found item [ifHwAddr='00:10:DB:90:44:37'] index: 4 [from value]
+ Found item [ifHwAddr='00:10:DB:90:44:3F'] index: 5 [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='219.235.226.35'] index: 5 [from regexp oid parse]
+ Found data query XML file at '/www/htdocs/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'
+ Found data query XML file at '/www/htdocs/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'
+ Found data query XML file at '/www/htdocs/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'
+ Found data query XML file at '/www/htdocs/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'
+ Found data query XML file at '/www/htdocs/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'
+ Found data query XML file at '/www/htdocs/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'
+ Found data query XML file at '/www/htdocs/cacti/resource/snmp_queries/Netscreen_Interface_Counters.xml'
| but this files is not netscreen need file,i make Data Sources&graph,but no drawing:( please get us Netscreen_Interface_Counters.xml
thank again
|
|
| Back to top |
|
 |
jay Cacti User
Joined: 31 Aug 2005 Posts: 252 Location: Bristol, England
|
Posted: Tue Jan 03, 2006 8:56 am Post subject: |
|
|
Hi
Here is what i want you to do. Check your Cacti configuration.
You should have the following.
Data Template - netscreen - interface stats
2 Graph Templates - Netscreen - Interface Traffic (bits/sec) and Netscreen - Interface Traffic (bytes/sec)
You should also have a data query - Netscreen - Interface Statistics
Is this correct??
If so i want you to delete the data query. Do NOT delete the data and graph templates.
Add the following Netscreen_Interface_Counters.txt into your resource directory for snmp_queries. Change the .txt to .xml. The file is attached with this reply.
Then create a new data query. Look at the screen shots i sent in a previous post to see how to do this.
Your xml path will look something like this.
<path_cacti>/resource/snmp_queries/Netscreen_Interface_Counters.xml
I have removed the discards and errors from the data query as i'm seeing issues on my Cacti server with this query. The interface stats are ok though.
Let me know how you get on with the above.
Jay
| Description: |
|
 Download |
| Filename: |
Netscreen_Interface_Counters.txt |
| Filesize: |
1.44 KB |
| Downloaded: |
1363 Time(s) |
|
|
| Back to top |
|
 |
muraping
Joined: 14 Dec 2005 Posts: 12
|
Posted: Tue Jan 03, 2006 8:27 pm Post subject: |
|
|
thank for jay
i used you files that is OK,thank very much!
|
|
| Back to top |
|
 |
aboyz Guest
|
Posted: Mon Jan 30, 2006 8:02 pm Post subject: Session graphing? |
|
|
Hi,
Anyone got session to graph on the netscreen? I can't seem to get it working. I'm using the netscreen 2000. Anyone know what OID to use?
|
|
| Back to top |
|
 |
jay Cacti User
Joined: 31 Aug 2005 Posts: 252 Location: Bristol, England
|
|
| Back to top |
|
 |
abdulcc Cacti User
Joined: 14 Jul 2006 Posts: 52
|
Posted: Thu Jan 11, 2007 4:10 am Post subject: Hello ALL |
|
|
| I have a netscreen ns208 and the firewall does not return subinterfaces on my snmp query. How would I enable that?
|
|
| Back to top |
|
 |
jay Cacti User
Joined: 31 Aug 2005 Posts: 252 Location: Bristol, England
|
Posted: Thu Jan 11, 2007 12:39 pm Post subject: |
|
|
What information do you get when you do an snmpwalk to the firewall?? Change public to your community and x.x.x.x to your IP address.
C:\net-snmp\bin>snmpwalk.exe -v2c -c public x.x.x.x 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
Check this correlates to the amount of interfaces that you have on the firewall.
Also when you add the template to a device if you do a verbose query what information do you see..please add this to the post.
Jay
|
|
| Back to top |
|
 |
abdulcc Cacti User
Joined: 14 Jul 2006 Posts: 52
|
Posted: Fri Jan 12, 2007 3:37 am Post subject: Here is the snmp query response |
|
|
It also does not show sub interfaces
-bash-2.05b# snmpwalk -v 2c -c public 10.28.2.34
SNMPv2-MIB::sysDescr.0 = STRING: NetScreen-208 version 5.3.0r3.0 (SN: 0099032006000095, Firewall+VPN)
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.3224.1.10
SNMPv2-MIB::sysUpTime.0 = Timeticks: (549295600) 63 days, 13:49:16.00
SNMPv2-MIB::sysContact.0 = STRING: noc
SNMPv2-MIB::sysName.0 = STRING: netscreenfw
SNMPv2-MIB::sysLocation.0 = STRING:
SNMPv2-MIB::sysServices.0 = INTEGER: 72
IF-MIB::ifNumber.0 = INTEGER: 9
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifIndex.5 = INTEGER: 5
IF-MIB::ifIndex.6 = INTEGER: 6
IF-MIB::ifIndex.7 = INTEGER: 7
IF-MIB::ifIndex.8 = INTEGER: 8
IF-MIB::ifIndex.9 = INTEGER: 9
IF-MIB::ifDescr.1 = STRING: ethernet1
IF-MIB::ifDescr.2 = STRING: ethernet2
IF-MIB::ifDescr.3 = STRING: ethernet3
IF-MIB::ifDescr.4 = STRING: ethernet4
IF-MIB::ifDescr.5 = STRING: ethernet5
IF-MIB::ifDescr.6 = STRING: ethernet6
IF-MIB::ifDescr.7 = STRING: ethernet7
IF-MIB::ifDescr.8 = STRING: ethernet8
IF-MIB::ifDescr.9 = STRING: vlan1
IF-MIB::ifType.1 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.4 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.5 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.6 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.7 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.8 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.9 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifMtu.1 = INTEGER: 1500
IF-MIB::ifMtu.2 = INTEGER: 1500
IF-MIB::ifMtu.3 = INTEGER: 1500
IF-MIB::ifMtu.4 = INTEGER: 1500
IF-MIB::ifMtu.5 = INTEGER: 1500
IF-MIB::ifMtu.6 = INTEGER: 1500
IF-MIB::ifMtu.7 = INTEGER: 1500
IF-MIB::ifMtu.8 = INTEGER: 1500
IF-MIB::ifMtu.9 = INTEGER: 1500
IF-MIB::ifSpeed.1 = Gauge32: 100000000
IF-MIB::ifSpeed.2 = Gauge32: 100000000
IF-MIB::ifSpeed.3 = Gauge32: 100000000
IF-MIB::ifSpeed.4 = Gauge32: 100000000
IF-MIB::ifSpeed.5 = Gauge32: 100000000
IF-MIB::ifSpeed.6 = Gauge32: 100000000
IF-MIB::ifSpeed.7 = Gauge32: 100000000
IF-MIB::ifSpeed.8 = Gauge32: 100000000
IF-MIB::ifSpeed.9 = Gauge32: 0
IF-MIB::ifPhysAddress.1 = STRING: 0:10:db:ff:20:0
IF-MIB::ifPhysAddress.2 = STRING: 0:10:db:ff:20:50
IF-MIB::ifPhysAddress.3 = STRING: 0:10:db:ff:20:60
IF-MIB::ifPhysAddress.4 = STRING: 0:10:db:ff:20:70
IF-MIB::ifPhysAddress.5 = STRING: 0:10:db:ff:20:80
IF-MIB::ifPhysAddress.6 = STRING: 0:10:db:ff:20:90
IF-MIB::ifPhysAddress.7 = STRING: 0:14:f6:41:93:ca
IF-MIB::ifPhysAddress.8 = STRING: 0:14:f6:41:93:cb
IF-MIB::ifPhysAddress.9 = STRING: 0:10:db:ff:20:f0
IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
IF-MIB::ifAdminStatus.2 = INTEGER: up(1)
IF-MIB::ifAdminStatus.3 = INTEGER: up(1)
IF-MIB::ifAdminStatus.4 = INTEGER: up(1)
IF-MIB::ifAdminStatus.5 = INTEGER: up(1)
IF-MIB::ifAdminStatus.6 = INTEGER: up(1)
IF-MIB::ifAdminStatus.7 = INTEGER: up(1)
IF-MIB::ifAdminStatus.8 = INTEGER: up(1)
IF-MIB::ifAdminStatus.9 = INTEGER: up(1)
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.2 = INTEGER: up(1)
IF-MIB::ifOperStatus.3 = INTEGER: up(1)
IF-MIB::ifOperStatus.4 = INTEGER: up(1)
IF-MIB::ifOperStatus.5 = INTEGER: up(1)
IF-MIB::ifOperStatus.6 = INTEGER: up(1)
IF-MIB::ifOperStatus.7 = INTEGER: up(1)
IF-MIB::ifOperStatus.8 = INTEGER: up(1)
IF-MIB::ifOperStatus.9 = INTEGER: down(2)
IF-MIB::ifLastChange.1 = Timeticks: (53020100) 6 days, 3:16:41.00
IF-MIB::ifLastChange.2 = Timeticks: (53020100) 6 days, 3:16:41.00
IF-MIB::ifLastChange.3 = Timeticks: (53020200) 6 days, 3:16:42.00
IF-MIB::ifLastChange.4 = Timeticks: (900) 0:00:09.00
IF-MIB::ifLastChange.5 = Timeticks: (900) 0:00:09.00
IF-MIB::ifLastChange.6 = Timeticks: (53020200) 6 days, 3:16:42.00
IF-MIB::ifLastChange.7 = Timeticks: (900) 0:00:09.00
IF-MIB::ifLastChange.8 = Timeticks: (900) 0:00:09.00
IF-MIB::ifLastChange.9 = Timeticks: (0) 0:00:00.00
IF-MIB::ifInOctets.1 = Counter32: 2501321180
IF-MIB::ifInOctets.2 = Counter32: 2783533063
IF-MIB::ifInOctets.3 = Counter32: 2458314484
IF-MIB::ifInOctets.4 = Counter32: 1002220517
IF-MIB::ifInOctets.5 = Counter32: 1607903244
IF-MIB::ifInOctets.6 = Counter32: 1070927344
IF-MIB::ifInOctets.7 = Counter32: 717766365
IF-MIB::ifInOctets.8 = Counter32: 329937560
IF-MIB::ifInOctets.9 = Counter32: 0
IF-MIB::ifInUcastPkts.1 = Counter32: 272929349
IF-MIB::ifInUcastPkts.2 = Counter32: 2646558496
IF-MIB::ifInUcastPkts.3 = Counter32: 540699829
IF-MIB::ifInUcastPkts.4 = Counter32: 75443531
IF-MIB::ifInUcastPkts.5 = Counter32: 15982362
IF-MIB::ifInUcastPkts.6 = Counter32: 7340475
IF-MIB::ifInUcastPkts.7 = Counter32: 11019823
IF-MIB::ifInUcastPkts.8 = Counter32: 5498959
IF-MIB::ifInUcastPkts.9 = Counter32: 0
|
|
| Back to top |
|
 |
jay Cacti User
Joined: 31 Aug 2005 Posts: 252 Location: Bristol, England
|
Posted: Fri Jan 12, 2007 4:58 am Post subject: |
|
|
Hi
You are walking the Interface MIB and not the netscreen specific MIB. Try walking this OID - 1.3.6.1.4.1.3224.9.3. 1.1 as i did on the previous post. You should see your sub interfaces. The template i posted uses this MIB which then allows you to monitor each sub interface. The standard interface MIB does not.
Jay
|
|
| Back to top |
|
 |
|