monitoringsystem-monitoring

How to stop collectl recursion?? restarting?


I am currently using collectl to monitor my system usage. At the same time, I have a shell script that tail this and logs output.

collectl >> test.file
while true; do tail test.file; done

But it seems like collectl is restarting (I might be wrong) at every 22 lines of output and puts

<--------CPU--------><--------Disks--------><--------Network--------> this line..

http://imgur.com/44fY9Pl

So, I am wondering if there is a way to stop collectl to generate those line and put the value continuously? I looked in /etc/init.d/collectl but I was not able to modify anything

Thank you


Solution

  • Yes you can disable header or just print it only once.
    From man page;

    --hr, --headerrepeat num Sets the number of intervals to display data for before repeating the header. A value -1 will prevent any headers from being displayed and a value of 0 will cause only a single header to be displayed and never repeated.