提交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
case $1 in
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
;;
service)
systemctl list-unit-files|grep enabled |awk '{print $1}' | awk -F '.' '{print $1}'
s=$(systemctl list-unit-files|grep enabled)
echo $s
;;
esac
}

Loading…
Cancel
Save