一、通过定时收发email检测网络连通性
复制代码 代码如下:
#/bin/bash
echo "Daily test mail" > state.txt
mail -s Server_State abc@jb51.net < state.txt
rm -df ./state.txt
~
crontab -e
增加如下任务
10 07 * * * /root/checkNKmail &
分时日月周
二、定时检测网络状态通过email发送
checkserverstat脚本内容:
复制代码 代码如下:
#/bin/bash
echo "HZtelecomDNS" > state.txt
ping -c 5 202.101.172.35 state.txt
echo "
bJU" >> state.txt
ping -c 5 10.X.X.X state.txt
echo "ADSL Gateway" state.txt
ping -c 5 X.X.X.X state.txt
echo "Server_Outside VPN" state.txt
ping -c 5 192.168.2.100 state.txt
echo "Server_Outside WAN" state.txt
ping -c 5 X.X.X.X state.txt
echo "VPN in company" state.txt
ping -c 5 192.168.1.4 state.txt
echo "L2tp at aaa Libweb" state.txt
ping -c 5 X.X.X.X & state.txt
mail -s Server_State admin@abc.com <state.txt
rm -df ./state.txt
crontab中增加任务
复制代码 代码如下:
corntab -e
10 16 * * * /root/CheckWeatherState &
10 09 * * * /root/checkserverstate &
10 13 * * * /root/checkserverstate &
10 17 * * * /root/checkserverstate &
网络状态
更新日志
- 小骆驼-《草原狼2(蓝光CD)》[原抓WAV+CUE]
- 群星《欢迎来到我身边 电影原声专辑》[320K/MP3][105.02MB]
- 群星《欢迎来到我身边 电影原声专辑》[FLAC/分轨][480.9MB]
- 雷婷《梦里蓝天HQⅡ》 2023头版限量编号低速原抓[WAV+CUE][463M]
- 群星《2024好听新歌42》AI调整音效【WAV分轨】
- 王思雨-《思念陪着鸿雁飞》WAV
- 王思雨《喜马拉雅HQ》头版限量编号[WAV+CUE]
- 李健《无时无刻》[WAV+CUE][590M]
- 陈奕迅《酝酿》[WAV分轨][502M]
- 卓依婷《化蝶》2CD[WAV+CUE][1.1G]
- 群星《吉他王(黑胶CD)》[WAV+CUE]
- 齐秦《穿乐(穿越)》[WAV+CUE]
- 发烧珍品《数位CD音响测试-动向效果(九)》【WAV+CUE】
- 邝美云《邝美云精装歌集》[DSF][1.6G]
- 吕方《爱一回伤一回》[WAV+CUE][454M]