BUT no graphs are generated... query_lmgrd.pl pick up license info
Code: Select all
XXXXX@XXXXX:~/cacti/cacti-flexlm-0.0.1$ perl ./query_lmgrd.pl test
Dumping hash...
$VAR1 = 'XXXXX';
$VAR2 = {
'solidworks' => {
'inuse' => '1',
'total' => '30',
'port' => '25734',
'package' => 'Solidworks'
},
'kinemat' => {
'inuse' => '0',
'port' => '1055',
'total' => '26',
'package' => 'Ansys'
},
'picatv5' => {
'inuse' => '0',
'port' => '1055',
'total' => '26',
'package' => 'Ansys'
},
Code: Select all
+ Running data query [13].
+ Found type = '4 '[script query].
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/lmgrd.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'perl /usr/share/cacti/site/scripts/query_lmgrd.pl XXXXX 25734 index'
+ Executing script query 'perl /usr/share/cacti/site/scripts/query_lmgrd.pl XXXXX 25734 query appname'
+ Found item [appname='cae_cosmosfloworkspe'] index: cae_cosmosfloworkspe
+ Found item [appname='cae_cwadvpro'] index: cae_cwadvpro
+ Found item [appname='dwgeditor'] index: dwgeditor
+ Found item [appname='solidworks'] index: solidworks
+ Found item [appname='swofficepremium'] index: swofficepremium
+ Executing script query 'perl /usr/share/cacti/site/scripts/query_lmgrd.pl XXXXX 25734 query package'
+ Found item [package='Solidworks'] index: cae_cosmosfloworkspe
+ Found item [package='Solidworks'] index: cae_cwadvpro
+ Found item [package='Solidworks'] index: dwgeditor
+ Found item [package='Solidworks'] index: solidworks
+ Found item [package='Solidworks'] index: swofficepremium
+ Executing script query 'perl /usr/share/cacti/site/scripts/query_lmgrd.pl XXXXX 25734 query total'
+ Found item [total='30'] index: cae_cosmosfloworkspe
+ Found item [total='30'] index: cae_cwadvpro
+ Found item [total='90'] index: dwgeditor
+ Found item [total='30'] index: solidworks
+ Found item [total='30'] index: swofficepremium
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/lmgrd.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/lmgrd.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/lmgrd.xml'
One thing I noticed is that the RRD file is non-existant. I go to the data sources link on the cacti console and look to the data source path to verify location. Turn on debug mode and get
Code: Select all
Data Source Debug
/usr/bin/rrdtool create \
/var/lib/cacti/rra/encs-license_inuse_108.rrd \
--step 300 \
DS:inuse:GAUGE:600:0:100 \
RRA:AVERAGE:0.5:1:500 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:500 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
It seems to me that 1. the rrd file was not being created and 2. the polling script was not storing data.
even after creating the rrd file manually I was not getting any graphs.
UPDATE1 - oops originally created rrd file as root and forgot to change permissions on the file, that has been fixed.
UPDATE2 - I tried version 2 of the template - it works!?