标签:ping
[root@yz shell]# cat pingsmtpexmail.sh #!/bin/bash echo "" >>/etc/zabbix/shell/pingsmtpexmail.log echo "" >>/etc/zabbix/shell/pingsmtpexmail.log echo "===========================================================================" >>/etc/zabbix/shell/pingsmtpexmail.log date ‘+%Y-%m-%d %H:%M:%S‘ >>/etc/zabbix/shell/pingsmtpexmail.log ping -c 3 -W 3 $1 &>>/etc/zabbix/shell/smtpexmailping.log if [ $? -eq 0 ] then echo 1 else echo 2 fi [root@yz shell]# cat ../zabbix_agentd.d/ cert_check.conf ping.conf pingsmtpexmail.conf tcp_status.conf userparameter_mysql.conf [root@yz shell]# cat ../zabbix_agentd.d/pingsmtpexmail.conf UserParameter=smtpexmail[*], bash /etc/zabbix/shell/pingsmtpexmail.sh $1 [root@yz shell]#
本文出自 “砖家博客” 博客,请务必保留此出处http://wsxxsl.blog.51cto.com/9085838/1905763
标签:ping
原文地址:http://wsxxsl.blog.51cto.com/9085838/1905763