From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078694111228.tru64-unix-managers.marc@archive.invalid> From: Boddy Bill NTSE Date: Tue, 10 Feb 1998 14:09:06 +0000 To: tru64-unix-managers Subject: SUMMARY volwatch X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078694111228 > > Has anyone out there managed to get volwatch to send mail to a smtp > address. > > #man volwatch and the manuals aren't very helpful. > > Apparently volwatch will send any LSM errors to a mail user using mailx. > > > I have tried .. > > > # volwatch bill.boddy@nts.hl.siemens.de and it just hangs. It also > hangs if you type > # volwatch root > > Cheers > > > Bill Boddy Hi, I've done it. You have to modify two files: /etc/rc.config and /sbin/init.d/lsm 1) add the following lines to /etc/rc.config: LSMNOTIFYID="root,user@host" export LSMNOTIFYID 2) make the following modifications to /sbin/init.d/lsm: After the export PATH line at the start of the file add: USER_ID='rcmgr get LSMNOTIFYID root' and change the line: /usr/sbin/volwatch & to: /usr/sbin/volwatch $USER_ID &