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    


Netscreen Policy Total Traffic

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



Joined: 10 Feb 2006
Posts: 11

PostPosted: Wed Jan 16, 2008 8:35 pm    Post subject: Netscreen Policy Total Traffic Reply with quote

Because the netscreen doesn't provide over SNMP In/Out traffic details, the graph contains only total traffic.

Installation:
copy netscreen_policy_traffic.php to /scripts/
copy netscreen_policy_traffic.xml to /resources/script_queries
import cacti_data_query_netscreen_-_policy_total_traffic.xml

Edit:
Small php bugfix



netscreen_policy_traffic.zip
 Description:
Query Template

Download
 Filename:  netscreen_policy_traffic.zip
 Filesize:  4.79 KB
 Downloaded:  279 Time(s)

Back to top
cspenpen



Joined: 05 Dec 2006
Posts: 12

PostPosted: Fri Jan 18, 2008 3:10 am    Post subject: Re: Netscreen Policy Total Traffic Reply with quote

zomps wrote:
Because the netscreen doesn't provide over SNMP In/Out traffic details, the graph contains only total traffic.

Installation:
copy netscreen_policy_traffic.php to /scripts/
copy netscreen_policy_traffic.xml to /resources/script_queries
import cacti_data_query_netscreen_-_policy_total_traffic.xml

Edit:
Small php bugfix


I import xml,but there's error said "Error: XML: Hash version does not exist."
how to fix it?
Back to top
zomps



Joined: 10 Feb 2006
Posts: 11

PostPosted: Sat Jan 19, 2008 10:22 am    Post subject: Reply with quote

http://forums.cacti.net/about10309.html
Graph are exported from 0.8.7a
Back to top
xp1862



Joined: 20 Feb 2008
Posts: 2

PostPosted: Wed Feb 20, 2008 3:22 am    Post subject: Reply with quote

Dear Sir :
I use your template and get some error ~~~
why output : U ??


SCRIPT: /usr/bin/php -q /var/www/html/cacti/scripts/netscreen_policy_traffic.php 192.168.5.110 public 1 get bytes 16, output: U

Server Info :
====================
Cacti Version 0.8.7a
Plugin Architecture 1.4
Poller Type Cactid v
Server Info Linux 2.6.9-42.EL
Web Server Apache/2.0.52 (CentOS)
PHP Version 4.3.9
PHP Extensions yp, xml, wddx, tokenizer, sysvshm, sysvsem, standard, sockets, shmop, session, pspell, posix, pcre, overload, mime_magic, iconv, gmp, gettext, ftp, exif, dio, dbx, dba, curl, ctype, calendar, bz2, bcmath, zlib, openssl, apache2handler, gd, ldap, mysql, odbc, pgsql, snmp
MySQL Version 4.1.20
RRDTool Version 1.0.50
SNMP Version 5.1.2
Plugins Host Info (hostinfo - v0.2)
Device Monitoring (monitor - v0.8.2)
Update Checker (update - v0.4)
Network Tools (tools - v0.2)
Global Plugin Settings (settings - v0.3)
Thresholds (thold - v0.3.9)
PHP Network Managing (manage - v0.5.1)
PHP Network Weathermap (weathermap - v0.941)
RRD File Cleaner (RRD Cleaner - v0.32)
Back to top
zomps



Joined: 10 Feb 2006
Posts: 11

PostPosted: Wed Feb 20, 2008 4:00 am    Post subject: Reply with quote

I think you have to enable counting on netscreen configuration each policy
Back to top
empoweri



Joined: 09 May 2005
Posts: 3

PostPosted: Fri Mar 07, 2008 9:53 am    Post subject: Reply with quote

I enabled counting on the policies I want to watch and they show no results via snmpbulkwalk. They are being hit based upon logging to syslog

[root@monitor tmp]# snmpbulkwalk firewall -c PRIVATE -v 2c .1.3.6.1.4.1.3224.10.2.1.3
SNMPv2-SMI::enterprises.3224.10.2.1.3.1.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3224.10.2.1.3.2.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3224.10.2.1.3.3.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3224.10.2.1.3.4.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3224.10.2.1.3.5.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3224.10.2.1.3.8.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3224.10.2.1.3.10.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3224.10.2.1.3.15.0 = INTEGER: 0
[root@monitor tmp]# snmpbulkwalk firewall -c PRIVATE -v 2c .1.3.6.1.4.1.3224.10.2.1.6
SNMPv2-SMI::enterprises.3224.10.2.1.6.1.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3224.10.2.1.6.2.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3224.10.2.1.6.3.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3224.10.2.1.6.4.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3224.10.2.1.6.5.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3224.10.2.1.6.8.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3224.10.2.1.6.10.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3224.10.2.1.6.15.0 = INTEGER: 0

What am I doing wrong in the netscreen?
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