Warnings
list Nikesh Maharaj
Hi Can anyone please tell me which file to edit to configure the following alert ? All I want in the email/sms is the line marked in RED and not the rest of the message : -----Original Message----- From: user-bc0ec3b11ab4@xymon.invalid [mailto:user-bc0ec3b11ab4@xymon.invalid] Sent: 25 October 2007 02:00 PM To: Nikesh Maharaj Subject: Hobbit [618919] itlab02.metsi.com:disk warning (YELLOW) yellow Thu Oct 25 13:56:23 SAST 2007 [itlab02.metsi.com] &yellow /FIXED/C/ (49%) has reached the WARNING level (20%) Filesystem 1K-blocks Used Avail Capacity Mounted C 20972824 10372160 10600664 49% /FIXED/C () D 57135140 39304600 17830540 68% /FIXED/D (New Volume) E 624984704 359860416 265124288 57% /FIXED/E (New Volume) See http://fedora.metsi.com/var/www/cgi-bin/bb-hostsvc.sh?HOST=itlab02.metsi .com&SERVICE=disk
list Henrik Størner
▸
On Thu, Oct 25, 2007 at 02:27:58PM +0200, Nikesh Maharaj wrote:
Can anyone please tell me which file to edit to configure the following alert ? All I want in the email/sms is the line marked in RED and not the rest of the message : &yellow /FIXED/C/ (49%) has reached the WARNING level (20%)
Try putting this in hobbit-alerts.cfg:
HOST=itlab02.metsi.com SERVICE=disk
MAIL user-7ea7ee25b28c@xymon.invalid FORMAT=SMS
If that includes more than you want, then you'll have to write a custom
alerting script to format the message.
Regards,
Henrik