-
Notifications
You must be signed in to change notification settings - Fork 60
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
Thold Current Value is incorrect in 1.8.1 #674
Comments
It is from forums. User reported php error too: Problem is int thold_functions.php on line 7593-7596. Notify_warning_extra can be null. So strlen(null) causes this. @TheWitness why we have diferent settings for notify_warning_extra and notify_extra (first can be null, second not)? |
This is fixed now, you may grab a fresh copy of thold_functions.php and report back. |
Thank you @TheWitness , let me have a try on it :) |
@TheWitness I just tried to stop the Apache, renamed the old php as "thold_functions.php", and place the new php file in there, and start the Apache. But the Cacti Plugin page is being with this error as below. Sorry, we could not process your last action. |
That sounds more like a configuration issue than anything else. Run the following on the file:
If that does not work, restart the Apache service. |
@TheWitness I discover that the new "thold_functions.php" is being with different ROWs, may need to upload again |
Hello @TheWitness , Thanks for your help. And now the Threshold Status cannot be updated, even the current value is being dropped, it still keep in triggered status as below. And also failed to trigger alert when I modified with a super small threshold, and there is no email alert as well. And the below is the current Cacti Log. Thanks a lot for your help. |
@JasonRaptor when you moved the new thold_functions.php file over did you set the same permissions ? |
Hello @bmfmancini I have replaced the coding in the original file, and I can confirm with the same permission as before. But now being with another issue that I mentioned. Thank you. |
Hello @TheWitness , May I know if you can help to provide some solution for me, please? Thank you. |
So even though you're plotting bits per second you have to enter the data as it appears in the rrdfile which is in bytes per second. So if you reduce your value to bytes per second I think it should work correctly. Let me know if that works out. |
Hello @TheWitness , Thanks for your follow up with my case. Please take a look at below for my case. For Example: The Link Bandwidth ==> 3Gbit Convert Mb to B > Then I have the below Setting in Thold Warning - High / Low Settings Alert - High / Low Settings Then Press "Save" Button After that, I can see the amount I entered, it changed to below automatically After few times polling (~15 mins), and I check with the current graph data Graph: Thold (Traffic_in) (Last: 304.03346 M) Thank you. |
Upload a screenshot of the Threshold > Edit page. Redact anything private. |
Hello @TheWitness Thanks for that. Please take a look at the below PrintScreen for your reference. Thank you. |
Okay. I'll have to find some time. I'm working on some things for 1.8.2. Maybe by the end of next week I can have this one pinned down. |
Thanks a lot @TheWitness |
During the time I edit the "High Threshold" value, I can see the below Cacti Log. 2024-06-26 19:51:31 - CMDPHP PHP ERROR WARNING Backtrace: (D:\Inetpub\wwwroot\cacti\plugins\thold\thold.php[144]:thold_edit(), D:\Inetpub\wwwroot\cacti\plugins\thold\thold.php[2266]:draw_edit_form(), D:\Inetpub\wwwroot\cacti\lib\html_form.php[57]:CactiErrorHandler()) |
Describe the bug
Thold Current Value is incorrect in 1.8.1
Hello Sir,
As I have upgraded from v0.8.8h to v1.2.27, and now the Thold Plugin is able to send alert email out, but the current value (Mbytes) can't match with the data showing in Graph (Mbits), even I made self calculation.
Cacti Version: v1.2.27
PHP 8.3.7
MySQL 5.7.43
Thold 1.8.1
NET-SNMP version: 5.5
cmd.php
Concurrent Processes Name: Main Poller, Procs: 40
Max Threads Name: Main Poller, Threads: 60
PHP Servers 10
Minimum Connections: Main Server: Current: 3000, Min Required: 2900
May I know if anyone can help to provide some solution for me ?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The "traffic_in / traffic_out"'s Last value should be match with the Graph
Screenshots
![Thold Current Incorrect](https://private-user-images.githubusercontent.com/171688519/336441483-8127d4ba-27c9-4bba-b223-eccee7ba8cf0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NDAwMTYsIm5iZiI6MTczODkzOTcxNiwicGF0aCI6Ii8xNzE2ODg1MTkvMzM2NDQxNDgzLTgxMjdkNGJhLTI3YzktNGJiYS1iMjIzLWVjY2VlN2JhOGNmMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwN1QxNDQ4MzZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00MzUzNmJiYjk4M2JmZTExNjZmOTdmNDc2OWRhY2M0OTBjYThjOTNkNjQwNmQwNzJkNmQxOTUzMDUzYjJiYTQ0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.NbjUI1FfxcjRQbbf2sKNRecPPIASw87c_uQGbw8O_tU)
Plugin (please complete the following information):
Server (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: