nv-l
[Top] [All Lists]

Re: Send node information via e-mail ...

To: nv-l@lists.tivoli.com
Subject: Re: Send node information via e-mail ...
From: Ray Schafer <schafer@tkg.com>
Date: Wed, 08 Mar 2000 08:07:04 -0600
Matthais,

The ovxecho command will attempt to display a window on your X display
containing the arguments.

The command from the script below will only work if it the ruleset is activated
from an events window where the shell variable $DISPLAY is valid.  It will
display a window on the screen that contains the text:

     "Router Down Alert for $NVATTR_2"

The standard out from the ovxecho (which is probably nothing) will be sent to
the Mail command, which only has a subject line.  The message will contain
nobody.

If you change "/usr/OV/bin/ovxecho" to "print" or "echo",  your script should
work.



GOELL@de.ibm.com wrote:

> Hi all,
>
> I'm looking for a posibility to send node information (IP-Add or Node name)
> ather an event via send e-mail command under unix/aix to an e-mail user.
>
> I know there is a way to use rule editor and an action node, but it doesn't
> work. The send of e-mail is ok. but there is no attribut was no attribut
> incluted.
>
> The Environment Variables for trap date NVATTR_1 or NVATTR_2 does not work
> and deliver no node variables in my e-mail.
>
> for example, e-mail script:
>
> simple file: alert.script
>
> #!/bin/ksh
> #
> #############################################################################
> /usr/OV/bin/ovxecho "Router Down Alert for $NVATTR_2" |
> Mail -s "TME10NetView Manager Alert - Router Down" goellnitz_m@ibb.de
>
> Do you have an example for a ruleset or command and does work?
>
> Mit freundlichen Grüßen / Yours Sincerely
> Matthias Goellnitz
>
> IBB GmbH ...an IBM Global Services Company
> Network Services
> -------------------------------------------------
> Phone ++49 (0) 9721-91-4207
> Fax ++49 (0) 9721-91-6188
> mailto:goellnitz_m@ibb.de
> mailto:goell@de.ibm.com
>
> _________________________________________________________________________
>
> NV-L List information (unsubscribing, policies, posting, digest version,
> searchable archives): http://www.tkg.com/nv-l

--
Ray Schafer                   | schafer@tkg.com
The Kernel Group              | Distributed Systems Management
http://www.tkg.com


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

Archive operated by Skills 1st Ltd

See also: The NetView Web