[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Email alert based on specific process
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Email alert based on specific process
- From: "Peter Welter" <peter.welter (at) gmail.com>
- Date: Wed, 15 Nov 2006 14:58:44 +0100
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jWjXNWzFf4ETJLUVMlWC/sp2mPRPUUKnmNdx2J2VVwPDnZmpaQrcAXagQMy5zNdBwDdYBh0kyL0X7Hs2KG1oieUPe84OIloAH4WNdOl0Oj1eQ2cOlaJNVkrPukgWYcLBc7G5AsT2W6mTBcIvAisCje4ZmiJxR125xNaa3p8kTG4=
- References: <20051111222746.GB27296@hswn.dk> <Pine.LNX.4.30.0511122341550.3699-100000@loco.packetpushers.com>
Hi all,
Since 4.2.0 Hobbit officially supports the GROUP-label mechanism for
distinguishing processes, disks, files, etc. When I quote Henrik
correctly "alerts in both BB and Hobbit trigger on a status column.",
this gives me the following problem.
Let's say we have the following config:
hobbit-clients.cfg:
SERVER=name
DISK / 90 95 GROUP=unix
DISK /database 90 95 GROUP=dba
hobbit-alerts.cfg:
GROUP=dba
MAIL dba (at) somewhere.com bla bla
GROUP=unix
MAIL unix (at) somewhere.com bla bla
The threshold for /database is exceeded, status is yellow, mail is
sent to the dba. Great! Now the /-partition starts to grow, the status
remains yellow because the dba's are investigating the problem but
have not solved the issue, but the unix-team is not alerted because no
status change has occured.
Any hints???
Below I found a discussion from last year, when I think the idea was
born and the term LABEL was introduced but is called GROUP now.
Thanks,
Peter
2005/11/13, Scott Walters <scott (at) packetpushers.com>:
On Fri, 11 Nov 2005, (Henrik Stoerner) wrote:
> the rules you define in the hobbit-clients.cfg file. E.g. if you have
> two process checks for a host, the check for the "httpd" process can
> be associated with a "web" label, and the check for the "mysqld"
> process gets a "database" label. Then you can define alerts that use
> these labels just like we currently use e.g. the service names, i.e.
>
> HOST=*
> MAIL dbadmin (at) foo.com LABEL=database
> MAIL webadmin (at) foo.com LABEL=web
Beautiful. And it would be ideal if those 'labels' also ended up as
columns in the display, not just for notifications.
So for the the 'database' label, you would like to see mysql up, nothing
bad in the log file, and the /mysql partition is OK.
--
Scott Walters
-PacketPusher