once more linecount

martin.flemming at desy.de martin.flemming at desy.de
Tue Apr 21 23:39:43 CEST 2009


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




More information about the Xymon mailing list