AlkantarClanX12

Your IP : 3.144.82.128


Current Path : /proc/self/root/lib64/nagios/plugins/nccustom/
Upload File :
Current File : //proc/self/root/lib64/nagios/plugins/nccustom/check_cplicense.sh

#!/bin/bash

cp="/usr/local/cpanel/cpanel"

if [ -f $cp ]
then
	if [ "`sudo $cp |grep Licensed\ on`" ]
	then
		echo "OK: cPanel license is active"
		exit 0
	else
		echo "CRITICAL: cPanel is not licensed"
		exit 2
	fi
else
	echo "CRITICAL: $cp is not found"
	exit 2
fi