| Server IP : 199.250.200.62 / Your IP : 216.73.217.89 Web Server : Apache System : Linux vps37394.inmotionhosting.com 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : jasonp18 ( 1000) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /opt/dedrads/extras/ |
Upload File : |
#!/bin/bash
PINGTIME="0.9"
if [ -z $1 ];
then
echo "you must provide a server to check"
exit;
fi
if [ ! -z $2 ];
then
PINGTIME=$2
fi;
if (echo $@|grep "\-v"); then
echo "$@"
echo "PINGTIME IS $PINGTIME"
echo "HOST IS $1"
fi
echo "Starting ping test - pinging $1 every $PINGTIME seconds for 100 packets, please be patient..."
echo "You should be running traceroutes from machine A -> machine B and from machine B -> Machine A "
echo "to look for routing issues right now too."
while [ 1 -eq 1 ];
do
echo $(date) - $(hostname) - $1 - $(ping -c100 -i $PINGTIME $1 | grep loss) | tee -a $1.pinglog.$(date --iso)
done