• LOGIN
  • No products in the cart.

DevOps on AWS – Shell Script to verify the System Status

#!/bin/bash

if [ $# -ne 1]
then
echo “Please provide the Parameters: Machine IP”
exit 2
fi

SERVERIP=$1
NOTIFYEMAIL=test@example.com

ping -c 3 $SERVERIP > /dev/null 2>&1
if [ $? -ne 0 ]
then
   # Use your favorite mailer here:
   mailx -s “Server $SERVERIP is down” -t “$NOTIFYEMAIL” < /dev/null
fi

February 20, 2021

Contact Address

Rise ‘n’ Shine Technologies:
Third Floor, Plot No1(Part), near KPHB Metro Station, KPHB Bagyanagar Colony, Kukatpally Main road, Balanagar Mandal, Rangareddy Dist-500072

Landmarks : Above VIOLET & PURPLE, near PJR statue, kphb metro station

  8686 98 8042
rnstech.fmw@gmail.com

Location

All rights reserved.
error: Alert: Content is protected !!
X