Commit 21b5f32c authored by Peter Möller's avatar Peter Möller

Update host-monitor.sh

parent 8a1218fd
......@@ -10,10 +10,7 @@ source /var/services/homes/csadmin/monitoring/host-monitor.template
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# sysinfo
# Operating System (OS='Ubuntu 20.04.1 LTS'):
# Find out distro
# Fist: look at the /etc/*-release files
OS="$(more /proc/version | cut -d\( -f1)"
OS="DSM $(egrep productversion /etc.defaults/VERSION | cut -d\" -f2)-$(egrep buildnumber /etc.defaults/VERSION | cut -d\" -f2)"
# Kind of CPU (CPUModel='Intel® Atom™ CPU C2538 @ 2.40GHz'):
CPUModel="$(egrep "^model name" /proc/cpuinfo | sort -u | cut -d: -f2 | sed -e 's/^ //' -e 's/(R)/®/g' -e 's/(TM)/™/')"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment