All,
I'm looking for a script to monitor jumbo frame services in SCOM. I found a
bash script for linux in
https://exchange.nagios.org/directory/Plugins/Network-Protocols/%2A-TCP-and-UDP-%28Generic%29/iSCSI-Jumbo-Frame-%26-Latency-check/details
The windows command would be: ping "server name" -f -l 8000
The result below should send an alert:
Packet needs to be fragmented but DF set.
Packet needs to be fragmented but DF set.
Packet needs to be fragmented but DF set.
Packet needs to be fragmented but DF set.
Ping statistics for "IP address":
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Any ideas?
BASH SCRIPT
#!/bin/bash
SERVER=$1
WARNING=$2
CRITICAL=$3
AVGTIME=`ping $SERVER -c 5 -s 8972 -M do | awk -F"/" '{print $5}' | xargs`
if expr "$AVGTIME" = "" >/dev/null
then
echo "CRITICAL: $SERVER timeout occured. Either host is down,
or not configured for Jumbo Frames!"
exit 2
elif expr "$AVGTIME" '>' "$CRITICAL" >/dev/null
then
echo "$SERVER Jumbos OK - Ping CRITICAL: $SERVER $AVGTIME is greater than
$CRITICAL ms | Latency=$AVGTIME;;;;"
exit 2
elif expr "$AVGTIME" '>' "$WARNING" >/dev/null
then
echo "$SERVER Jumbos OK - Ping WARNING: $AVGTIME is greater than $WARNING ms
| Latency=$AVGTIME;;;;"
exit 1
else
echo "$SERVER Jumbos OK - Ping OK: $SERVER $AVGTIME ms | Latency=$AVGTIME;;;;"
exit 0
fi
________________________________
Under Florida law, most e-mail messages to or from Broward County employees or
officials are public records, available to any person upon request, absent an
exemption. Therefore, any e-mail message to or from the County, inclusive of
e-mail addresses contained therein, may be subject to public disclosure.