SonicWall templates ?
Moderators: Developers, Moderators
Doh!
I get this dreaded message too I get the same message from both of my Sonicwalls. All other SMTP stuff works fine. CPU/MEM/Interface usage etc.
"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."
in the Data Query [Script - Sonicwall VPN] section when i try to create a graph.
If I run the query in debug mode here is the output:
Data Query Debug Information
+ Running data query [10].
+ 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.100.1 public index'
+ Executing script query 'perl c:\Inetpub\wwwroot\cacti\scripts\query_sonicwall_vpn.pl 192.168.100.1 public query peergateway'
+ Executing script query 'perl c:\Inetpub\wwwroot\cacti\scripts\query_sonicwall_vpn.pl 192.168.100.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'
"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."
in the Data Query [Script - Sonicwall VPN] section when i try to create a graph.
If I run the query in debug mode here is the output:
Data Query Debug Information
+ Running data query [10].
+ 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.100.1 public index'
+ Executing script query 'perl c:\Inetpub\wwwroot\cacti\scripts\query_sonicwall_vpn.pl 192.168.100.1 public query peergateway'
+ Executing script query 'perl c:\Inetpub\wwwroot\cacti\scripts\query_sonicwall_vpn.pl 192.168.100.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'
SNMP Error
Was wondering what I could be doing wrong. Here's my specs:
SonicOS Enhanced 3.2.3.0-6e
Model: PRO 1260 Enhanced
Everytime I try to add the SonicWall, I get an "SNMP Error". I have enabled SNMP on the SonicWall and I've added a rule to all SNMP but all internal traffic is allowed to access.
If I run the command:
# perl query_sonicwall_vpn.pl 192.168.1.2 public index
I get:
request error: No response from remote host '192.168.1.2' at query_sonicwall_vpn.pl line 51.
I'd really like to get this to work but I'm about ready to give up.
Thanks
Marc
SonicOS Enhanced 3.2.3.0-6e
Model: PRO 1260 Enhanced
Everytime I try to add the SonicWall, I get an "SNMP Error". I have enabled SNMP on the SonicWall and I've added a rule to all SNMP but all internal traffic is allowed to access.
If I run the command:
# perl query_sonicwall_vpn.pl 192.168.1.2 public index
I get:
request error: No response from remote host '192.168.1.2' at query_sonicwall_vpn.pl line 51.
I'd really like to get this to work but I'm about ready to give up.
Thanks
Marc
-
- Posts: 7
- Joined: Tue Jun 26, 2007 12:07 pm
- Location: Allentown, PA
SonicWall Template Data query Issues
I've been using cacti for awhile here and there. I'm at a new job now setting up a cacti server, and for the 1st time I needed to monitor a sonicwall. So I installed the template, and the perl script. Verified permissions, etc.. I tested the perl script from the command line(I had to load the NET:SNMP module for perl)
I now get the error below whenever I try to do a verbose query on the Sonicwall VPN script.
Notice: Undefined index: arg_index in /usr/share/cacti/site/lib/data_query.php on line 98
Notice: Undefined index: script_path in /usr/share/cacti/site/lib/data_query.php on line 98
Warning: Variable passed to each() is not an array or object in /usr/share/cacti/site/lib/data_query.php on line 107
Warning: Variable passed to each() is not an array or object in /usr/share/cacti/site/lib/data_query.php on line 515
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/lib/data_query.php:98) in /usr/share/cacti/site/host.php on line 79
I also get and error when I go to data queries and the sonicwall VPN it says it loads the XML file. If I click on the associated Graph "Sonicwall VPN Traffic (bits/sec) " or the other one, I get the following error "Warning: Variable passed to each() is not an array or object in /usr/share/cacti/site/data_queries.php on line 356" I get this error on both Data Sources next to Decrypt bytes or encryptbytes.
Any Help would be appreciated.
I now get the error below whenever I try to do a verbose query on the Sonicwall VPN script.
Notice: Undefined index: arg_index in /usr/share/cacti/site/lib/data_query.php on line 98
Notice: Undefined index: script_path in /usr/share/cacti/site/lib/data_query.php on line 98
Warning: Variable passed to each() is not an array or object in /usr/share/cacti/site/lib/data_query.php on line 107
Warning: Variable passed to each() is not an array or object in /usr/share/cacti/site/lib/data_query.php on line 515
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/lib/data_query.php:98) in /usr/share/cacti/site/host.php on line 79
I also get and error when I go to data queries and the sonicwall VPN it says it loads the XML file. If I click on the associated Graph "Sonicwall VPN Traffic (bits/sec) " or the other one, I get the following error "Warning: Variable passed to each() is not an array or object in /usr/share/cacti/site/data_queries.php on line 356" I get this error on both Data Sources next to Decrypt bytes or encryptbytes.
Any Help would be appreciated.
Also having issues
Hi everyone, i'm also having some problems with cacti and the vpn script. I'm able to see the script query and see my VPN tunnel, but when i try to create a graph for the host. It 1st reports that the graph was created
"+ Created graph: HSRI - Camp St Sonicwall - VPN Traffic for: |query_swVPNName|"
But the graph is never created, and I see the following in my cacti.log
07/16/2007 01:29:50 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed "select data_input_fields.type_code, data_input_data.value from (data_input_fields,data_input_data) where data_input_fields.id=data_input_data.data_input_field_id and data_input_data.data_template_data_id= and (data_input_fields.type_code='index_type' or data_input_fields.type_code='index_value' or data_input_fields.type_code='output_type')"
I'm guessing this is creating a graph with the name "|query_swVPNName|" and the SQL server is having issues with the pipes |. I'm running cacti Version 0.8.6j, on a win2k3 server.
Any ideas?
"+ Created graph: HSRI - Camp St Sonicwall - VPN Traffic for: |query_swVPNName|"
But the graph is never created, and I see the following in my cacti.log
07/16/2007 01:29:50 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed "select data_input_fields.type_code, data_input_data.value from (data_input_fields,data_input_data) where data_input_fields.id=data_input_data.data_input_field_id and data_input_data.data_template_data_id= and (data_input_fields.type_code='index_type' or data_input_fields.type_code='index_value' or data_input_fields.type_code='output_type')"
I'm guessing this is creating a graph with the name "|query_swVPNName|" and the SQL server is having issues with the pipes |. I'm running cacti Version 0.8.6j, on a win2k3 server.
Any ideas?
Figured Out
I actually reimported the template, and it picked up the vpn template as new for some reason, and now when i create the graph, it asks for bytes. All set!
Thanks for the work on this template.
CPU and connections is working fine, I just can't get the VPN queries to work.
Using cacti 0.8.6h
The sonicwall is a 3060 with firmware SonicOS Enhanced 3.2.3.0-6e
In the device page i see the following at "associated data queries":
When running the script with the query option (peergateway or vpnname) I get results too.
As we have 3 VPN connections from the same IP with the same Name (for 3 different internal networks), maybe this could be the cause?
Any ideas on how to get this working?
Martin
CPU and connections is working fine, I just can't get the VPN queries to work.
Using cacti 0.8.6h
The sonicwall is a 3060 with firmware SonicOS Enhanced 3.2.3.0-6e
In the device page i see the following at "associated data queries":
When running the "verbose query" in cacti I get:Script - Sonicwall VPN (Verbose Query) Uptime Goes Backwards Success [0 Items, 0 Rows]
Running the perl script from the command line:+ Running data query [10].
+ Found type = '4 '[script query].
+ Found data query XML file at '/srv/www/htdocs/cacti/resource/script_queries/sonicwall_vpn.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'perl /srv/www/htdocs/cacti/scripts/query_sonicwall_vpn.pl 172.xx.xx.xx public index'
+ Executing script query 'perl /srv/www/htdocs/cacti/scripts/query_sonicwall_vpn.pl 172.xx.xx.xx public query peergateway'
+ Executing script query 'perl /srv/www/htdocs/cacti/scripts/query_sonicwall_vpn.pl 172.xx.xx.xx public query vpnname'
+ Found data query XML file at '/srv/www/htdocs/cacti/resource/script_queries/sonicwall_vpn.xml'
+ Found data query XML file at '/srv/www/htdocs/cacti/resource/script_queries/sonicwall_vpn.xml'
+ Found data query XML file at '/srv/www/htdocs/cacti/resource/script_queries/sonicwall_vpn.xml'
The IPs match the VPN partners, so it looks like all connections are found../query_sonicwall_vpnpl_455.pl 172.xx.xx.xx public index
Scalar value @splits[1] better written as $splits[1] at ./query_sonicwall_vpnpl_455.pl line 63.
Reference found where even-sized list expected at ./query_sonicwall_vpnpl_455.pl line 50.
80.xx.xx.xx
83.xx.xx.xx
24.xx.xx.xx
80.xx.xx.xx
83.xx.xx.xx
83.xx.xx.xx
84.xx.xx.xx
84.xx.xx.xx
24.xx.xx.xx
80.xx.xx.xx
24.xx.xx.xx
84.xx.xx.xx
When running the script with the query option (peergateway or vpnname) I get results too.
As we have 3 VPN connections from the same IP with the same Name (for 3 different internal networks), maybe this could be the cause?
Any ideas on how to get this working?
Martin
Who is online
Users browsing this forum: No registered users and 5 guests