Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions notify_lists.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ function form_actions() {

db_execute('UPDATE host
SET thold_host_email = 0
AND deleted=""
WHERE ' . array_to_sql_or($selected_items, 'thold_host_email'));
WHERE deleted=""
AND ' . array_to_sql_or($selected_items, 'thold_host_email'));

db_execute('UPDATE thold_data
SET notify_warning = 0
Expand Down
6 changes: 3 additions & 3 deletions thold_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3390,7 +3390,7 @@ function thold_check_threshold(&$thold_data) {
'host_id' => $thold_data['host_id'],
'local_graph_id' => $thold_data['local_graph_id'],
'threshold_id' => $thold_data['id'],
'threshold_value' => ($breach_up ? $thold_data['time_hi'] : $thold_data['time_low']),
'threshold_value' => ($warning_breach_up ? $thold_data['time_warning_hi'] : $thold_data['time_warning_low']),
'current' => $thold_data['lastread'],
'status' => ($ra ? ST_NOTIFYRAW : ST_NOTIFYWA),
'description' => ($maint_dev ? $subject . '. ' . __('Only logging, maint device', 'thold') : $subject),
Expand All @@ -3406,7 +3406,7 @@ function thold_check_threshold(&$thold_data) {
'host_id' => $thold_data['host_id'],
'local_graph_id' => $thold_data['local_graph_id'],
'threshold_id' => $thold_data['id'],
'threshold_value' => ($warning_breach_up ? $thold_data['time_hi'] : $thold_data['time_low']),
'threshold_value' => ($warning_breach_up ? $thold_data['time_warning_hi'] : $thold_data['time_warning_low']),
'current' => $thold_data['lastread'],
'status' => ST_NOTIFYRAW,
'description' => ($maint_dev ? $subject . '. ' . __('Only logging, maint device', 'thold') : $subject),
Expand All @@ -3420,7 +3420,7 @@ function thold_check_threshold(&$thold_data) {
'host_id' => $thold_data['host_id'],
'local_graph_id' => $thold_data['local_graph_id'],
'threshold_id' => $thold_data['id'],
'threshold_value' => ($warning_breach_up ? $thold_data['time_hi'] : $thold_data['time_low']),
'threshold_value' => ($warning_breach_up ? $thold_data['time_warning_hi'] : $thold_data['time_warning_low']),
'current' => $thold_data['lastread'],
'status' => ST_TRIGGERW,
'description' => ($maint_dev ? $subject . '. ' . __('Only logging, maint device', 'thold') : $subject),
Expand Down
Loading