提交bug修复

master
newrain 3 years ago
parent cd54c82d4b
commit ec8bd0a1fb
  1. 6
      zabbix_agentd.d/script/osMonitor.sh

@ -98,11 +98,13 @@ function services() {
local s local s
case $1 in case $1 in
servicesList) servicesList)
s="$(systemctl list-unit-files|grep enabled |wc -l)"
s="$(systemctl list-unit-files|grep enabled |awk '{print $1}' | awk -F '.' '{print $1}')"
echo $s echo $s
;; ;;
service) service)
systemctl list-unit-files|grep enabled |awk '{print $1}' | awk -F '.' '{print $1}' s=$(systemctl list-unit-files|grep enabled)
echo $s
;; ;;
esac esac
} }

Loading…
Cancel
Save