Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 218

Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 219

Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 220
#!/bin/bash ######################################################################### # # # Plugin name: check_patchman_status # # Description: Plugin to check if the patchman service is running. # # Author: William Overko # # Version: 20171218 # # # ######################################################################### declare patchmanStatusOutput=`/etc/init.d/patchman status` if [[ "$patchmanStatusOutput" == "patchmand"*"is running..." ]] then echo -e "OK: Patchman Is Up." exit 0 elif [ "$patchmanStatusOutput" == "patchmand dead but pid file exists" ] || [ "$patchmanStatusOutput" == "patchmand is stopped" ] then echo -e "CRITICAL: Patchman Is Down." exit 2 fi