#!/bin/bash
URL="http://192.168.1.100/index.html"
HTTP_CODE=`curl -o /dev/null -s -w "%{http_code}" "${URL}"`
if [ $HTTP_CODE != 200 ]
then
echo "apache code:${HTTP_CODE}"
fi