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.
Thanks for sending that! I still have a problem though.. and i think it might be with my configuration. When i paste that in and hit the save button, nothing happens but a page refresh. it doesnt give me an overview of what it imported. I checked my php configuration and the file upload option is on and i have it set a 80 megs. The cacti user has permissions from the main cacti folder down via the chown -R command.
I created a file off the code you posted and ftped it directly to the directory. Its working now without an issue, but i am still worried about the import issue as it might affect other templates.
ok, when i said it was working.. i should of said it found the script i manually added, however the device status shows as down and i gather because of that i have no graphs
-Sad Panda
Last edited by icetoad on Mon Oct 23, 2006 9:09 am, edited 2 times in total.
ok its graphing now, i had to change the check host function to snmp only.. not sure why as i can ping the sonicwall from any computer/server/router.
Course the cpu graph isnt showing me anything.. but i am going to sit on that for a minute or two.. might not be anything to show yet as i just got it going.
I really don't have any idea. I built this in 0.8.6h so if you are running the new version 0.8.6i that might be an issue. I have yet to upgrade, but when I do I'll see if this makes a difference.
I have a sonicwall 4060 with SonicOS Enhanced firmware. I just starting out with Cacti and the localhost is reporting values corectly. I wish to collect data on the sonicwall so I tried the template. I d/l the xml and txt file. I see where to create a new host and I uploaded the xml file w/o issue.
I only uploaded the xml. I'm not sure where the .txt (script??) is supposed to go. It looks like it may need to be renamed to query_sonicwall_vpn.pl???? But i'm not sure where to place that?
The sonicwall xml file: sonicwall_vpn.xml, should go into the /cacti/resource/script_queries folder. ( this should be created automatically when you import the original xml template, if it doesnt then you have to create the file manually from the code posted above and save it there ).
The script file: query_sonicwall_vpn.pl should go into the /cacti/scripts folder.
Quote from Bash.org: "I was once thrown out of barnes and noble for moving the bibles to the fiction section."
icetoad wrote:The sonicwall xml file: sonicwall_vpn.xml, should go into the /cacti/resource/script_queries folder. ( this should be created automatically when you import the original xml template, if it doesnt then you have to create the file manually from the code posted above and save it there ).
The script file: query_sonicwall_vpn.pl should go into the /cacti/scripts folder.
Thank you. I think I have a polling issue with the sonicwall. I tried getif and it failed to connect.
Ok well i fix the snmp issue with sonicwall, and it's talking to cacti.
Problem is when I try to draw a graph i get:
Data Query [Script - Sonicwall VPN] Reload Associated Query
This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information.
So i do, and:
+ Running data query [11].
+ Found type = '4 '[script query].
+ Found data query XML file at 'c:/Inetpub/wwwroot/cacti/resource/script_queries/sonicwall_vpn.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'perl c:\Inetpub\wwwroot\cacti\scripts\query_sonicwall_vpn.pl 192.168.77.1 public index'
+ Executing script query 'perl c:\Inetpub\wwwroot\cacti\scripts\query_sonicwall_vpn.pl 192.168.77.1 public query peergateway'
+ Executing script query 'perl c:\Inetpub\wwwroot\cacti\scripts\query_sonicwall_vpn.pl 192.168.77.1 public query vpnname'
+ Found data query XML file at 'c:/Inetpub/wwwroot/cacti/resource/script_queries/sonicwall_vpn.xml'
+ Found data query XML file at 'c:/Inetpub/wwwroot/cacti/resource/script_queries/sonicwall_vpn.xml'
+ Found data query XML file at 'c:/Inetpub/wwwroot/cacti/resource/script_queries/sonicwall_vpn.xml'
icetoad wrote:You have to enable snmp on the sonicwall and then on the interface you want to connect to on the sonicwall in the sonicwall web configuration page.
If thats all running and the host is still "down", you have to change the way cacti verifies the sonicwall is alive in the cacti settings.