After reviewing the post "Ugly way of calculating % of threshold - http://forums.cacti.net/about20486.html", I'm running into a strange problem.
I'm using the latest releases of Cacti, Plugin Architecture, and the Threshold Plugin.
I have the CDEF setup correctly (I think), but am getting conflicts between the Threshold and the Graph itself.
If I have the CDEF value for HDD Space Total as "HDD_TOTAL", the Threshold works(second screenshot), but the Graph doesn't. (second screenshot).
If I have the CDEF value for HDD Space Total as "a" or the value of the total drive space using the "a" value for DEF, the Graph works (first screenshot), but the Threshold returns an error (first screenshot). The graph even shows the % of used (green) correctly. Error may be dark so it says: Warning: Division by zero in /var/www/cacti/plugins/thold/thold-functions.php on line 355
I may be doing something wrong in the code of the thold_functions.php or the CDEF, but I copied it word for word only changing the VALUE_OF_HDD_TOTAL to HDD_TOTAL in both the config_arrays.php and thold_functions.php (third screenshot)
I may have needed to post this in the thread I referenced above, but thought it may get more viewers if I just created a new post. Any assistance on this is greatly appreciated. Thank you!
Joege
EDIT: Wow screenshots are hard to read. Let me know if anyone has any issue reading them and I'll repost larger ones. Thank you!
Thold CDEF / Graph Conflict Issue
Moderators: Developers, Moderators
Thold CDEF / Graph Conflict Issue
- Attachments
-
- Screenshots of Threshold working and Graph being broken.
- screenshot1.jpg (148.94 KiB) Viewed 2479 times
-
- Screenshots of Graph working and Threshold being broken.
- screenshot2.jpg (148.46 KiB) Viewed 2479 times
-
- Screenshots of code in config_arrays.php and thold-functions.php
- screenshot3.jpg (86.26 KiB) Viewed 2481 times
Who is online
Users browsing this forum: No registered users and 1 guest