[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xymon] alert for several procs conditions
- To: xymon (at) xymon.com
- Subject: Re: [xymon] alert for several procs conditions
- From: Steve Holmes <sholmes42 (at) mac.com>
- Date: Thu, 14 Oct 2010 09:34:34 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=rj5bp2FPHWNb3emdvsX/cPEeMxc0A1mRIvNBSH7onYQ=; b=o3u5yUmnrFxiS/G9bslEGGW5z2/8hhmPV2Si4eE3l5iN1k/TPUhl6sZKr3ffJacMAw CGnUKddtaYL4RxhwI2G12qK+u85BmmqZWDv7ia7982K3Lpl5eQF4ZTqaqQ4dPVBg2z/C BFG4StQV9wKHG9a7QOxMKrE00DRio25Z3e+ec=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; b=IXqu4KDHPT8yFMCjyxQJkUPK2Bf+HP/3v+odVAS7CmKDmJItIIa9gvlub9ykOx0uTI I1U2TrRRqqcwi563ZBlWsChy9a+RH59LwooaM00K4sTklRLGsMG8cGD/35BjmUHZD/xb sHs06fRSJIW7GxKhrhmPuxyEnz+uxdLeVPXnk=
- References: <alpine.LRH.2.00.1010140917290.10809 (at) pal32.desy.de>
On Thu, Oct 14, 2010 at 3:48 AM, <martin.flemming (at) desy.de> wrote:
>
> Hi !
>
> Is it possible ( i think not, but i'm asking too :-)) to combine
> Alerts for several proc-conditions or is there an external-test for it :
>
> I want to monitor 4 processes
>
> yellow alert for no found process of
>
> sge_execd
> load_sensor
>
> red alert if additional no process of
>
> sge_shepherd
> sge_coshepher
>
> are found ...
>
> thnaks & cheers,
>
> Martin
>
>
Unless I'm misunderstanding your question: just use multiple PROC lines, one
for each process or pattern. For example, I have for one host:
PROC cupsd 1 -1 yellow
PROC dhcpd 1 -1 yellow
PROC nmbd 2 -1 red
So, if there is not at least one each of cupsd and dhcpd the procs column is
yellow, and if there is not at least 2 of nmbd the procs column is red. Red
wins if there is a tie.
You can use patterns like
PROC "%dsmc " 0 -1 yellow
which will turn yellow if there are any procs with any occurrence of
dsmc<space> in the proc name. The double quotes are there to include the
space after the string dsmc.
Steve
--
The test of a democracy is not the magnificence of buildings or the speed of
automobiles or the efficiency of air transportation, but rather the care
given to the welfare of all the people. -Helen Adams Keller, lecturer and
author (1880-1968)
Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948)