nv-l
[Top] [All Lists]

Re: [nv-l] Re: [tme10] Sending events to TEC using postemsg

To: nv-l@lists.us.ibm.com
Subject: Re: [nv-l] Re: [tme10] Sending events to TEC using postemsg
From: James Shanks <jshanks@us.ibm.com>
Date: Thu, 28 Jul 2005 18:34:07 -0400
Delivery-date: Thu, 28 Jul 2005 23:37:28 +0100
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com
Sensitivity:
A dual-purpose ruleset will work but there have been reports of poor
performance, so you'll need careful planning and monitoring here.

You'll want that ruleset to terminate in an off-line action, not an in-line
one, for that postemsg script.  With an in-line action, nvcorrd will wait
for your script containing the postemsg to complete before processing the
next event -- a very good way to bog everything down.  On the other hand, a
regular "off-line" action is passed to actionsvr, who can run multiple
postemsg scripts by forking copies of himself, so that nvcorrd does not
wait.  That's actionsvr's purpose in life.  In-line actions are for quick
decisions made by nvcorrd himself, like checking environment variables, not
for system calls which would cause him to wait.   If you're getting two
events per second on the average and every time you send to this alternate
TEC it slows event processing by 15 seconds, you'll get behind by the end
of the day and never catch up.


One more things about this.  The TEC guys warn about mixing postemsg and
the internal adapter without some forethought.  They can interfere with one
another.  Make sure you specify a unique BufEvtPath for both or each
process will try to control the event cache and very likely step  on each
other's toes.

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


                                                                           
             "Jon Austin"                                                  
             <AUSTINJ@email.ch                                             
             op.edu>                                                    To 
             Sent by:                                                      
             owner-nv-l@lists.         <nv-l@lists.us.ibm.com>,            
             us.ibm.com                <tme10@lists.us.ibm.com>,           
                                       <mariobehring@yahoo.com>            
                                                                        cc 
             07/28/05 04:29 PM                                             
                                                                           
                                                                           
             Please respond to                                             
                   nv-l                                                    
                                                                   Subject 
                                       [nv-l] Re: [tme10] Sending events   
                                       to TEC using postemsg               
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Sure. In the Netview ruleset, you either have two 'ends' to your rules
or one smart end..

example:
for TEC Server1 = use nvserverd configuration, and for those event have
then go through the ruleset and complete with 'forward'
for TEC Server2 = write a shell script that parses variables from
environment (or arguments) and calls the postemsg). These events go
through the ruleset and complete with 'inline action' that calls the
script.

The 'smart end' end would be use an 'inline action' and coding your
shell script to figure out which server to send to.



Jon Austin
Tivoli/Unix Administrator
Information Systems
Children's Hospital of Philadelphia
austinj@email.chop.edu

>>> mariobehring@yahoo.com 7/28/2005 3:39 PM >>>
Hi list,

I have to send events to two different TEC servers from a single
NetView
server. Different parts of the environment will be sending events to
different TEC Servers. I am building a netview ruleset to handle this.
I
can use the NetView bundle integration with TEC to send to one of the
servers, but to send to the other one I will have to use the postemsg
(or
postzmsg on TEC 3.9) to send the events.

No problem with the NV-TEC bundle integration, using the nvserverd
daemon,
but I am having a hard time with the postemsg command...how can I
actually
fill all the TEC slots and fields (hostname, adapter_host, severity,
etc.)
using the postemsg ?

Thanks in advance.

Mario



____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs





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

Archive operated by Skills 1st Ltd

See also: The NetView Web