Skip to content

Commit

Permalink
and manual refresh too
Browse files Browse the repository at this point in the history
  • Loading branch information
nightflyza committed Jan 19, 2023
1 parent 5eb970a commit 17ba689
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions api/libs/api.nasmon.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,3 @@ public function getNasAlerts() {
}

}

?>
7 changes: 6 additions & 1 deletion modules/general/report_nasmon/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@
$nasMonControls .= wf_Link($nasMon::URL_ME . '&refresh=true' . $refreshAppend, wf_img('skins/refresh.gif') . ' ' . __('Force query'), false, 'ubButton');

if (ubRouting::checkGet('refresh')) {
$nasMon->saveCheckResults();
$nasMonProcess = new StarDust('NASMON');
if ($nasMonProcess->notRunning()) {
$nasMonProcess->start();
$nasMon->saveCheckResults();
$nasMonProcess->stop();
}
ubRouting::nav($nasMon::URL_ME . $refreshAppend);
}
show_window('', $nasMonControls);
Expand Down

0 comments on commit 17ba689

Please sign in to comment.