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    


SonicWall templates ?
Goto page Previous  1, 2, 3, 4, 5, 6
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
jvandenbroek



Joined: 11 Dec 2007
Posts: 1
Location: Haarlem, the Netherlands

PostPosted: Tue Dec 11, 2007 11:08 am    Post subject: Reply with quote

I got exactly the same problem as jkw117@msn.com described above. Running PHP 4.4.4-8+etch4 and Apache 2.2.3-4+etch1. Any help would be appreciated!
Back to top
edb



Joined: 03 Apr 2008
Posts: 5

PostPosted: Thu Apr 03, 2008 3:47 pm    Post subject: Help Reply with quote

I have this same issue that many other have had and have followed everything in this thread but to no avail.

Code:

+ Running data query [10].
+ Found type = '4 '[script query].
+ Found data query XML file at '/opt/cacti/resource/script_queries/sonicwall_vpn.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'perl /opt/cacti/scripts/query_sonicwall_vpn.pl 192.168.10.88 public index'
+ Executing script query 'perl /opt/cacti/scripts/query_sonicwall_vpn.pl 192.168.10.88 public query peergateway'
+ Executing script query 'perl /opt/cacti/scripts/query_sonicwall_vpn.pl 192.168.10.88 public query vpnname'
+ Found data query XML file at '/opt/cacti/resource/script_queries/sonicwall_vpn.xml'
+ Found data query XML file at '/opt/cacti/resource/script_queries/sonicwall_vpn.xml'
+ Found data query XML file at '/opt/cacti/resource/script_queries/sonicwall_vpn.xml'


I downloaded the files and uploaded them to my Linux server into the /cacti/scripts folder as well as renaming the file from query_sonicwall_vpnpl_455.txt to query_sonicwall_vpn.pl then taking the cacti_host_template_sonicwall_749.xml file copying it to /cacti/resource/script_queries and renaming it to sonicwall_vpn.xml but it doesn't seem to work.
Interface - Traffic (bytes/sec, Total Bandwidth) graph works fine.

I can monitor the SNMP-interface ststistics but not the Script - Sonicwall VPN as it just returns Success [0 Items, 0 Rows].

Appreciate any help. Being able to monitor the VPNs would be great.

Thanks

edb
Back to top
edb



Joined: 03 Apr 2008
Posts: 5

PostPosted: Thu Apr 03, 2008 8:03 pm    Post subject: Reply with quote

Here is the error I get when I try to run the script from the Linux server console:

Code:
[root@defcon1 ~]# perl /opt/cacti/scripts/query_sonicwall_vpn.pl
192.168.10.88
public index
Can't locate Net/SNMP.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.5/
i386-linux-thread-multi/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5
.8.5/i386-linux-thread-multi/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thr
ead-multi/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thre
ad-multi/5.8.4 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/5.8.3 /usr
/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/5.8.2 /usr/lib/perl5/site_per
l/5.8.5/i386-linux-thread-multi/5.8.1 /usr/lib/perl5/site_perl/5.8.5/i386-linux-
thread-multi/5.8.0 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/l
ib/perl5/site_perl/5.8.5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/
5.8.5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl
5/site_perl/5.8.5/5.8.4 /usr/lib/perl5/site_perl/5.8.5/5.8.3 /usr/lib/perl5/site
_perl/5.8.5/5.8.2 /usr/lib/perl5/site_perl/5.8.5/5.8.1 /usr/lib/perl5/site_perl/
5.8.5/5.8.0 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.5/i386
-linux-thread-multi/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8
.5/i386-linux-thread-multi/5.8.5 /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thr
ead-multi/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-th
read-multi/5.8.4 /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/5.8.3
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/5.8.2 /usr/lib/perl5/ve
ndor_perl/5.8.5/i386-linux-thread-multi/5.8.1 /usr/lib/perl5/vendor_perl/5.8.5/i
386-linux-thread-multi/5.8.0 /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-
multi /usr/lib/perl5/vendor_perl/5.8.5/5.8.5/i386-linux-thread-multi /usr/lib/pe
rl5/vendor_perl/5.8.5/5.8.5 /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-m
ulti /usr/lib/perl5/vendor_perl/5.8.5/5.8.4 /usr/lib/perl5/vendor_perl/5.8.5/5.8
.3 /usr/lib/perl5/vendor_perl/5.8.5/5.8.2 /usr/lib/perl5/vendor_perl/5.8.5/5.8.1
/usr/lib/perl5/vendor_perl/5.8.5/5.8.0 /usr/lib/perl5/vendor_perl/5.8.5 /usr/li
b/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_p
erl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thre
ad-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/s
ite_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux
-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/pe
rl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.
3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/s
ite_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-li
nux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/l
ib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.
8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-m
ulti /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/ven
dor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3
/usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl
5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /opt/cacti/scripts/query_so
nicwall_vpn.pl line 20.
BEGIN failed--compilation aborted at /opt/cacti/scripts/query_sonicwall_vpn.pl l
ine 20.
[root@defcon1 ~]#

