Skip to content

Commit 3eede02

Browse files
committed
Correcting two additional bugs then re-release
1 parent 3a1a5a6 commit 3eede02

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

includes/settings.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ function thold_draw_navigation_text($nav) {
3131
$nav['thold.php:save'] = array('title' => __('(save)', 'thold'), 'mapping' => 'index.php:,thold.php:', 'url' => 'thold.php', 'level' => '2');
3232
$nav['thold.php:add'] = array('title' => __('(add)', 'thold'), 'mapping' => 'index.php:,thold.php:', 'url' => 'thold.php', 'level' => '2');
3333
$nav['thold.php:autocreate'] = array('title' => __('Thresholds', 'thold'), 'mapping' => 'index.php:', 'url' => 'thold.php', 'level' => '2');
34-
$nav['thold_graph.php:'] = array('title' => __('Thresholds', 'thold'), 'mapping' => 'index.php:', 'url' => 'thold_graph.php', 'level' => '1');
35-
$nav['thold_graph.php:thold'] = array('title' => __('Thresholds', 'thold'), 'mapping' => $config['url_path'] . 'graph_view.php:', 'url' => 'thold_graph.php', 'level' => '1');
34+
$nav['thold_graph.php:'] = array('title' => __('Thresholds', 'thold'), 'mapping' => '', 'url' => 'thold_graph.php', 'level' => '0');
35+
$nav['thold_graph.php:thold'] = array('title' => __('Thresholds', 'thold'), 'mapping' => '', 'url' => 'thold_graph.php', 'level' => '0');
36+
$nav['thold_graph.php:log'] = array('title' => __('Threshold Logs', 'thold'), 'mapping' => '', 'url' => 'thold_graph.php', 'level' => '0');
37+
$nav['thold_graph.php:hoststat'] = array('title' => __('Device Status', 'thold'), 'mapping' => '', 'url' => 'thold_graph.php', 'level' => '0');
3638
$nav['thold_view_failures.php:'] = array('title' => __('Thresholds - Failures', 'thold'), 'mapping' => 'index.php:', 'url' => 'thold_view_failures.php', 'level' => '1');
3739
$nav['thold_view_normal.php:'] = array('title' => __('Thresholds - Normal', 'thold'), 'mapping' => 'index.php:', 'url' => 'thold_view_normal.php', 'level' => '1');
3840
$nav['thold_view_recover.php:'] = array('title' => __('Thresholds - Recovering', 'thold'), 'mapping' => 'index.php:', 'url' => 'thold_view_recover.php', 'level' => '1');

thold_functions.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3493,11 +3493,11 @@ function thold_set_environ($text, &$thold, &$h, $currentval, $local_graph_id, $d
34933493
putenv('THOLD_CURRENTVALUE=' . $currentval);
34943494
putenv('THOLD_THRESHOLDNAME=' . $thold['name_cache']);
34953495
putenv('THOLD_DSNAME=' . $data_source_name);
3496-
putenv('THOLD_TIMEINSTATE=' . get_timeinstate($h);
3497-
putenv('THOLD_HOST_STATUS=' . $h['status'];
3498-
putenv('THOLD_HOST_FAIL_DATE=' . $h['status_fail_date'];
3499-
putenv('THOLD_HOST_REC_DATE=' . $h['status_rec_date'];
3500-
putenv('THOLD_HOST_LAST_ERROR=' . $h['status_last_error'];
3496+
putenv('THOLD_TIMEINSTATE=' . get_timeinstate($h));
3497+
putenv('THOLD_HOST_STATUS=' . $h['status']);
3498+
putenv('THOLD_HOST_FAIL_DATE=' . $h['status_fail_date']);
3499+
putenv('THOLD_HOST_REC_DATE=' . $h['status_rec_date']);
3500+
putenv('THOLD_HOST_LAST_ERROR=' . $h['status_last_error']);
35013501

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

0 commit comments

Comments
 (0)