Notice: Undefined index: sql in libform.php on line 90

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

Moderators: Developers, Moderators

Post Reply
dassic
Posts: 5
Joined: Tue Sep 14, 2004 9:23 am

Notice: Undefined index: sql in libform.php on line 90

Post by dassic »

Hi, I get this error message at Console -> Data Sources -> (Edit) :

Notice: Undefined index: sql in /data/users/httpd/www/cacti.dassic.com/lib/form.php on line 90

The error message is displayed just before :

Output Field
When data is gathered, the data for this field will be put into this data
source.

...and the dropdown list that should list my data sources is empty.

Any hints ?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Looks like like there may be a problem with the data input method.

1) Is this data source using a data template?

2) Which data input method is this data source using? Is it one of the data input methods that came with Cacti or did you create it yourself?

-Ian
dassic
Posts: 5
Joined: Tue Sep 14, 2004 9:23 am

Post by dassic »

1. yes it's using a template.

2. The data input method is one I've created myself. It's a script taking 2 input variables and giving 5 output variables.

Cacti calls it fine with the two variables, and the output from the script is also as expected but somehow Cacti doesn't like it.

I've used this script before in Cacti 0.6.x without any problems.
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Two more questions:

1) What version of Cacti are you currently running?

2) Are you making sure to select the "Update RRD File" checkbox for one or more of the output fields in this data input method?

-Ian
dassic
Posts: 5
Joined: Tue Sep 14, 2004 9:23 am

Post by dassic »

I'm running cacti-0.8.5a

...and I've updated the RRD update checkbox for all output fields....but I think it somehow doesn't get registered.
When I check the output from cmd.php I see that the script is called and gives an output like this :

MULTI command: sh /data/users/httpd/www/cacti.dassic.com/scripts/ping_extended.sh 5 www.jp.dk, output: 0 118.462 120.811 121.859 1.281

But there's no update line for this one (which I suppose mean that the RRD file doesn't get updated and also why the DS page gives me those PHP errors)
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Based on the data I have so far, it looks like the data source is out of sync with the data input method you created. Can you try deleting and re-creating one of these data sources as a test? I have a feeling the new data source will work as it should.

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests