Mark host as up or down before execute script, then script can use this information.
Submitted by: Jean Debogue <jean@wedebugyou.com>
When WANTIME is empty, there is nothing to do here
test only does integer comparison, use bc to compare float
Save status even if no script is executed
On first run REVIOUSSTATUS doesn't exist, so it cannot be UP or DOWN, invert the logic to fix this. While I'm here, check if file exists before cat it
Update usr/local/bin/ping_hosts.sh
Swap if statement, add fields into ipsecpinghosts file
Add field 8 for address family
at least don't touch rrd here, that rrd won't exist anyway
Revert "the only thing ping_hosts.sh is used for is pinging IPsec hosts. comment out all this complexity that makes it do way more than it needs to (and was throwing an error on rrd, it shouldn't be touching rrd)" this is used by at least the DNS server pkg...
the only thing ping_hosts.sh is used for is pinging IPsec hosts. comment out all this complexity that makes it do way more than it needs to (and was throwing an error on rrd, it shouldn't be touching rrd)
ping_hosts.sh is no more in /etc. Remove some unneeded lines.
Move ping_hosts.sh to usr/local/bin