#!/bin/bash
if [ $# -eq 0 ]
then
echo "No arguments supplied"
fi
if [ $# -eq 1 ]
then
output=`curl -x 10.11.10.10:3128 -L $1 -m 10 -o /dev/null || echo "Website_down"`
if [ "$output" == "Website_down" ] ; then
echo "Website is down CRITICAL "
exit 2
else
echo "Website_up $1 OK"
exit 0
fi
fi
if [ $# -eq 0 ]
then
echo "No arguments supplied"
fi
if [ $# -eq 1 ]
then
output=`curl -x 10.11.10.10:3128 -L $1 -m 10 -o /dev/null || echo "Website_down"`
if [ "$output" == "Website_down" ] ; then
echo "Website is down CRITICAL "
exit 2
else
echo "Website_up $1 OK"
exit 0
fi
fi
6 comments:
I positively suits some points simply just have mentioned on this post. I appreciate simply just have shared some reliable recommendations on this review.
please share what is the command line argument to be supplied in the comments
i'm here to learn more about DevOps Thanks for Sharing
Here you can check best DevOps Online Training Institute
DevOps Online Training
thanks for all this information about Java. You are including better information DevOps Training in Bangalore | Certification | Online Training Course institute | DevOps Training in Hyderabad | Certification | Online Training Course institute | DevOps Training in Coimbatore | Certification | Online Training Course institute | DevOps Online Training | Certification | Devops Training Online
Awesome,Thank you so much for sharing such an awesome blog
This is good information and really helpful for the people who need information about this.
Really the post is very unique.every concepts are captured nice.
Thank you for sharing any good knowledge and thanks for fantastic efforts.
oracle training in chennai
oracle training institute in chennai
oracle training in bangalore
oracle training in hyderabad
oracle training
hadoop training in chennai
hadoop training in bangalore
Post a Comment