Undefined index in setup.php after update 0.3.0 to 0.3.1

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
User avatar
rdleeuw
Posts: 8
Joined: Thu Jan 25, 2007 2:26 pm
Location: Netherlands

Undefined index in setup.php after update 0.3.0 to 0.3.1

Post by rdleeuw »

I just updated thold from 0.3.0 to 0.3.1. When I run poller.php manually I see the following error:

Code: Select all

Notice: Undefined index: in D:\inetpub\wwwroot\cacti\plugins\thold\setup.php on line 77
Also when I try to auto-create thresholds I get the following errors:

Code: Select all

Notice: Undefined index: thold_created in d:\inetpub\wwwroot\cacti\lib\functions.php on line 196

Notice: Undefined index: thold_created in d:\inetpub\wwwroot\cacti\lib\functions.php on line 220

Notice: Undefined index: thold_created in d:\inetpub\wwwroot\cacti\lib\functions.php on line 222
How can I solve this problem? Seems to me something is wrong in the cacti database?

Ronald

| Cacti 0.8.6j |
| MySQL 5.0.27 | PHP 5.1.6 | IIS 6 | RRDtool 1.2.15 | Cygwin 1.5.22 |
| Windows 2003 Server Standard R2 | P4 HT 3.2GHz | 512MB |
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Something is wrong with the data being reported back to the thold plugin from Cacti. The array structure doesn't seem to be right in your case, but I can't reproduce it on my side. I will see if I can figure it out.
Graffix
Posts: 1
Joined: Mon Feb 05, 2007 10:24 pm

Re: Undefined index in setup.php after update 0.3.0 to 0.3.1

Post by Graffix »

rdleeuw wrote:

Code: Select all

Notice: Undefined index: thold_created in d:\inetpub\wwwroot\cacti\lib\functions.php on line 196

Notice: Undefined index: thold_created in d:\inetpub\wwwroot\cacti\lib\functions.php on line 220

Notice: Undefined index: thold_created in d:\inetpub\wwwroot\cacti\lib\functions.php on line 222
If it helps any I have this exact same problem. Everything else in Thold seems to work fine but the auto create thresholds function (and i get this same error message about the undefined index: thold_created).

I was at Cacti 0.8.6i and Thold 0.3.0 I believe prior to this, and everything was working properly. I upgraded Cacti to 0.8.6j, then installed the new plugin architecture and Thold 0.3.1.

Everything else seems to be working.. I can manually create thresholds that work fine, and I am still getting alerts via email for thresholds that are exceeded, devices that are down, etc. I suspect these issues come from upgrading Thold and using database data that was created from the previous Thold version, and since it wasn't a NEW install the right database structures might not have been created - just speculating here.

If there's data I can provide from my Cacti instance please drop me a line and I'll try to provide it.

Thanks..
G
bengelly
Cacti User
Posts: 57
Joined: Fri Jan 26, 2007 2:28 am

Post by bengelly »

Hi,

the problem was solved with the release of the new version (0.3.2) of the plugin...

Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests