Skip to content
Permalink
Browse files

More screen work

  • Loading branch information...
NEMS Linux
NEMS Linux committed Mar 2, 2019
1 parent 163eb50 commit d26930b876e6ef89127b4502ccd8a9b839c132ad
Showing with 14 additions and 2 deletions.
  1. +12 −0 bootscreen.sh
  2. +2 −2 stats-livestatus.py
@@ -73,6 +73,18 @@ display_screen "NEMS Server Overview"

sleep 10

hosts=$(/usr/local/bin/nems-info hosts)
services=$(/usr/local/bin/nems-info services)

# General overview
output="\
Hosts: $hosts\n\
Services: $services\n\
"
display_screen "NEMS Linux $ver"

sleep 10

# NEMS Warning Light Current State Screen
if [[ -e /var/log/nems/nems-tools/currentstate ]]; then
output=$(cat /var/log/nems/nems-tools/currentstate)
@@ -28,8 +28,8 @@ def main():
print result

# Parse the answer into a table (a list of lists)
#table = [ line.split(';') for line in answer.split('\n')[:-1] ]
#print table
# table = [ line.split(';') for line in answer.split('\n')[:-1] ]
# print table

if __name__ == '__main__':
main()

0 comments on commit d26930b

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