cacti is not calling the scripts(Solved)

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
fosiul01
Posts: 3
Joined: Wed Jul 06, 2011 2:59 pm

cacti is not calling the scripts(Solved)

Post by fosiul01 »

hi
I am following this article
http://forums.cacti.net/viewtopic.php?p ... ght=#77996
but since i am new to cacti.. dont know how to implement

(a)I have imported the template (However i had to create the file in <cacti_path>/resource/script_queries/sonicwall_vpn.xml by myself
(b) put the query_sonicwall_vpn.pl in /usr/share/cacti/site/scripts/
but it does not execute the query ..

When i do the Debug query ..

+ Running data query [10].
+ Found type = '4 '[script query].
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/sonicwall_vpn.xml'
+ XML file parsed ok.
+ Executing script for list of indexes ' '
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/sonicwall_vpn.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/sonicwall_vpn.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/sonicwall_vpn.xml'#


if you see + Executing script for list of indexes ' ' , its not getting the script ..

it should be something like this :

ref:http://forums.cacti.net/viewtopic.php?f ... 3&start=30

Data Query Debug Information

+ Running data query [11].
+ Found type = '4 '[script query].
+ Found data query XML file at '/webs/cacti/resource/script_queries/sonicwall_vpn.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'perl /webs/cacti/scripts/query_sonicwall_vpn.pl Sonicwall public index'
+ Executing script query 'perl /webs/cacti/scripts/query_sonicwall_vpn.pl Sonicwall public query peergateway'
+ Found item [swPeerGateway='xxx.xxx.xxx.xxx'] index: xxx.xxx.xxx.xxx
+ Executing script query 'perl /webs/cacti/scripts/query_sonicwall_vpn.pl Sonicwall public query vpnname'

+ Found item [swVPNName='UF'] index: xxx.xxx.xxx.xxx
+ Found data query XML file at '/webs/cacti/resource/script_queries/sonicwall_vpn.xml'
+ Found data query XML file at '/webs/cacti/resource/script_queries/sonicwall_vpn.xml'
+ Found data query XML file at '/webs/cacti/resource/script_queries/sonicwall_vpn.xml'
+ Found data query XML file at '/webs/cacti/resource/script_queries/sonicwall_vpn.xml'

if any one can tell me how to fix this .. i would be really greatful ..

thanks for your help
Attachments
vpn.GIF
vpn.GIF (20 KiB) Viewed 977 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests