Hello all, I am trying to do script data queries and I got crazy !
I have tried the example given http://docs.cacti.net/node/284
The idea is to do interface statistiques (ifInOctets) but using a script query.
My script gives correct result (see output).
I have followed all the procedure... and at the end ... when I try to create a graph, it does not solve anything and I got "test_device - TEST - |query_ifIndex| " as creatd graph and nothing happend !
Please, can someone help me
Problem with demo in tutorial docs.cacti.net... got crazy
Moderators: Developers, Moderators
Problem with demo in tutorial docs.cacti.net... got crazy
- Attachments
-
- why does it not work ???
- argh.gif (4.37 KiB) Viewed 2676 times
-
- The interface are well found !
- walk.gif (8.47 KiB) Viewed 2677 times
-
- What the perl script gives
- interface.gif (5.19 KiB) Viewed 2678 times
-
- interface.xml
- the xml template
- (1.96 KiB) Downloaded 115 times
-
- cacti_graph_template_interface_proxy_tutorial.xml
- export of teh graph template
- (13.1 KiB) Downloaded 139 times
PHP-SNMP is now activated.
Is is strange: I log the call to my script .pl.
It is executed when I lauch the query and discovers the interfaces.
Cacti accept to poll my selected interfaces (create graph for this device)...
But then, the script is never called anymore... and the device is NOT disabled and monitored (checkbox in the device tab)
Why ?? I do not understand.
Is is strange: I log the call to my script .pl.
It is executed when I lauch the query and discovers the interfaces.
Cacti accept to poll my selected interfaces (create graph for this device)...
But then, the script is never called anymore... and the device is NOT disabled and monitored (checkbox in the device tab)
Why ?? I do not understand.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Your XML is broken.
Please remove the line
And remove
I'm not sure if this fixes the problem. But it will surely help
Reinhard
Please remove the line
.<arg_num_indexes/>
And remove
as it refers to a field that is not (yet) defined. Remove the other lines<index_order>bgpPeerRemoteAs</index_order>
as well, as they are not needed. You may add them later on again, when your XML is working again.<index_order_type>alphabetic</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
I'm not sure if this fixes the problem. But it will surely help
Reinhard
yes, there were errors, but this change nothing... cacti does not launch the script, never... even with a minimalistic XML
<interface>
<name>interface proxied</name>
<description>interface proxied</description>
<script_path>perl /PRD/SYDN/CACTI/scripts/interface.pl</script_path>
<arg_prepend> |host_hostname| |host_snmp_community| </arg_prepend>
<arg_index>index</arg_index>
<arg_query>query</arg_query>
<arg_get>get</arg_get>
<output_delimeter>$</output_delimeter>
<fields>
<ifIndex>
<name>ifIndex</name>
<interface>
<name>interface proxied</name>
<description>interface proxied</description>
<script_path>perl /PRD/SYDN/CACTI/scripts/interface.pl</script_path>
<arg_prepend> |host_hostname| |host_snmp_community| </arg_prepend>
<arg_index>index</arg_index>
<arg_query>query</arg_query>
<arg_get>get</arg_get>
<output_delimeter>$</output_delimeter>
<fields>
<ifIndex>
<name>ifIndex</name>
Who is online
Users browsing this forum: No registered users and 4 guests