Commit 6a6165e0 authored by 白秀江's avatar 白秀江

Update init-monitor.sh

parent bcf6b10d
......@@ -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 [ $a != "" ] || [ $b != ""] ; then
if [ ! $a == "" ] || [ ! $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