[Top] [All Lists]

Re: [nv-l] Trapd.conf error

To: nv-l@lists.us.ibm.com
Subject: Re: [nv-l] Trapd.conf error
From: James Shanks <jshanks@us.ibm.com>
Date: Mon, 20 Mar 2006 17:21:22 -0500
Delivery-date: Mon, 20 Mar 2006 22:42:57 +0000
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
In-reply-to: <20060320180006.7330.qmail@web30608.mail.mud.yahoo.com>
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com

I think you are missing the point of Denis' remarks.

There are two trapd.conf files in UNIX and one of them is useless.
The dummy one is in /usr/OV/conf  and the real one is in /usr/OV/conf/C.
If you are examining a trapd.conf, it has to be the one in the "C"
directory.  My advice to everyone is to ignore the old one in /usr/OV/conf
or delete it.  It's only there because a migration script that has been
part of the installation since Version 3 is looking for it.  It will
finally get removed in the next Release.

The error message you got means that there is a "Start of Description"
header , SDESC, on or around line #14185 which is not followed by a
matching "End of Description header, EDESC, a few lines later, in the file
/usr/OV/conf/C/trapd.conf .  In trapd.conf every SDESC must be matched by
an EDESC before the start of the next trap entry.

Don't know why this happened, but I do know that trapd will not (re)load
the file in this condition.  You'll have to edit it manually (make a copy
first!!!) and fix it.  Then issue  "event -e FMTCHG" to get trapd to reload
it.  If you don't see errors in the trapd.log afterward, then you'll know
the syntax is good and the file has been properly loaded.

James Shanks
Level 3 Support  for Tivoli NetView for UNIX and Windows
Tivoli Software / IBM Software Group

             Larry Fagan                                                   
             o.com>                                                     To 
             Sent by:                  nv-l@lists.us.ibm.com               
             owner-nv-l@lists.                                          cc 
                                       Re: [nv-l] Trapd.conf error         
             03/20/2006 01:00                                              
             Please respond to                                             

I checked #14185 in trapd.conf. I don't see anything wrong. This line i
have not even touched since they were added.
Below is the script i used to load:
/usr/OV/bin/addtrap -l trapMetricGreenToYellow -g 6 -s 6 \
   -n rm -i \
   -o A  -c "Status Events" -t 0 \
   -S 1  \
   -D "This trap indicates that a metric on the server has turned
from green to yellow.  tvGreenToYellowMsg is a string describing
the type of alert and the metric that has turned from green to
yellow."  \
   -e Nvserverd_Event  \
   -F '$E $G $S $# args: $*'
/usr/OV/bin/addtrap -l trapMetricToRed -g 6 -s 8 \
   -n rm -i \
   -o A  -c "Status Events" -t 0 \
   -S 1  \
   -D "This trap indicates that a metric on the server has turned
red.  tvToRedMsg is a string describing the type of alert
and the metric that has turned red."  \
   -e Nvserverd_Event  \
   -F '$E $G $S $# args: $*'

Also my trapd.lrf is as below:

Denis Peuziat <dpeuziat@amadeus.com> wrote:

 Can you send a copy of your addtrap script?

 Edit trapd.conf and check what's wrong at or around line #14185
 These messages happen when there's a mistake in a trap entry format.

 but something seems strange, as usually the traps are added to
 /usr/OV/conf/C/trapd.conf and not /usr/OV/conf/trapd.conf....
 What's the content of your /usr/OV/lrf/trapd.lrf file?




 Larry Fagan Subject
 [nv-l] Trapd.conf error

 Please respond to

 Sent by:
 20/03/2006 17:31

 Hello Guys,
 When i try to use addtrap script for metaframe traps, i get following
 as below:

 End of file in /usr/OV/conf/trapd.conf prematurely reached after SDESC
 keyword in line #14185 of /usr/OV/conf/trapd.conf :.

 Any ideas what does this mean.. Also traps does not get added after this
 Any help is as usual appreciated..

 Yahoo! Travel
 Find great deals to the top 10 hottest destinations!

Yahoo! Mail
Use Photomail to share photos without annoying attachments.

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

Archive operated by Skills 1st Ltd

See also: The NetView Web