parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

niceload --sensor


From: Ole Tange
Subject: niceload --sensor
Date: Tue, 23 Oct 2012 21:52:02 +0200

I have implemented --sensor.

It takes a command as argument to compute a value that will be used
instead of load.

--noswap can be expressed as:

  niceload -f 0.00001 --sensor 'vmstat 1 | perl -ane '\''$|=1; 4..0
and print $F[5]*$F[6],"\n"'\' my_command

Normal --load can be expressed as:

  niceload --sensor  'uptime | perl -ane '\''$|=1; print $F[7],"\n"'\'
 my_command

How would you like it to work?

I am currently thinking about a way to get a number from a column so
you can avoid the perl one liner.

Also how should you express that a high value is good (such as free
mem) vs. high value is bad (such as uptime).

Share your ideas.


/Ole



reply via email to

[Prev in Thread] Current Thread [Next in Thread]