|
From: Simms, P. <ps...@ac...> - 2006-05-05 15:22:10
|
I found a similar problem like this on the posting from November, but = could not find an answer. I get the yellow screen that says "Total num = licenses not available. license_cache.php isn't running. Please check = your settings." I checked the database and I am getting data into the = flexlm_events and license_usage table, but not into licenses_available = table. Any suggestions on this problem. Also on the Server status page it says my two servers are down. When I = run lmstat -a -c from the command line they are up and running fine. = How do I overcome this problem. I have included my config file. <?php ################################################################ # BASIC CONFIGURATION # You have to configure this to get anywhere ################################################################ ################################################################ # Absolute path to the LMGRD directory ################################################################ $lm_home =3D "/usr/local/bin/"; ################################################################ # If $lm_home contains lmstat and lmutil leave following 3 lines alone ################################################################ $lmutil_loc =3D $lm_home . "lmutil"; $lmstat_loc =3D $lmutil_loc . "lmstat"; $lmdiag_loc =3D $lmutil_loc . "lmdiag"; ################################################################ # Location of the license server ie. 27...@ho... ################################################################ $servers[] =3D "1055@acchendaf01"; ################################################################ # Description of what kind of licenses this server handles. # Useful if you have a number of different license servers # running that you want to monitor. ################################################################ $description[] =3D "ANSYS"; ################################################################ # If you have multiple license server keep adding $server[] and = $description ################################################################ $servers[] =3D "27000@acccorpsv02"; $description[] =3D "UG Corp Server"; ################################################################## # You may or may not want to change these values ################################################################## ################################################################## # How far ahead should I warn before license expires e.g. # 10 days and less before expiration ################################################################## $lead_time=3D 10; ################################################################## # Different colors that can be used as backgrounds ################################################################## $colors =3D "#ffffdd,#ff9966, = #ffffaa,#ccccff,#cccccc,#ffcc66,#99ff99,#eeeeee,#66ffff,#ccffff, = #ffff66, #ffccff,#ff66ff, yellow,lightgreen,lightblue"; ################################################################ # Extended CONFIGURATION ################################################################ ################################################################## # On the current usage page there is a drop down box that will # allow people to select auto refresh a page. By default that # is turned on. However that could introduce overhead on your # server so you may want to turn it off. Set to 1 to disable ################################################################## $disable_autorefresh=3D0; ################################################################# # Disable ability to remove licenses from the web interface # Set to 1 to disable ################################################################# $disable_license_removal =3D 0; ################################################################# # If you want admin page to be password protected please # uncomment following two lines and set desired # username and password. If you do you should change permissions # on config.php to be only readable to the web user ################################################################# #$adminusername=3D"admin"; #$adminpassword=3D"admin"; ################################################################## # CONFIGURE following if you want E-mail alerts ################################################################## # Address to send notification of license expiration $notify_address =3D "ps...@ac..."; ################################################################## # CONFIGURE following if you want utilization statistics ################################################################## ################################################################## # Time interval between data collections ie. 15 minutes ################################################################## $collection_interval=3D15; ################################################################## # Database information=20 # ################################################################## $db_hostname =3D "localhost"; $db_username =3D "lic_user"; $db_password =3D "newpass"; $db_database =3D "licenses"; $dsn =3D "mysql://$db_username:$db_password@$db_hostname/$db_database"; # Uncomment following if you are using PostGresSQL and comment out one = with MySQL # $dsn =3D = "pgsql://$db_username:$db_password@$db_hostname/$db_database"; ################################################################## # License features being "watched" ################################################################## $license_feature[] =3D "ansys"; $feature_description[] =3D "ANSYS Mechanical"; $license_feature[] =3D "struct"; $feature_description[] =3D "ANSYS Structural"; $license_feature[] =3D "struct"; $feature_description[] =3D "ANSYS Structural"; $license_feature[] =3D "agppi"; $feature_description[] =3D "ANSYS Design Modeler"; $license_feature[] =3D "dsdxm"; $feature_description[] =3D "ANSYS DesignXplorer"; $license_feature[] =3D "dfatigue"; $feature_description[] =3D "ANSYS Fatigue"; $license_feature[] =3D "piug"; $feature_description[] =3D "ANSYS UG Translator"; $license_feature[] =3D "rdpara"; $feature_description[] =3D "ANSYS Parasolids Translator"; $license_feature[] =3D "piproe"; $feature_description[] =3D "ANSYS Pro/E Translator"; $license_feature[] =3D "perpar"; $feature_description[] =3D "ANSYS Parallel Performance"; $license_feature[] =3D "P1"; $feature_description[] =3D "UG "; $TOOLS_DIR =3D "./"; ################################################################## # Denials ################################################################## $log_file[] =3D "/data/flexlm_log/license.log"; #$log_file[] =3D "/mnt/flexlm/27000-at-sonoran"; #$log_file[] =3D "/mnt/flexlm/27004-at-sonoran"; ################################################################## # Graph sizes in pixels (x,y) user for license utilization graphs. ################################################################## $smallgraph=3D"300,200"; $largegraph=3D"600,300"; ################################################################## # How many point on the X axis you want for a 24 hr period ie. show = legend every # for every 2 hours =3D 12 so you will see 2,4,6,8,10 etc. ################################################################## $xlegendpoints =3D 12; ?> Thank you for your help. Paul Simms |