Custom Data query problem

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
Soldat1982
Posts: 2
Joined: Thu Oct 02, 2008 4:25 pm

Custom Data query problem

Post by Soldat1982 »

I have the following script to request the data i want to graph.

Code: Select all

#/bin/sh
snmpwalk -v 2c -c public 192.168.0.117:5550 .1.3.6.1.4.1.1.4185.527 | awk '{print $4}'
If I run it i take some like this:
$ ./queryscrip.sh

Code: Select all

91
0
56
7
3
3111
and my xml is the following

Code: Select all

<interface>
        <name>Tomae Data de Script CallCenter</name>
        <script_path>sh |path_cacti|/scripts/consulta.sh</script_path>
   
        <fields>
                <request>
                        <name>ActivePeers</name>
                        <direction>input</direction>
                        <query_name>ois</query_name>
                </request>
        </fields>
</interface>
I can add the data query wihtout problems but when i want to add this one to my device i have this error.

Code: Select all

Notice: Undefined index: arg_index in /usr/share/cacti/site/lib/data_query.php on line 98

Notice: Undefined index: arg_query in /usr/share/cacti/site/lib/data_query.php on line 109

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 129
I dont understand what i am doing wrong, any suggestion?

Thx in advance and sorry for my poor english.
Soldat1982
Posts: 2
Joined: Thu Oct 02, 2008 4:25 pm

Post by Soldat1982 »

no one have any idea about it?

:(
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please see the Script Data Query chapter at the 1st link of my sig
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests