Custom script to monitor Flex License Manager

Anna Jonna Armannsdottir annaj at hi.is
Tue Jun 3 01:40:42 CEST 2008


Thanks for the comments and hints, on my 
quest to monitor the Flex LM. If the 
Hobbit Custom Graph for Flex LM is good 
enough, it will be posted, preferably 
at the Shire or on this list. 

It is mostly ready, I just need to 
fix a small problem, with the graphs. 
The problem is that there are too 
many lines on only one graph. 
I would like to have a number of 
graphs, each wit at most 5 lines. 

I have searched this list, and the 
Hobbit wiki book. 
http://en.wikibooks.org/wiki/System_Monitoring_with_Hobbit/

I did not succed in finding how to 
get Hobbit to create multiple graphs. 
Below is the relevant part of 
hobbitgraph.cfg that I am using now. 
*Please note that all the data is 
stored in a single file. flexlm.rrd. 

[flexlm]
	TITLE License counts 
	YAXIS #

	DEF:matlab=flexlm.rrd:MATLAB:AVERAGE
	LINE2:matlab#FF0000:Matlab
	COMMENT:\n
	GPRINT:matlab:LAST:Matlab \: %5.1lf%s (cur)
	GPRINT:matlab:MAX: \: %5.1lf%s (max)
	GPRINT:matlab:MIN: \: %5.1lf%s (min)
	GPRINT:matlab:AVERAGE: \: %5.1lf%s (avg)\n

	DEF:simulink=flexlm.rrd:SIMULINK:AVERAGE
	LINE2:simulink#CC3333:Simulink
	COMMENT:\n
	GPRINT:simulink:LAST:Simulink \: %5.1lf%s (cur)
	GPRINT:simulink:MAX: \: %5.1lf%s (max)
	GPRINT:simulink:MIN: \: %5.1lf%s (min)
	GPRINT:simulink:AVERAGE: \: %5.1lf%s (avg)\n

	DEF:commtlb=flexlm.rrd:CommunicationToolb:AVERAGE
	LINE2:commtlb#66CC66:Communication Toolb
	COMMENT:\n
	GPRINT:commtlb:LAST:Communication Toolb \: %5.1lf%s (cur)
	GPRINT:commtlb:MAX: \: %5.1lf%s (max)
	GPRINT:commtlb:MIN: \: %5.1lf%s (min)
	GPRINT:commtlb:AVERAGE: \: %5.1lf%s (avg)\n

	DEF:ctrltlb=flexlm.rrd:ControlToolbox:AVERAGE
	LINE2:ctrltlb#6666CC:Control Toolbox
	COMMENT:\n
	GPRINT:ctrltlb:LAST:Control Toolbox \: %5.1lf%s (cur)
	GPRINT:ctrltlb:MAX: \: %5.1lf%s (max)
	GPRINT:ctrltlb:MIN: \: %5.1lf%s (min)
	GPRINT:ctrltlb:AVERAGE: \: %5.1lf%s (avg)\n

	DEF:fintlb=flexlm.rrd:FinancialToolbox:AVERAGE
	LINE2:fintlb#00FF00:Financial Toolbox
	COMMENT:\n
	GPRINT:fintlb:LAST:Financial Toolbox \: %5.1lf%s (cur)
	GPRINT:fintlb:MAX: \: %5.1lf%s (max)
	GPRINT:fintlb:MIN: \: %5.1lf%s (min)
	GPRINT:fintlb:AVERAGE: \: %5.1lf%s (avg)\n

	DEF:fztlb=flexlm.rrd:FuzzyToolbox:AVERAGE
	LINE2:fztlb#66FF66:Fuzzy Toolbox
	COMMENT:\n
	GPRINT:fztlb:LAST:Fuzzy Toolbox \: %5.1lf%s (cur)
	GPRINT:fztlb:MAX: \: %5.1lf%s (max)
	GPRINT:fztlb:MIN: \: %5.1lf%s (min)
	GPRINT:fztlb:AVERAGE: \: %5.1lf%s (avg)\n

	DEF:imgtlb=flexlm.rrd:ImageToolbox:AVERAGE
	LINE2:imgtlb#0000FF:Image Toolbox
	COMMENT:\n
	GPRINT:imgtlb:LAST:Image Toolbox \: %5.1lf%s (cur)
	GPRINT:imgtlb:MAX: \: %5.1lf%s (max)
	GPRINT:imgtlb:MIN: \: %5.1lf%s (min)
	GPRINT:imgtlb:AVERAGE: \: %5.1lf%s (avg)\n

	DEF:compiler=flexlm.rrd:Compiler:AVERAGE
	LINE2:compiler#6666FF:Compiler
	COMMENT:\n
	GPRINT:compiler:LAST:Compiler \: %5.1lf%s (cur)
	GPRINT:compiler:MAX: \: %5.1lf%s (max)
	GPRINT:compiler:MIN: \: %5.1lf%s (min)
	GPRINT:compiler:AVERAGE: \: %5.1lf%s (avg)\n

	DEF:neuralnettlb=flexlm.rrd:NeuralNetworkTool:AVERAGE
	LINE2:neuralnettlb#FFFF00:Neural Network Tool
	COMMENT:\n
	GPRINT:neuralnettlb:LAST:Neural Network Tool \: %5.1lf%s (cur)
	GPRINT:neuralnettlb:MAX: \: %5.1lf%s (max)
	GPRINT:neuralnettlb:MIN: \: %5.1lf%s (min)
	GPRINT:neuralnettlb:AVERAGE: \: %5.1lf%s (avg)\n

	DEF:opttlb=flexlm.rrd:OptimizationToolbo:AVERAGE
	LINE2:opttlb#00FFFF:Optimization Toolbo
	COMMENT:\n
	GPRINT:opttlb:LAST:Optimization Toolbo \: %5.1lf%s (cur)
	GPRINT:opttlb:MAX: \: %5.1lf%s (max)
	GPRINT:opttlb:MIN: \: %5.1lf%s (min)
	GPRINT:opttlb:AVERAGE: \: %5.1lf%s (avg)\n

	DEF:distributedtlb=flexlm.rrd:DistribComputingT:AVERAGE
	LINE2:distributedtlb#CC66CC:Distrib Computing T
	COMMENT:\n
	GPRINT:distributedtlb:LAST:Distrib Computing T \: %5.1lf%s (cur)
	GPRINT:distributedtlb:MAX: \: %5.1lf%s (max)
	GPRINT:distributedtlb:MIN: \: %5.1lf%s (min)
	GPRINT:distributedtlb:AVERAGE: \: %5.1lf%s (avg)\n

	DEF:pdetlb=flexlm.rrd:PDEToolbox:AVERAGE
	LINE2:pdetlb#CCCC66:PDE Toolbox
	COMMENT:\n
	GPRINT:pdetlb:LAST:PDE Toolbox \: %5.1lf%s (cur)
	GPRINT:pdetlb:MAX: \: %5.1lf%s (max)
	GPRINT:pdetlb:MIN: \: %5.1lf%s (min)
	GPRINT:pdetlb:AVERAGE: \: %5.1lf%s (avg)\n

	DEF:signaltlb=flexlm.rrd:SignalToolbox:AVERAGE
	LINE2:signaltlb#66CCCC:Signal Toolbox
	COMMENT:\n
	GPRINT:signaltlb:LAST:Signal Toolbox \: %5.1lf%s (cur)
	GPRINT:signaltlb:MAX: \: %5.1lf%s (max)
	GPRINT:signaltlb:MIN: \: %5.1lf%s (min)
	GPRINT:signaltlb:AVERAGE: \: %5.1lf%s (avg)\n

	DEF:simulctrl=flexlm.rrd:SimulinkControlDe:AVERAGE
	LINE2:simulctrl#CCCC00:Simulink Control
	COMMENT:\n
	GPRINT:simulctrl:LAST:Simulink Control \: %5.1lf%s (cur)
	GPRINT:simulctrl:MAX: \: %5.1lf%s (max)
	GPRINT:simulctrl:MIN: \: %5.1lf%s (min)
	GPRINT:simulctrl:AVERAGE: \: %5.1lf%s (avg)\n

	DEF:stattlb=flexlm.rrd:StatisticsToolbox:AVERAGE
	LINE2:stattlb#999966:Statistics Toolbox
	COMMENT:\n
	GPRINT:stattlb:LAST:Statistics Toolbox \: %5.1lf%s (cur)
	GPRINT:stattlb:MAX: \: %5.1lf%s (max)
	GPRINT:stattlb:MIN: \: %5.1lf%s (min)
	GPRINT:stattlb:AVERAGE: \: %5.1lf%s (avg)\n

	DEF:symboltlb=flexlm.rrd:SymbolicToolbox:AVERAGE
	LINE2:symboltlb#FFCC00:Symbolic Toolbox
	COMMENT:\n
	GPRINT:symboltlb:LAST:Symbolic Toolbox \: %5.1lf%s (cur)
	GPRINT:symboltlb:MAX: \: %5.1lf%s (max)
	GPRINT:symboltlb:MIN: \: %5.1lf%s (min)
	GPRINT:symboltlb:AVERAGE: \: %5.1lf%s (avg)\n

	DEF:idtlb=flexlm.rrd:IdentificationTool:AVERAGE
	LINE2:idtlb#FF00FF:Identification Tool
	COMMENT:\n
	GPRINT:idtlb:LAST:Identification Tool \: %5.1lf%s (cur)
	GPRINT:idtlb:MAX: \: %5.1lf%s (max)
	GPRINT:idtlb:MIN: \: %5.1lf%s (min)
	GPRINT:idtlb:AVERAGE: \: %5.1lf%s (avg)\n

-- 
Kindest Regards, Anna Jonna Ármannsdóttir,       %&   A: Because people read from top to bottom.
Unix System Aministration, Computing Services,   %&   Q: Why is top posting bad?
University of Iceland.




More information about the Xymon mailing list