Skip to content
Permalink
Browse files

Push quickstate for NCS Dashboard overview

  • Loading branch information...
NEMS Linux
NEMS Linux committed Aug 23, 2019
1 parent 47de5cd commit 15d7122363c99745ad5e6e726bb574e1203a0a6c
Showing with 4 additions and 0 deletions.
  1. +3 −0 stats-livestatus-all.sh
  2. +1 −0 stats-livestatus-full.sh
@@ -168,5 +168,8 @@ EOQ;
$nems->hosts = array();
}
}
// quickstate is used by NCS Dashboard to display a very fast overview of how many hosts/services are in each state
$nems->quickstate = json_decode(trim(shell_exec('/usr/local/bin/nems-info state')));
echo json_encode($nems);
?>
@@ -288,5 +288,6 @@ EOQ;
$nems->unhandled = array();
}
} // detect socket exists
echo json_encode($nems);
?>

0 comments on commit 15d7122

Please sign in to comment.
You can’t perform that action at this time.