Networker

Re: [Networker] How to create event notification for required tapes?

2004-09-27 12:31:55
Subject: Re: [Networker] How to create event notification for required tapes?
From: Dave Mussulman <mussulma AT CS.UIUC DOT EDU>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Mon, 27 Sep 2004 11:27:22 -0500
On Fri, Sep 24, 2004 at 11:42:48AM -0400, George Sinclair wrote:
> How can I create an event notification that will email me to let me know
> that one or more tapes need to be loaded for a recovery and are not
> currently loaded?
>
> I tried creating a custom notification named: 'Tape mount request' with
>
> Action = /usr/ucb/mail -s subject recipient
> Event = 'media'
> Priority = 'Waiting'
>
> This works like a champ but unfortunately it also emails me when a
> backup is waiting for a writable tape. This wouldn't be so bad if there
> were no writable tapes available, but there were, so it was just waiting
> for it to load. How can I set this up so I only get the message when a
> recovery is waiting for a tape(s) that's not loaded in the library?

I run the action from the notification described above into a perl
script, which takes the volume name out of the notication and searches
for it in the 'nsrjb -C' output.  If it doesn't find it, it sends email,
otherwise it quietly exits.  This solved the problem of getting emails
for tapes that were already in the jukebox.  If you need the script, let
me know and I'll forward you a copy.

Dave

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

<Prev in Thread] Current Thread [Next in Thread>