I do have net snmp installed ...
Code:
[root@defcon1 ~]# rpm -q net-snmp-perl
net-snmp-perl-5.1.2-11.el4_6.11.2


I don't know and getting frustrated ...

edb
Back to top
edb



Joined: 03 Apr 2008
Posts: 5

PostPosted: Fri Apr 04, 2008 12:36 pm    Post subject: Reply with quote

OK for anyone else using this script on Linux CentOS here is what I had to do:

Code:
wget http://dag.wieers.com/rpm/packages/perl-Net-SNMP/perl-Net-SNMP-5.2.0-1.2.el4.rf.noarch.rpm

wget http://dag.wieers.com/rpm/packages/perl-Crypt-DES/perl-Crypt-DES-2.05-3.2.el4.rf.i386.rpm

rpm -ivh perl-Crypt-DES-2.05-3.2.el4.rf.i386.rpm perl-Net-SNMP-5.2.0-1.2.el4.rf.noarch.rpm


Now I'm able to get the data and create the graphs. Thank goodness!

edb
Back to top
jefframsey



Joined: 25 Aug 2008
Posts: 3

PostPosted: Wed Sep 03, 2008 12:20 pm    Post subject: Reply with quote

I am having some trouble with the figures for encryptbytes and decryptbytes.

First, the preliminaries: I am using Cacti 0.8.7bUbuntu on Ubuntu 8.04LTS. My Sonicwall is a Pro 4060. I am using the latest firmware which is 4.0.0.8 enhanced. All graphs work fine except for the VPN graphs.

I have two site-2-site VPN tunnels over a 2.3Mb SDSL connection. I used the formula in the earlier post, and came up with the following:

(2411724.8 / 8) * (1 + 1.05) = 618004.48

Since this is a synchronous connection, I used this number for both encryptbytes and decryptbytes.

When I setup the graphs, I get 'nan' for every value in the VPN graphs, and when I check the cacti log I find the following two lines for each graph:

Code:
09/03/2008 10:08:10 AM - CMDPHP: Poller[0] Host[62] DS[832] CMD: perl /usr/share/cacti/site/scripts/query_sonicwall_vpn.pl fw1.tmifp.com COMMUNITY get decryptbytes VPNPEERTUNNEL, output: 03058035064592185554752469524695005589900
09/03/2008 10:08:10 AM - CMDPHP: Poller[0] Host[62] DS[832] CMD: perl /usr/share/cacti/site/scripts/query_sonicwall_vpn.pl fw1.tmifp.com COMMUNITY get encryptbytes VPNPEERTUNNEL, output: 1128083980536021070303173301074817189310748718371830


So what I have done is changed encryptbytes and decryptbytes to a number that is higher than the largest number that I can see here, and that is giving me data in my graphs, but it is telling me that my current stream is 20 petabytes at times.

If I leave the numbers in there from the formula in this thread, I never see any data in my VPN graphs at all.

Any ideas?
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 Previous  1, 2, 3, 4, 5, 6
Page 6 of 6

 



Powered by phpBB © 2001, 2005 phpBB Group