I just had a question from a fellow sysadmin that I don't think is
possible in monit, but I figured I would ask the rest of the list:
Is it possible to get CPU and memory alerts to show us
output from 'top', or something else to tell us the offending
process(es)?
As a more general question, is there any way to embed the output of
a command in an alert? I don't see a way to do it from the docs. For
example, I might want to get the top 10 CPU users with a command
like "top -d1 -ocpu 10" and have that be part of the alert e-mail.
--
Dan Rich <address@hidden> | http://www.employees.org/~drich/
| "Step up to red alert!" "Are you sure, sir?
| It means changing the bulb in the sign..."
| - Red Dwarf (BBC)
|