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

michael nemeth michael.nemeth at lmco.com
Thu May 29 19:32:52 CEST 2008


What does your graph def look like in hobbitgraph.cfg?

Anna Jonna Armannsdottir wrote:
> 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. 
>
>   




More information about the Xymon mailing list