alert for different partitions
list Martin Flemming
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
list Vernon Everett
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 user-3620e97dc31f@xymon.invalid REPEAT=1440 RECOVERED
MAIL user-714057d560a2@xymon.invalid COLOUR=red
GROUP=Development
MAIL user-4cfe1c2f7c1a@xymon.invalid REPEAT=1440
GROUP=Retail
MAIL user-a13e02f2ffd9@xymon.invalid 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 user-3d5e843705e2@xymon.invalid REPEAT=1440 RECOVERED
Cheers
Vernon
▸
On Thu, Jul 1, 2010 at 2:52 AM, Martin Flemming <user-f286aaa49a76@xymon.invalid> 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
list Martin Flemming
Grmmph, of course .. So, how ever it's true, RTFM ;-) Thanks a lot for the hint ! cheers, martin
▸
On Thu, 1 Jul 2010, Vernon Everett wrote:
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 user-3620e97dc31f@xymon.invalid REPEAT=1440 RECOVERED MAIL user-714057d560a2@xymon.invalid COLOUR=red GROUP=Development MAIL user-4cfe1c2f7c1a@xymon.invalid REPEAT=1440 GROUP=Retail MAIL user-a13e02f2ffd9@xymon.invalid 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 user-3d5e843705e2@xymon.invalid REPEAT=1440 RECOVERED Cheers Vernon On Thu, Jul 1, 2010 at 2:52 AM, Martin Flemming <user-f286aaa49a76@xymon.invalid> 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