[hobbit] Custom script, rrd file, GAUGE datatype , UNKN

Morsiani, Massimo massimo.morsiani at gilbarco.com
Thu May 29 11:26:04 CEST 2008


Hi Anna,

could you please post your flexlm script to the list? Or even to TheShire website?
Thanks in advance.


Regards.

Massimo Morsiani
Information Technology Dept.
------
Gilbarco S.p.a.
via de' Cattani, 220/G
50145 Firenze, Italy
tel:	+39-055-30941
fax:	+39-055-318603
email:	massimo.morsiani at gilbarco.com
web:	http://www.gilbarco.it


-----Original Message-----
From: Anna Jonna Armannsdottir [mailto:annaj at hi.is] 
Sent: mercoledì 28 maggio 2008 17.23
To: Hobbit user
Subject: [hobbit] Custom script, rrd file, GAUGE datatype , UNKN

I have created a GPL Hobbit module to monitor Flex License Manager. It seems to be working and delivering data in Hobbit under the column flexlm . 

On the server, the hobbitserver.cfg file has been changed like so: 
TEST2RRD="cpu=...  ... flexlm=ncv"
Data is delivered in the RRD file flexlm.rrd 

The data arrives OK into the rrd file, with the correct number of used licenses in last_ds field with the default data type DERIVE. 

SO far so good, but for the graphs, the datatype should be GAUGE. 

So I added the following line to hobbitserver.cfg : 
NCV_flexlm="MATLAB:GAUGE" 

I have tested this a few times, being extra careful to do: 
~/server/bin/bb 127.0.0.1 "drop jotunn.rhi.hi.is flexlm" as hobbit user then after stopping the server:

rm /var/lib/hobbit/rrd/jotunn.rhi.hi.is/flexlm.rrd

Start the server a minute later. 

Then the last_ds field is set to UNKN like in the following example. 

<!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
        <step> 300 </step> <!-- Seconds -->
        <lastupdate> 1211985894 </lastupdate> <!-- 2008-05-28 14:44:54 GMT -->

        <ds>
                <name> MATLAB </name>
                <type> GAUGE </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> 0.0000000000e+00 </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> UNKN </last_ds>
                <value> 5.8800000000e+02 </value>
                <unknown_sec> 0 </unknown_sec>
        </ds>

I wonder if this has something to do with the fact that the output format from my flexlm module to Hobbit is: 
$AWK '{printf "%.19s : %d\n", $3, $11 }' 
Resulting in lines like this: 
MATLAB : 1 

Maybe it is the \n in the format string or maybe there should be a space after the number. 

I am stuck here. Can anybody help me out. :)
BTW: I am using Hobbit 4.2.0 with the allinone patch. 

-- 
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.


To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk




This message (including any attachments) contains confidential 
and/or proprietary information intended only for the addressee.  
Any unauthorized disclosure, copying, distribution or reliance on 
the contents of this information is strictly prohibited and may 
constitute a violation of law.  If you are not the intended 
recipient, please notify the sender immediately by responding to 
this e-mail, and delete the message from your system.  If you 
have any questions about this e-mail please notify the sender 
immediately.



More information about the Xymon mailing list