mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
sysutils/nut: little tweaks (#659)
This commit is contained in:
parent
85345bf820
commit
a99e13e55b
3 changed files with 4 additions and 3 deletions
|
|
@ -41,6 +41,7 @@ class ServiceController extends ApiMutableServiceControllerBase
|
|||
|
||||
public function upsstatusAction()
|
||||
{
|
||||
$this->sessionClose();
|
||||
$mdl = new Nut();
|
||||
$host = '127.0.0.1';
|
||||
if (!empty((string)$mdl->netclient->address)) {
|
||||
|
|
|
|||
|
|
@ -46,8 +46,8 @@
|
|||
|
||||
updateServiceControlUI('nut');
|
||||
|
||||
// call function update_diagnostics with a auto-refresh of 3 seconds
|
||||
setInterval(update_diagnostics, 10000);
|
||||
// call function update_diagnostics with a auto-refresh of 2 seconds
|
||||
setInterval(update_diagnostics, 2000);
|
||||
|
||||
// update history on tab state and implement navigation
|
||||
if(window.location.hash != "") {
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ type:script
|
|||
message:restarting nut
|
||||
|
||||
[status]
|
||||
command:/usr/local/etc/rc.d/nut status;exit 0
|
||||
command:/usr/local/etc/rc.d/nut_upsmon status;exit 0
|
||||
parameters:
|
||||
type:script_output
|
||||
message:request nut status
|
||||
|
|
|
|||
Loading…
Reference in a new issue