Ran into something similar. This is from memory. My test box is overwhelmed
at the moment so cannot verify. IRRC, $A is the name of the node that sent the
event. For a Netview event, that's the Netview server; For an externally
generated trap, it's the hostname of the device issuing the trap. As James
suggested, use $2 as appropriate, or $NVATTR_2 in a script called by a ruleset.
Karin
-----Original Message-----
From: Kevin C Li [mailto:kevinli@us.ibm.com]
Sent: Friday, October 10, 2003 1:40 PM
To: nv-l@lists.us.ibm.com
Subject: Re: [nv-l] Configuration of Event Threshold
I've seen this kind of problem at least a couple of times. One time when I
saw this I traced it to a name resolution problem. I don't remember the
exact details anymore, but the situation was something like this: NetView
had the hostname of the agent in its database, but the DNS server was down
and NetView couldn't resolve it back to an IP address. As a result,
NetView substituted its own hostname/IP in the agent address field. This
was with NetView 5.x on AIX.
There has been one other time when I've seen this but wasn't able to find a
cause.
Kevin Li
IBM Global Services
Peter.Ingleson@gerlingn
cm.com To:
nv-l@lists.us.ibm.com
Sent by: cc:
owner-nv-l-digest@lists Subject: [nv-l]
Configuration of Event Threshold
.us.ibm.com
10/10/2003 08:52 AM
Please respond to nv-l
List,
I have AIX5.1 with NV7.1.3,
I'm using threshold checking to monitoring errors on an array of cisco
routers. This works correctly and re-arms the monitor when the condition
meets, however I seem to be having a slight problem with trap customisation
(IBM_NVDCOL_EV).
In the pop up notification I have the following
$A $3 $4 $+1 which works correctly, ie $A displays the hostname of the
device with the errors, a router.
In command for automatic action I have the following
/home/$path/script.sh $A $3 $4 $+1
But the value in $A is the hostname of my Netview box and the not the
monitored device.
Any thoughts would be appreciated.
Regards
Peter
------------------------------------------------------------------------------------------------------------
This message is intended for the addressee or its representative only.
Any form of unauthorized use, publication, reproduction, copying or
disclosure of the content of this e-mail is not permitted. If you are
not the intended recipient of this e-mail message and its contents,
please notify the sender immediately and delete this message and
all its attachments subsequently.
|