? GR0V Shell

GR0V shell

Linux server122.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64

Path : /lib64/nagios/plugins/nccustom/
File Upload :
Current File : //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

T1KUS90T
  root-grov@198.54.114.191:~$