Build precise queries to find exactly what you need
Press ESC to close
@wotagios
Favorites0
Views0
Projects1
#!/bin/bash ##################################### ##################################### ### ______ _ =) ### ### | ___ | | ### ### | |_/ / __ _ _ __ | | ### ### | / / _` || '_ | | ### ### | | | (_| || | | || |____ ### ### _| _|__,_||_| |_|_____/ ### ##################################### ##################################### # Settings lmutil="_yout_path_to_lmutil/lmutil" function FError() { echo "Syntax:" echo "$0 [licesnse server dns name] [port #]" exit 3 } if [ $# != 2 ] then FError fi server=$1 port=$2 $lmutil lmstat -c ${port}@${server} &> /dev/null ERR=$? status=`$lmutil lmstat -c ${port}@${server} |egrep "(License file|license server|deamon status)"|tr -d "n"` if [ $ERR == 0 ] then echo "OK - FlexLm up ${port}@${server} $status| flexlm=1" exit 0 else echo "CRITICAL - FlexLm DOWN ${port}@${server} $status| flexlm=0" exit 2 fi
Reviewed 12 years ago
Nowadays I have to copy new HP CLI tools: copy hpssacli.exe hpacucli.exe copy hpssascripting.exe hpacuscripting.exe Check works still excellent! Thank you!
Reviewed 11 years ago
Hi, thanks for this plugin! I modified line 386: if ($line =~ "Record_ID" or $line =~ "DBP/HDD[2-9]/PRSNT" or $line =~ "PS[0-1]") There are only 2 HDD in my machines. I don't know about PS warnings.
Reviewed 15 years ago
Hi, Thanks for pubishing your check plugin! I changed both check conditions, so it works for me: 308c308 $drvCnt) --- > if($expDrvCnt != $drvCnt) 313c313 $drvOkCnt) --- > elsif($drvCnt != $drvOkCnt) Thank you!!
Reviewed 14 years ago