monit-general
[Top][All Lists]
Advanced

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

Alert format question/feature request


From: Daniel Rich
Subject: Alert format question/feature request
Date: Tue, 06 Sep 2011 14:33:51 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Red Hat/3.1.11-2.el6_1 Thunderbird/3.1.11 ThunderBrowse/3.8

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)

reply via email to

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