监控ntp进程的

!#/bin/bash
ntp_num=$[`ps -ef|grep ntp|wc -l`-1]
if [ $ntp_num == 1 ];then
echo 0
else
echo $ntp_num
fi
原文地址:https://www.cnblogs.com/cizao/p/11568807.html