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 1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
blenherr



Joined: 09 Dec 2003
Posts: 1
Location: Lewisburg, WV

PostPosted: Tue Dec 09, 2003 11:53 pm    Post subject: SonicWall templates ? Reply with quote

Anyone got a data, host or graph template for SonicWall products ? We would like to graph VPN status and utilization.

Thanks in advance.
Back to top
macdonaldc



Joined: 10 Nov 2005
Posts: 25

PostPosted: Fri Nov 11, 2005 5:10 pm    Post subject: Reply with quote

Im interested as well. If anyone has anything please post it.

Thanks in advance
Back to top
chrisl1977



Joined: 23 Nov 2005
Posts: 4

PostPosted: Wed Nov 23, 2005 2:00 pm    Post subject: Reply with quote

The interface stats are easy to get (as you've probably figured out). Some one will probably need to devise a script to agregate the data from the VPN OID's by the tunel name. I'm not sure how to do that.
Back to top
wazoqaz



Joined: 24 May 2006
Posts: 14
Location: md, us

PostPosted: Mon Sep 25, 2006 3:50 pm    Post subject: Sonicwall Templates for VPN Usage, CPU, Memory & Connect Reply with quote

I have created the following templates and scripts for monitoring your Sonicwall firewall. The template includes graphs for CPU Utilization, Memory Usage, Current Connections Cache, and most importantly VPN utilization on a tunnel-by-tunnel basis as well as the basic interface stats.

If you are running SonicOS Enhanced then you be able to graph everything, if you are running SonicOS Standard or the older the 6.X firmware, then you will only get the VPN monitoring as the other stats are unavailable via SNMP.

The script portion (written is PERL) queries the firewall and returns the list of currently active tunnels (by the IP address on the Peer Gateway) as well as the tunnel name and decrypted (received) bytes and encrypted (transmitted) bytes. Because the tunnels are renegotiated (by default every 8 hours) you will experience spikes in your graph unless you follow the installation instructions.

Also because the firewall does not always return the VPN tunnel name you must renegotiate each tunnel prior to creating the graphs the first time in order for it to correctly pull in the name. You may need to do this a couple of times being sure to press the green O button in cacti before they will all show up.

Installation Instructions
1. Download query_sonicwall_vpn.pl.txt and copy and rename to your <path_cacti>/scripts/query_sonicwall_vpn.pl
2. Import the Template cacti_host_template_sonicwall.xml
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.

Hopefully this works for you, please let me know. I know the script is less than optimal, but I'm not really a programmer so I'd appreciate any feedback. Additionally, the basis for the script came from Dan Brummer in this post.

--wazoqaz



cacti_host_template_sonicwall.xml
 Description:
Template for CPU, Memory, Connections, and VPN Usage for Sonicwall Firewall

Download
 Filename:  cacti_host_template_sonicwall.xml
 Filesize:  44.99 KB
 Downloaded:  2448 Time(s)


query_sonicwall_vpn.pl.txt
 Description:
Copy to your <path_cacti>/scripts/ directory and rename without .txt

Download
 Filename:  query_sonicwall_vpn.pl.txt
 Filesize:  4.74 KB
 Downloaded:  1647 Time(s)

Back to top
jond3rd



Joined: 27 Sep 2006
Posts: 3

PostPosted: Thu Sep 28, 2006 9:37 pm    Post subject: Reply with quote

Hi,

Thanks for your script and template. Iv'e try using it but I cannot see a graph on CPU and Memory, Connections seems to be graphing fine. Any hints?


Regarsd,
-jon-
Back to top
wazoqaz



Joined: 24 May 2006
Posts: 14
Location: md, us

PostPosted: Fri Sep 29, 2006 7:11 am    Post subject: Reply with quote

jond3rd - are you running the SonicOS Enhanced? If not, then you won't see the cpu or memory. From my testing those were only reported by firewalls running the Enhanced version.

Let me know which version of the firmware you are running on which platform.
Back to top
jcheney



Joined: 15 Aug 2006
Posts: 8

PostPosted: Tue Oct 03, 2006 3:16 pm    Post subject: Reply with quote

jond3rd:
I had the exact same problem, I was running the Sonic Enhanced and still only got the connections graph. Upgrading to the most recent version fixed this, and now everything works perfectly.

I wish I had thought to write down the old version number...

[Edit]
By the way, thanks for the great set of templates. I really appreciate it.
[/Edit]
Back to top
jond3rd



Joined: 27 Sep 2006
Posts: 3

PostPosted: Wed Oct 04, 2006 12:59 am    Post subject: Reply with quote

Hi,

I am running SonicOS Enhanced 3.1.0.12-46e on a SonicWall 4060

I'm not getting any graphs on CPU's and Memory
Back to top
wazoqaz



Joined: 24 May 2006
Posts: 14
Location: md, us

PostPosted: Wed Oct 04, 2006 9:26 am    Post subject: Reply with quote

jond3rd,

I developed and tested the scripts against our new Sonicwall Pro 4060 running SonicOS Enhanced 3.2.0.3-54e, which I believe is the latest firmware release.

I don't have any older boxes to test against sorry, and seeing as how this one is in production I can't monkey too much with. So all I can say at this point is to update to lastest version and see if you get anything then.

Just as an aside though my memory graph has been completely flat for the last 2 weeks at 25%.


jcheney,

My pleasure. It is finally nice to be able to give back to the community.

--wazoqaz
Back to top
jcheney



Joined: 15 Aug 2006
Posts: 8

PostPosted: Wed Oct 04, 2006 9:34 pm    Post subject: Reply with quote

jond3rd:
I am pretty sure that upgrading to the latest firmware will solve your problem. I think that the version I was using that didn't work was 3.1.something, and once I upgraded to 3.2.0.3-54e, it worked perfectly.

If the upgraded firmware doesn't work, then we can start taking a look at everything else.
Back to top
jond3rd



Joined: 27 Sep 2006
Posts: 3

PostPosted: Thu Oct 05, 2006 10:23 pm    Post subject: Reply with quote

Thanks for the information, so sad I can't upgrade to the latest firmware because our subscription is already expired. Time to initiate renewal process I guess. I'll let you know if upgrading to the latest firmware will solve my problem. Thank you for the replies.
Back to top
jlucas



Joined: 14 Oct 2006
Posts: 7

PostPosted: Sat Oct 14, 2006 10:26 pm    Post subject: Strange error... xml file not dreated on import Reply with quote

Thanks wazoqaz for creating the scripts im looking forward to getting them working. I have a small issue with the data query. It appears the sonicwall_vpn.xml file never gets created. Im on version 0.8.6h of cacti. Running a verbose query :

__________________________________

Data Query Debug Information

+ Running data query [18].
+ Found type = '4 '[script query].
+ Could not find data query XML file at '/var/www/html/cacti/resource/script_queries/sonicwall_vpn.xml'
+ Error parsing XML file into an array.
+ Could not find data query XML file at '/var/www/html/cacti/resource/script_queries/sonicwall_vpn.xml'
+ Could not find data query XML file at '/var/www/html/cacti/resource/script_queries/sonicwall_vpn.xml'
+ Could not find data query XML file at '/var/www/html/cacti/resource/script_queries/sonicwall_vpn.xml'

_________________________________

the file sonicwall_vpn is not created after the import of cacti_host_template_sonicwall_749.xml

Any one have an idea? can someone post the file sonicwall_vpn.xml so I can simply drop it in this directory?

Thanks all.
Back to top
jlucas



Joined: 14 Oct 2006
Posts: 7

PostPosted: Sat Oct 14, 2006 10:38 pm    Post subject: I should add Reply with quote

I should add ...this is the result I get from xml template import

Import Results

Cacti has imported the following items:

Round Robin Archive

[success] Daily (5 Minute Average) [update]
[success] Weekly (30 Minute Average) [update]
[success] Monthly (2 Hour Average) [update]
[success] Yearly (1 Day Average) [update]

CDEF

[success] Turn Bytes into Bits [update]

GPRINT Preset

[success] Normal [update]

Data Input Method

[success] Get SNMP Data [update]
[success] Get Script Data (Indexed) [update]

Data Template

[success] Sonicwall CPU Usage [update]
[success] Sonicwall Memory Usage [update]
[success] Sonicwall Connection Cache [update]
[success] Sonicwall VPN - Traffic [update]

Graph Template

[success] Sonicwall CPU Usage [update]
[success] Sonicwall Memory Usage [update]
[success] Sonicwall Connection Cache [update]
[success] Sonicwall VPN Traffic (bits/sec) [update]
[success] Sonicwall VPN Traffic (bits/sec, Total Bandwidth) [update]

Data Query

[success] Script - Sonicwall VPN [update]

Host Template

[success] Sonicwall [update]
Back to top
wazoqaz



Joined: 24 May 2006
Posts: 14
Location: md, us

PostPosted: Thu Oct 19, 2006 7:30 am    Post subject: Reply with quote

jlucas,

I'm not sure why it didn't import correctly, but check you inbox for the a copy of the file.
Back to top
icetoad
Cacti User


Joined: 18 Oct 2006
Posts: 61
Location: Orlando

PostPosted: Thu Oct 19, 2006 4:41 pm    Post subject: Reply with quote

I have the same issue with the sonicwall_vpn.xml file. The data import shows no problems but the file is not on the hard drive anywhere. :?
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 1, 2, 3, 4, 5, 6  Next
Page 1 of 6

 



Powered by phpBB © 2001, 2005 phpBB Group