[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] custom paging script
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] custom paging script
- From: "Gary Baluha" <gumby3203 (at) gmail.com>
- Date: Thu, 10 Jan 2008 15:51:18 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=axBlPu418XFpkfDJyf5ZNpbBPumYQl76f9Bk7/b69QY=; b=V0LwZL7GxMo4kYcdNF3D7Yc7JoZgK+PQHI5iyfR7mvRsnCKbJ4bMij+tyLWOQEturd6EMDDwroFaGhmGoeEeqMkJ/fMHuHIlnfM/woYDiv/lX1nnMR/NP1dSv/pt/YiNNIwrnEHh9gPkB3FO5S9xFOEg0Mqv8Aeec8fLzxr8978=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=sRhRnrCpNADpNA93ofmonAo9lCpb85643t699yK9jedSt1sLeo0NV2k5Kwp6zrXmZ2CYmKwW3E1bvjbpnLSR28hcbVjpHARnhUurp0AbEq4EUrtuwLb5fXpNkCR1hJ/xVcVrgxfgqj+Ye45gZ6H1oCSi9PxOeJ48CulUl2QBFyU=
- References: <013101c84e04$971635b0$c542a110$ (at) rr.com> <29f517690801030829m633d728bg58f369701112d744 (at) mail.gmail.com> <009d01c853c7$bd01d3b0$37057b10$ (at) rr.com>
Actually, it will send out pages for that as well, since the actual paging
is still controlled by hobbit-alerts.cfg. The part where it is grep'ing for
red and yellow is just to get the particular item in a non-green state. For
instance, if you are monitoring 10 processes on a machine, instead of
showing ALL processes, including the green ones, only the ones in a
non-green state will show up with this script. It's actually looking for
"&yellow" or "&red".
The error message will look like:
Subject = !HB [12345]
Body = machine.procs red
&red someproc (found 0, req. 1 or more)
And the recovery messages will look something like this:
Subject = !HB [-1]
Body = machine.procs red
If you wanted to use something else instead of "-1" to indicate recovery,
you could add something like the following in place of the msg=<blah> lines:
if [ ${ACKCODE} -eq "-1" ] then; msg="Recovered";
else msg=` <blah>`; msg="\n${msg}";
done
On Jan 10, 2008 3:31 PM, Joshua Krause <forums (at) triadbiz.rr.com> wrote:
> I noticed your script sends out a page with a yellow and red response.
> But how would you go about tweaking it to be able to send the recovery
> message also.
>
>
>
> Thanks,
>
>
>
> Josh
>
>
>
> *From:* Gary Baluha [mailto:gumby3203 (at) gmail.com]
> *Sent:* Thursday, January 03, 2008 11:29 AM
> *To:* hobbit (at) hswn.dk
> *Subject:* Re: [hobbit] custom paging script
>
>
>
> Sounds like you're asking for smsplus:
> http://www.trantor.org/theshire/doku.php/alerts
>
> On Jan 3, 2008 7:31 AM, Joshua Krause < forums (at) triadbiz.rr.com> wrote:
>
> Has anyone come up with a custom paging script that will only page out
> certain information?
>
>
>
>
>
>
>