#!/bin/bash
if [[ `sudo systemctl is-failed httpd` == 'active' ]]; then
	echo "OK: Apache web server is running."
	exit 0
else
	echo "CRITICAL: Apache Web Server is DOWN"
	exit 2
fi
