Commit 1a47944c authored by 白秀江's avatar 白秀江

Update init-monitor.sh

parent ec832d67
......@@ -11,7 +11,7 @@ b=$(grep ServerActive=127.0.0.1 /etc/zabbix/zabbix_agentd.conf)
sed -i "s/Server=127.0.0.1/Server=zabbix.ibreader.com/g" /etc/zabbix/zabbix_agentd.conf
sed -i "s/ServerActive=127.0.0.1/ServerActive=zabbix.ibreader.com/g" /etc/zabbix/zabbix_agentd.conf
if [[ !-n $a ]] || [[ !-n $b]] ; then
if [ !-n $a ] || [ !-n $b] ; then
service zabbix-agent restart
echo ${today} service zabbix-agent restart... >> /var/log/lwby-init-monitor.log
fi
......
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