监控环境 IP和HOSTNAME 有时会有变化.但目前是通过IP地址监控,不是DNS名,添加一个外部脚本,发现IP和HOSTNAME发生变化时告警. vim /usr/local/etc/zabbix_server.conf ExternalScripts=/usr/local/share/zabbix/externalscripts cd /usr/local/share/zabbix/externalscripts 创建2个脚本 vim hn2ipcheck.sh ####ping $1 -…
转自:http://stackoverflow.com/questions/808560/how-to-detect-the-physical-connected-state-of-a-network-cable-connector You want to look at the nodes in /sys/class/net/ I experimented with mine: Wire Plugged in: eth0/carrier:1eth0/operstate:unknown Wire…