zabbix ping 检测
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了zabbix ping 检测相关的知识,希望对你有一定的参考价值。
[[email protected] 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 [[email protected] shell]# cat ../zabbix_agentd.d/ cert_check.conf ping.conf pingsmtpexmail.conf tcp_status.conf userparameter_mysql.conf [[email protected] shell]# cat ../zabbix_agentd.d/pingsmtpexmail.conf UserParameter=smtpexmail[*], bash /etc/zabbix/shell/pingsmtpexmail.sh $1 [[email protected] shell]#
本文出自 “砖家博客” 博客,请务必保留此出处http://wsxxsl.blog.51cto.com/9085838/1905763
以上是关于zabbix ping 检测的主要内容,如果未能解决你的问题,请参考以下文章