sysutils/nut: little tweaks (#659)

This commit is contained in:
Michael 2018-05-02 10:09:06 +02:00 committed by Franco Fichtner
parent 85345bf820
commit a99e13e55b
3 changed files with 4 additions and 3 deletions

View file

@ -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)) {

View file

@ -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 != "") {

View file

@ -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