Setting Missing: thold_time_fail_trigger

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
sciamachy
Posts: 1
Joined: Tue Nov 17, 2015 2:38 pm

Setting Missing: thold_time_fail_trigger

Post by sciamachy »

After an upgrade to 0.8.8f, I found myself encountering issues with the creation of new thresholds. I started with thold < 0.6, and through troubleshooting have upgraded to 0.6, and 0.6.1 with no resolution.

The end error is: Save Command Failed for Table 'thold_data'. Error was 'Column 'time_fail_trigger' cannot be null'

I believe this field corresponds to the Breach Count used for Time Based Threshold Types. In this case I am attempting to make a High/Low Value Type.

This error seems to flow through two main events:
1) In thold.php when setting up the form (~line 575) It seems that the value of this field in the form is NULL, due to a failure of the read_config_option('thold_time_fail_trigger'). I have confirmed that this record does not exist in the settings table.
2) In thold_functions.php save_thold(), when validating the time_fail_trigger POST parameter, it attempts to default the value by calling read_config_option('thold_warning_time_fail_trigger'). This also returns null, not existing in the settings table as well.

What logic/event inserts these records into the settings table? I searched through the setup logic, and also kicked the Settings screen. I am aware I can manually create them, but I am concerned there are others which may have also been missed.

An aside remark as the question as to why it's checking two separate settings fields (thold_time_fail_trigger vs thold_warning_time_fail_trigger)?

Thanks in advance.

Update: I added the thold_time_fail_trigger setting and the field now populates. As I expected however, there are additional setting rows which are also missing. I am now getting an error on inserting null into time_warning_fail_trigger.
fhma
Posts: 1
Joined: Sat Dec 05, 2015 12:39 pm

Re: Setting Missing: thold_time_fail_trigger

Post by fhma »

Hi,
I have exactly the same problem. :cry:
Actually, Cacti Version: 0.8.8f, Plugin Architecture Version: 3.1, THOLD 0.5.
For complementary information, I don't have problem with the Time Based. It's just for "HIGH / LOW value" and "Baseline Deviation" threshold

sciamachy, in your post update, you said "I added the thold_time_fail_trigger setting and the field now populates." You have update directly mysql or a specific field in the Cacti interface?

For information, when I used "template threshold", I don't have a problem :lol: . It's just for create ondemand threshold.

Thanks for exchange
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests