#!/bin/bash
if [[ $(systemctl status php-fpm | grep Active | grep -o running) ]] ; then

	echo "OK: PHP-FPM is running"
	exit 0

else

	echo "CRITICAL: PHP-FPM is not running"
	exit 1

fi
