[hobbit] once more linecount
Martin Flemming
martin.flemming at desy.de
Tue Apr 28 21:01:40 CEST 2009
.. sorry, to bug you ... :-(
But i've got no correct linecount to work ..
.. and i've found the threads, which says how easy it is,
but unfortunatley not for me :-(
i've written in my client-launch.cfg
[k5cron01]
dir:`find /var/log -maxdepth 1 -type d`
log:/var/log/debug:25000
log:/var/log/k5crond.log:30240
log:/var/log/messages:25000
log:/var/log/all:25000
linecount:/var/log/k5crond.log
lostJob:timeout
Jobs:UID
and i've got an rrd-file on my server
lines.,var,log,debug#Jobs.rrd
lines.,var,log,debug#lostJob.rrd
lines.,var,log,k5crond.log#Jobs.rrd
lines.,var,log,k5crond.log#lostJob.rrd
I've got an graph for linecount but with the false values,
i think ... the y-ordinate is 0 - 30 m (?) .. why "30m" ?
and the rrd-file looks like
rrdtool dump lines.\,var\,log\,k5crond.log#Jobs.rrd
<!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
<step> 300 </step> <!-- Seconds -->
<lastupdate> 1240943416 </lastupdate> <!-- 2009-04-28 20:30:16 CEST -->
<ds>
<name> count </name>
<type> DERIVE </type>
<minimal_heartbeat> 600 </minimal_heartbeat>
<min> 0.0000000000e+00 </min>
<max> NaN </max>
<!-- PDP Status -->
<last_ds> 1964 </last_ds>
<value> 5.2980132450e-01 </value>
<unknown_sec> 0 </unknown_sec>
</ds>
<!-- Round Robin Archives --> <rra>
<cf> AVERAGE </cf>
<pdp_per_row> 1 </pdp_per_row> <!-- 300 seconds -->
<params>
<xff> 5.0000000000e-01 </xff>
</params>
<cdp_prep>
<ds>
<primary_value> 3.2953467532e-02 </primary_value>
<secondary_value> 0.0000000000e+00 </secondary_value>
<value> NaN </value>
<unknown_datapoints> 0 </unknown_datapoints>
</ds>
</cdp_prep>
<database>
<!-- 2009-04-26 20:35:00 CEST / 1240770900 --> <row><v> NaN </v></row>
... why ?
<last_ds> 1964 </last_ds>
<value> 5.2980132450e-01 </value>
.. my hobbitgraph.cfg looks for linecount like
[lines]
FNPATTERN lines.(.+).rrd
TITLE Logfile linecounts
YAXIS #
DEF:cnt at RRDIDX@=@RRDFN@:count:AVERAGE
LINE2:cnt at RRDIDX@#@COLOR@:@RRDPARAM@
GPRINT:cnt at RRDIDX@:LAST: %6.1lf (cur) \:
GPRINT:cnt at RRDIDX@:MAX: %6.1lf (max) \:
GPRINT:cnt at RRDIDX@:MIN: %6.1lf (min) \:
GPRINT:cnt at RRDIDX@:AVERAGE: %6.1lf (avg)\n
and on the client-side i can see in
/usr/lib/hobbit/client/tmp/msg.k5cron01.txt
[linecount:/var/log/k5crond.log]
lostJob: 0
Jobs: 1954
Any hint is welcome ! :-)
thanks & cheers,
martin
On Tue, 21 Apr 2009, martin.flemming at desy.de wrote:
>
> Hi !
>
> Since i know that the linecount-function in client-launch.cfg
> counts the pattern even in the hole logfile, i wonder what people do
> in the situation of logrotate ... what does it means for the rrd-file or the
> graph, going down to zero and starts again to count ?
>
> On the other hand i want to count the pattern UID
> to count all jobs are done ...
>
> my client-launch.cfg
>
> [k5cron01]
> linecount:/var/log/debug
> Jobs UID
>
>
>
> On the client-side i see the right counting
>
> [k5cron01] /usr/lib/hobbit/client/tmp # grep Jobs msg.k5cron01.txt
> Jobs: 2322
>
>
>
> But the graph gots no value .. and in the rrd-file stands follows ..
>
>
> rrdtool dump lines.\,var\,log\,debug#Jobs.rrd
>
> <!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
> <step> 300 </step> <!-- Seconds -->
> <lastupdate> 1240349502 </lastupdate> <!-- 2009-04-21 23:31:42 CEST
> -->
>
> <ds>
> <name> count </name>
> <type> DERIVE </type>
> <minimal_heartbeat> 600 </minimal_heartbeat>
> <min> 0.0000000000e+00 </min>
> <max> NaN </max>
>
> <!-- PDP Status -->
> <last_ds> 2322 </last_ds>
> <value> 3.3774834437e+00 </value>
> <unknown_sec> 0 </unknown_sec>
> </ds>
>
> <!-- Round Robin Archives --> <rra>
> <cf> AVERAGE </cf>
> <pdp_per_row> 1 </pdp_per_row> <!-- 300 seconds -->
>
> <params>
> <xff> 5.0000000000e-01 </xff>
> </params>
> <cdp_prep>
> <ds>
> <primary_value> 3.2008830022e-02 </primary_value>
> <secondary_value> 0.0000000000e+00
> </secondary_value>
> <value> NaN </value>
> <unknown_datapoints> 0 </unknown_datapoints>
> </ds>
> </cdp_prep>
> <database>
> <!-- 2009-04-19 23:35:00 CEST / 1240176900 -->
> <row><v> NaN </v></row>
> <!-- 2009-04-19 23:40:00 CEST / 1240177200 -->
> <row><v> NaN </v></row>
> <!-- 2009-04-19 23:45:00 CEST / 1240177500 -->
> <row><v> NaN </v></row>
>
>
> What's going wrong by me ?
>
> thanks & cheers
>
> Martin
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>
>
More information about the Xymon
mailing list