Commit 25432fc5 by 黄辉荣

Update 60_linux.sh

parent 03ed9d1e
...@@ -15,12 +15,6 @@ Json_join(){ ...@@ -15,12 +15,6 @@ Json_join(){
Check_plugin(){ Check_plugin(){
Json_join plugin.myself.status 1 Json_join plugin.myself.status 1
} }
Check_ntpd(){
#alarm value: >30 or =1024
value=$(ntpq -pn 2>/dev/null|grep ^*|awk '{print $9}')
test -z $value && value=1024
Json_join sys.ntp.offset $value
}
Check_passwd(){ Check_passwd(){
#alarm value: diff(#1)!=0 #alarm value: diff(#1)!=0
...@@ -45,7 +39,6 @@ Service_port() { ...@@ -45,7 +39,6 @@ Service_port() {
} }
Check_plugin Check_plugin
Service_port Service_port
Check_ntpd
Check_passwd Check_passwd
Check_uptime Check_uptime
jstr=$(echo $jstr|sed 's/^/[/;s/,$/]/;s/\[$/[]/') jstr=$(echo $jstr|sed 's/^/[/;s/,$/]/;s/\[$/[]/')
......
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