-
-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When plugin exceed runtimes, they should not be automatic disabled #4618
Comments
Not enough info. What plugin version? Have you tried the latest dev version of the plugin? What error is it displaying in the logs? |
Plugin version is 1.5.2 |
2021-11-28 19:01:59 - ERROR PHP ERROR in Plugin 'thold': Maximum execution time of 59 seconds exceeded in file: /var/www/html/cacti/plugins/thold/includes/polling.php on line: 285 |
I'm seeing the same thing with thold 1.5.3 in cacti version 1.2.16 ERROR PHP ERROR in Plugin 'thold': Maximum execution time of 299 seconds exceeded in file: /opt/www/cacti/plugins/thold/includes/polling.php on line: 45 |
Are you seeing any spine or php poller timeout?
…On Mon., Nov. 29, 2021, 10:00 c0sm1n, ***@***.***> wrote:
I'm seeing the same thing with thold 1.5.3 in cacti version 1.2.16
ERROR PHP ERROR in Plugin 'thold': Maximum execution time of 299 seconds
exceeded in file: /opt/www/cacti/plugins/thold/includes/polling.php on
line: 45
CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'thold'
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<Cacti/cacti#4618>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADGEXTA4WEOZBZHSV3G7P73UOOIQBANCNFSM5I6KEDHQ>
.
|
Nothing around the time when the plugin times out and is disabled |
I did an upgrade on my test cacti and I saw this log What is is supported version of THOLD for cacti version 1.2.19. |
No, you would not be able to install otherwise. |
Yeah... Only getting that error when upgrading cacti. |
If you look at the INFO file, you only need to be at 1.2.16++ to use thold 1.6. You may have a PHP version that is too high, but that error would not show up if that was the case. I've not done anything on thold in a while. I know that there are a number of bugs out there. Timing is a bitch. |
This message appears under during an upgrade of Cacti when each plugin is checked where its status is installed or enabled and assumed needs disabling unless it meets all of the following criteria:
If ANY of that criteria fails, the problem will be disabled. It may be worth adding a screen that warns about plugins being disabled but if we do that will be for 1.2.21 and above. |
HI Still facing issues of disabling Thold plugin. Did anyone fixed this ?
|
You need to provide more information. When Cacti disables a plugin, it logs not only that fact, but it registers a backtrace in the log file that indicated the function call that caused it and the line numbers involved. We need that information along with your Cacti version. |
cacti.log-20220313:94114:2022-03-13 20:36:09 - ERROR PHP ERROR in Plugin 'thold': Maximum execution time of 59 seconds exceeded in file: /var/www/html/cacti/plugins/thold/includes/polling.php on line: 276 cacti.log-20220313:94116:2022-03-13 20:36:09 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'thold' |
Well that's not supposed to happen. |
Moving this issue as it's a Cacti issue. |
Please refer to this issue going forward. I have transferred it to the Cacti side. |
Second question. How big is the install?
|
Number of devices? |
So, how often is it happening? We have an idea of what is causing it, but need further clarification. |
Plugins automatically disabled on cacti release when they exceed their maximum allowed runtime
Okay, it should be fixed now. Just a simple one line change to |
Every day , what i need to add in |
Review the commit. |
ok, thanks for the help, i have added that line in functions.php |
HI, i have checked today and it's disabled again. |
Get us the backtraces. |
do i need to update full logs or below is enough?
|
Still plugins are getting disabled |
Okay, I took a closer look at the function and it there was an oversight in it's original construction. I'm fixing it now. |
The strpos() function will return the position of the first instance of a string which in PHP is 0. So, you have to check for "false" insted. Also, switching to non-case sensitive search for good measure.
I have done the changes and will update you the outcome. Thanks for your help |
Seems like Thold issue solved and it is active after one day. Thanks for support. |
HI
i have installed plugin and it was working perfectly. But every day it is disabling automatically
The text was updated successfully, but these errors were encountered: