Problem with demo in tutorial docs.cacti.net... got crazy

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
godot
Posts: 5
Joined: Thu Feb 01, 2007 4:43 am
Location: belgium

Problem with demo in tutorial docs.cacti.net... got crazy

Post by godot »

Hello all, I am trying to do script data queries and I got crazy :cry: !
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 :)
Attachments
why does it not work ???
why does it not work ???
argh.gif (4.37 KiB) Viewed 2676 times
The interface are well found !
The interface are well found !
walk.gif (8.47 KiB) Viewed 2677 times
What the perl script gives
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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please check, if php-snmp is installed. To do so, select the cactus on the main panel at the lower left side. It shows the info at the bottom of the next panel
Reinhard
godot
Posts: 5
Joined: Thu Feb 01, 2007 4:43 am
Location: belgium

Post by godot »

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.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Your XML is broken.
Please remove the line
<arg_num_indexes/>
.
And remove
<index_order>bgpPeerRemoteAs</index_order>
as it refers to a field that is not (yet) defined. Remove the other lines
<index_order_type>alphabetic</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
as well, as they are not needed. You may add them later on again, when your XML is working again.
I'm not sure if this fixes the problem. But it will surely help
Reinhard
godot
Posts: 5
Joined: Thu Feb 01, 2007 4:43 am
Location: belgium

Post by godot »

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>
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please try to find it in "Utilities -> Poller cache" when filtering for that host. Post those lines, please
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests