Skip to content

Commit

Permalink
Correcting two additional bugs then re-release
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWitness committed Mar 1, 2020
1 parent 3a1a5a6 commit 3eede02
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions includes/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ function thold_draw_navigation_text($nav) {
$nav['thold.php:save'] = array('title' => __('(save)', 'thold'), 'mapping' => 'index.php:,thold.php:', 'url' => 'thold.php', 'level' => '2');
$nav['thold.php:add'] = array('title' => __('(add)', 'thold'), 'mapping' => 'index.php:,thold.php:', 'url' => 'thold.php', 'level' => '2');
$nav['thold.php:autocreate'] = array('title' => __('Thresholds', 'thold'), 'mapping' => 'index.php:', 'url' => 'thold.php', 'level' => '2');
$nav['thold_graph.php:'] = array('title' => __('Thresholds', 'thold'), 'mapping' => 'index.php:', 'url' => 'thold_graph.php', 'level' => '1');
$nav['thold_graph.php:thold'] = array('title' => __('Thresholds', 'thold'), 'mapping' => $config['url_path'] . 'graph_view.php:', 'url' => 'thold_graph.php', 'level' => '1');
$nav['thold_graph.php:'] = array('title' => __('Thresholds', 'thold'), 'mapping' => '', 'url' => 'thold_graph.php', 'level' => '0');
$nav['thold_graph.php:thold'] = array('title' => __('Thresholds', 'thold'), 'mapping' => '', 'url' => 'thold_graph.php', 'level' => '0');
$nav['thold_graph.php:log'] = array('title' => __('Threshold Logs', 'thold'), 'mapping' => '', 'url' => 'thold_graph.php', 'level' => '0');
$nav['thold_graph.php:hoststat'] = array('title' => __('Device Status', 'thold'), 'mapping' => '', 'url' => 'thold_graph.php', 'level' => '0');
$nav['thold_view_failures.php:'] = array('title' => __('Thresholds - Failures', 'thold'), 'mapping' => 'index.php:', 'url' => 'thold_view_failures.php', 'level' => '1');
$nav['thold_view_normal.php:'] = array('title' => __('Thresholds - Normal', 'thold'), 'mapping' => 'index.php:', 'url' => 'thold_view_normal.php', 'level' => '1');
$nav['thold_view_recover.php:'] = array('title' => __('Thresholds - Recovering', 'thold'), 'mapping' => 'index.php:', 'url' => 'thold_view_recover.php', 'level' => '1');
Expand Down
10 changes: 5 additions & 5 deletions thold_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3493,11 +3493,11 @@ function thold_set_environ($text, &$thold, &$h, $currentval, $local_graph_id, $d
putenv('THOLD_CURRENTVALUE=' . $currentval);
putenv('THOLD_THRESHOLDNAME=' . $thold['name_cache']);
putenv('THOLD_DSNAME=' . $data_source_name);
putenv('THOLD_TIMEINSTATE=' . get_timeinstate($h);
putenv('THOLD_HOST_STATUS=' . $h['status'];
putenv('THOLD_HOST_FAIL_DATE=' . $h['status_fail_date'];
putenv('THOLD_HOST_REC_DATE=' . $h['status_rec_date'];
putenv('THOLD_HOST_LAST_ERROR=' . $h['status_last_error'];
putenv('THOLD_TIMEINSTATE=' . get_timeinstate($h));
putenv('THOLD_HOST_STATUS=' . $h['status']);
putenv('THOLD_HOST_FAIL_DATE=' . $h['status_fail_date']);
putenv('THOLD_HOST_REC_DATE=' . $h['status_rec_date']);
putenv('THOLD_HOST_LAST_ERROR=' . $h['status_last_error']);

if (isset($thold_types[$thold['thold_type']])) {
putenv('THOLD_THOLDTYPE=' . $thold_types[$thold['thold_type']]);
Expand Down

0 comments on commit 3eede02

Please sign in to comment.