25 lines
444 B
Bash
25 lines
444 B
Bash
#! /bin/bash
|
|
|
|
# ip to arp ping
|
|
IP="172.16.1.82"
|
|
|
|
# alternatively, MAC to ping
|
|
MAC="86:51:F8:EF:D1:8C"
|
|
|
|
# number of seconds for ping to timeout before device is considered to not be present
|
|
SECONDS_TO_AWAY=900
|
|
|
|
# number of seconds between pings
|
|
INTERVAL=1
|
|
|
|
# app token for gotify
|
|
TOKEN="A9jDrGFO6Ob-m88"
|
|
|
|
# logfile
|
|
LOGFILE="/var/log/arp-check/$IP"
|
|
|
|
# alert configuration:
|
|
ALERT_TITLE="Status"
|
|
ALERT_MESSAGE_HOME="Home"
|
|
ALERT_MESSAGE_AWAY="Away"
|