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
