[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] alert for different partitions




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 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