[Xymon] Sort By in Xymon Alert Emails

Betsy Schwartz betsy.schwartz at gmail.com
Tue Jun 19 14:29:23 CEST 2012


On Mon, Jun 18, 2012 at 7:32 PM, Balderston, David <dbalders at ucsd.edu> wrote:

> which is taking the most cpu %.  Do you guys have any suggestions on how I
> can get the email to be sorted by the cpu% instead of the proc id?

You can change how the data is sent to the xymon server by going into
/home/xymon/client/bin and editing the xymonclient sh script for your
os ( xymonclient-linux.sh for linux, for example)
Look for the piece that lists processes, in linux it is :

echo "[ps]"
ps -Aww -o pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd

In linux you can add a sort option to ps; Your OS May Vary, but you
can experiment with this command. Just be sure you return results in
the format xymon expects (a header line followed by the right number
of fields in the same order) or you'll have to go deeper.

(or you could write a custom test that runs top...)



More information about the Xymon mailing list