[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] alert for different partitions
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] alert for different partitions
- From: Vernon Everett <everett.vernon (at) gmail.com>
- Date: Thu, 1 Jul 2010 11:11:11 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=iBY2/Xv3Mj6x2xOv5d2PrWY6drtGweytLE3C+q7XOFQ=; b=s6Q5PgYvi25U4WkVOc6LoXrPxTL7a0AgaglI9J6yKAH4GFH5m5mwip0xepVO+4w5T7 pyldWx7VAyJTMoKFWktuD5pPMcJz0SDjtP1LstjhLFX/b75TWx48/ITaCNbYEAMVed7H 10td5Jik/I/fmEGBzYYN+JX0jER+isysiMk1A=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=iyzgPon+3wUFEohQZvTcpR2ok0k5qa9omoWnCekZNsyofAnyEIb8JH7WNwJPaQJXII SkHrZL/uDOcHnOEritsHZgP/hcAwRzNZkj/C5USpwqKkN2vS1kTERb1LG/HX3H11RBHR RKhZLEjeuW823K5nWIwm5b9BCuhyjcfNf5KQE=
- References: <Pine.LNX.4.64.1006302043040.13338 (at) pal34.desy.de>
Yep, can be done.
You need to use groups.
Try it like this.
In hobbit-clients.cfg
HOST=fileserv1
DISK /local/dsk/vol0 95 99 GROUP=Finance
DISK /local/dsk/vol1 80 90 GROUP=Development
DISK /local/dsk/vol2 90 95 GROUP=Finance
DISK /local/dsk/vol3 100 101 GROUP=Retail
DISK /local/dsk/vol4 85 90 GROUP=Retail
Now you have set up 3 groups for alerting.
Finance, Development and Retail.
Now in hobbit-alerts.cfg you do this.
GROUP=Finance
MAIL fin-admin (at) mydomain.com REPEAT=1440 RECOVERED
MAIL moneyPHB (at) mydomain.com COLOUR=red
GROUP=Development
MAIL codemonkeys (at) mydomain.com REPEAT=1440
GROUP=Retail
MAIL PHB (at) mydomain.com RECOVERED
There is brief mention of the GROUP feature in the hobbit-alerts.cfg
and hobbit-clients.cfg man pages in Xymon help pages but it hardly
does any justice to how powerful this feature is.
It also doesn't effect "normal" alerts.
You can still have hobbit-alerts.cfg entries along the line of
HOST=fileserv1 SERVICE=disk,conn,procs
MAIL unixadmin (at) mydomain.com REPEAT=1440 RECOVERED
Cheers
Vernon
On Thu, Jul 1, 2010 at 2:52 AM, Martin Flemming <martin.flemming (at) desy.de> wrote:
>
> Hi !
>
> Is it possible to configure alerting
> for different partitions/disks on a fileserver
> to/for different group-admins ?
>
> e.g.
>
> On my fileserver there are luns for different groups
>
> /dev/mapper/ddn_lun1 7811405140 7301180228 119533280 99% /ost/hh_A_0
> /dev/mapper/ddn_lun2 7811405140 7359390896 61322612 100% /ost/hh_B_0
> /dev/mapper/ddn_lun3 7811405140 7360586140 60127368 100% /ost/hh_B_2
> /dev/mapper/ddn_lun4 7811405140 6983365056 437348452 95% /ost/hh_C_0
>
> So, i want to inform the group-admins of B that their space is empty
>
> dev/mapper/ddn_lun2 7811405140 7359390896 61322612 100% /ost/hh_B_0
> /dev/mapper/ddn_lun3 7811405140 7360586140 60127368 100% /ost/hh_B_2
>
> but don't want to bother the other group-admins of A and C ...
>
> thanks in advance & cheers,
>
>
> martin
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
>