Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check Flexlm Up
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
Please change in line 16 the path to lmutil
I hope you will find this useful as I did, But I dont guarantee it will work for you
I hope you will find this useful as I did, But I dont guarantee it will work for you
Reviews (1)
bywotagios, December 12, 2013
#!/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
#####################################
#####################################
### ______ _ =) ###
### | ___ \ | | ###
### | |_/ / __ _ _ __ | | ###
### | / / _` || '_ \ | | ###
### | |\ \| (_| || | | || |____ ###
### \_| \_|\__,_||_| |_|\_____/ ###
#####################################
#####################################
# 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