|
|
| Author |
Message |
jvandenbroek
Joined: 11 Dec 2007 Posts: 1 Location: Haarlem, the Netherlands
|
Posted: Tue Dec 11, 2007 11:08 am Post subject: |
|
|
| 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
|
Posted: Thu Apr 03, 2008 3:47 pm Post subject: Help |
|
|
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
|
Posted: Thu Apr 03, 2008 8:03 pm Post subject: |
|
|
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
|
Posted: Fri Apr 04, 2008 12:36 pm Post subject: |
|
|
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: 8
|
Posted: Wed Sep 03, 2008 12:20 pm Post subject: |
|
|
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 |
|
 |
Robbin
Joined: 29 Oct 2008 Posts: 2
|
Posted: Wed Oct 29, 2008 5:11 am Post subject: |
|
|
I have tried to download this template.
and use the sonicwall_vpn.xml file said before.
But it doesnt work.
i get this error:
| Code: | RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="192.168.1.1 - Connections" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="connections" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/lib/cacti/rra/robbin_-_sonicwall_sonicwall_connects_39.rrd":sonicwall_connects:AVERAGE \
AREA:a#35962BFF:"Connections" \
GPRINT:a:LAST:"Current%8.2lf %s" \
GPRINT:a:AVERAGE:"Average%8.2lf %s" \
GPRINT:a:MIN:"Minimum%8.2lf %s" \
GPRINT:a:MAX:"Maximum%8.2lf %s"
RRDTool Says:
ERROR: opening '/var/lib/cacti/rra/robbin_-_sonicwall_sonicwall_connects_39.rrd': No such file or directory
|
I looked in the cacti rra directory and the rrd file is not created.
If i assign the ping latency template it works fine.
i think i do somthing wrong.
cacti version: 0.8.7b
i dont know how i can see with version of the rrd tool i used.
in the cacti control panel version 1.3.x is selected.
on ubuntu 8.04 server |
|
| Back to top |
|
 |
Robbin
Joined: 29 Oct 2008 Posts: 2
|
Posted: Wed Oct 29, 2008 6:21 am Post subject: |
|
|
| forgot my question i have solved it... i has not enabled snmp on the host.... |
|
| Back to top |
|
 |
Mischa
Joined: 01 Dec 2008 Posts: 1
|
Posted: Mon Dec 01, 2008 5:03 pm Post subject: Executing script for list of indexes ' ' |
|
|
I have a few Sonicwalls I want to moniter for VPN traffic. A colleague told me about Cacti and by googling I came out here.
I'm having some trouble with the script, here's the verbose output:
| Code: | + Running data query [13].
+ Found type = '4 '[script query].
+ Found data query XML file at '/usr/opt/apache/htdocs/cacti/resource/script_queries/sonicwall_vpn.xml'
+ XML file parsed ok.
+ Executing script for list of indexes ' '
+ Found data query XML file at '/usr/opt/apache/htdocs/cacti/resource/script_queries/sonicwall_vpn.xml'
+ Found data query XML file at '/usr/opt/apache/htdocs/cacti/resource/script_queries/sonicwall_vpn.xml'
+ Found data query XML file at '/usr/opt/apache/htdocs/cacti/resource/script_queries/sonicwall_vpn.xml' |
The XML was not created when I did the import so I manually created it. The XML and script file are owned by www, just like the rest of the scripts.
When I execute "perl query_sonicwall_vpn.pl 10.0.0.1 public index" from the console I get a list of public IP's, so it's net the Net/SNMP issue.
Can anyone help me with this?
I'm running Cacti 0.8.6j on FreeBSD 6.2. |
|
| Back to top |
|
 |
|