Error when clicking on "Create New Threshold" Butt

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
kevin_taco
Posts: 37
Joined: Fri Feb 11, 2005 5:32 pm

Error when clicking on "Create New Threshold" Butt

Post by kevin_taco »

Thold .4
Cacti 8.7d
PA 2.4

Thanks to the developers of Cacti and Thold. Great work and thanks!

I do have a problem and I'm hoping someone can help. I searched the forums and I couldn't find anything.

Everytime I click on this button next to a graph I can the following error:

"Fatal error: Cannot redeclare thold_graphs_action_execute() (previously declared in /var/www/cacti/plugins/thold/thold_add.php:100) in /var/www/cacti/plugins/thold/setup.php on line 608"

I don't get anything in the Cacti log files, it's currently set to Meduim level.

Any help is greatly appreciated.
kevin_taco
Posts: 37
Joined: Fri Feb 11, 2005 5:32 pm

Post by kevin_taco »

I also get the same error when trying to add a threshold from the Management | Thresholds section.
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Remove thold from your global.php file. That is the old way of loading the plugin, you need to do it the new way.
kevin_taco
Posts: 37
Joined: Fri Feb 11, 2005 5:32 pm

Post by kevin_taco »

I did as you said and now everything works great.

Thanks for much for your prompt relay and for the great work you do. You rock.
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Ya, I should probably fix it to work either way. But its a minor annoyance at this point.
alfashen
Posts: 2
Joined: Mon Mar 02, 2009 10:07 pm

Post by alfashen »

My environment is as below:

- Thold .4
- Cacti 8.7d
- PA 2.4
- Win 2003
- PHP 5

I meet this error as well, and I removed thold on the global.php already.
But I still meet the same problem.

Please kindly help me.

Thank you very much !!

"Fatal error: Cannot redeclare thold_graphs_action_execute() (previously declared in /var/www/cacti/plugins/thold/thold_add.php:100) in /var/www/cacti/plugins/thold/setup.php on line 608"
alfashen
Posts: 2
Joined: Mon Mar 02, 2009 10:07 pm

Post by alfashen »

The problem is solved !!
I added the THOLD sentences both in config.php & global.php.

It works well after I removed both of them.

Thanks anyway.
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

I released 0.4.1 yesterday, which resolves the issue too.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests