Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
After some troubleshooting I managed to get working solution for monitoring my VPN IpSec Tunnels on Sonicwall. But huge spikes are there and I can't solve that. Spikes are randomly there in PB. I tried to solve with:
3. When creating graphs you will be prompted to enter a maximum value for decrypt/encrypt bytes. You MUST enter a value equal to the fast connection of any of the tunnels being monitored from this device. Otherwise you will see huge spikes every 8 hours.
I enter maximums for two fields "maximum decrypt/encrypt" with values from provided formula but I got the graphics with 8kbps up/down with a lot of interruptions which are not valid.
Any suggestions? My VPN traffic is 30Mbps synchronous.
bdearlove wrote:Sorry if I sound like a N00b. Have a question. I have everything working great, but the 1 part I didn't know what to answer:
3. When creating graphs you will be prompted to enter a maximum value for decrypt/encrypt bytes. You MUST enter a value equal to the fast connection of any of the tunnels being monitored from this device. Otherwise you will see huge spikes every 8 hours.
What is fast connection? I have been noticing the spikes but do not know what to enter there,
Also, BigCityMike, it looks like you have the same issue as I did. Make sure you have Perl Installed, and Net-SNMP for Perl. The Windows Installer does not include it and I was running into the same issue until installed this.
Can anyone help with getting this working properly? I have Cacti 1.06 and have installed this template which works except the VPN's. I have 7 SW routers 1 NSA2600 1 TZ400, 3 TZ300, and 2 SOHO. I can monitor all the interfaces, CPU, Memory, and connections with no issues. Just the VPN script not working. Any help would be appreciated.
Data Query Debug Information Hide
Total: 0, Delta: 0, Running data query [10].
Total: 0, Delta: 0, Found type = '4' [Script Query].
Total: 0, Delta: 0, Found data query XML file at '/var/www/html/cacti/resource/script_queries/sonicwall_vpn.xml'
Total: 0, Delta: 0, XML file parsed ok.
Total: 0.01, Delta: 0, Executing script for num of indexes 'perl /var/www/html/cacti/scripts/query_sonicwall_vpn.pl 192.168.13.1 public num_indexes'
Total: 0.01, Delta: 0, Executing script for list of indexes 'perl /var/www/html/cacti/scripts/query_sonicwall_vpn.pl 192.168.13.1 public index' Index Count: 0
Click to show data query output for 'index'
Click to show data query output for field 'swPeerGateway'
Executing script query 'perl /var/www/html/cacti/scripts/query_sonicwall_vpn.pl 192.168.13.1 public query peergateway'
Click to show data query output for field 'swVPNName'
Executing script query 'perl /var/www/html/cacti/scripts/query_sonicwall_vpn.pl 192.168.13.1 public query vpnname'
Total: 0.02, Delta: 0.01, Update data query sort cache complete
Total: 0.02, Delta: 0, Updated data query index ordering
Total: 0.03, Delta: 0.01, Update re-index cache complete
Total: 0.03, Delta: 0, Update graph data query cache complete
Total: 0.03, Delta: 0, Update data source data query cache complete
Total: 0.03, Delta: 0, Update data query cache complete
Total: 0.03, Delta: 0, Update poller cache from query complete
Total: 0.03, Delta: 0, Automation execute data query complete
Total: 0.03, Delta: 0, Plugin hooks complete
I wanted to sum up everything I had to do to get this working. This is all the things I had to change in the script from things I found in this post and through google. Hopefully I will save someone else all the trouble.
This is my current setup:
Server = Ubuntu 16.04.2 LTS
Cacti = 1.1.5
Perl = Perl 5.22.1-9
(Complements to mcmuffin)
First you need to make sure you have everything you need installed. (ie. Net::SNMP)