nv-l
[Top] [All Lists]

RE: Ruleset fo paging certain nodes afterhours

To: nv-l@lists.tivoli.com
Subject: RE: Ruleset fo paging certain nodes afterhours
From: "James Shanks" <SHANKS@us.tivoli.com>
Date: Thu, 28 Jun 2001 09:08:28 -0400
I just did a quick test on my system and in-line actions execute only once
per event, using NetView 6.0.2
I suggest you call Support and get some help with your ruleset.  I am
having hard time following the logic of what you have posted, and I have
never seen an in-line action execute more than once,  so I don't know what
else to say.

You might have your script do something like this in addition to whatever
else it does so you have some kind of independent check on what is going
on:
     echo `date`  >>  /usr/OV/log/inline.out
     echo "hostname is "  $NVATTR_2   >>  /usr/OV/log/inline.out
     echo $RANDOM >>   /usr/OV/log/inline.out

This would give you the date/time stamp, followed by the hostname that the
Node Down is about, followed by a random number  as a separator, in an
output file, so that you could see what trap was driving the script at the
time it executed.   The date/time would allow you to go look at the
trapd.log and verify what trap drove the script.  I offer this because I
don't think you are seeing what you think you are seeing in the nvcorrd
logs.  I could be wrong, of course, but I have never seen anything like
what you describe.

James Shanks
Team Leader, Level 3 Support
Tivoli NetView for UNIX and NT


"Chan, Jack" <jack.chan@nz.unisys.com>@tkg.com on 06/27/2001 10:16:26 PM

Please respond to IBM NetView Discussion <nv-l@tkg.com>

Sent by:  owner-nv-l@tkg.com


To:   IBM NetView Discussion <nv-l@tkg.com>
cc:
Subject:  RE: [NV-L] Ruleset fo paging certain nodes afterhours



Hi Brain,

Do you have any idea why it is doing that??

I switched on logging with "nvcdebug -d rules/all", I can just see the
script is being run twice (in nvcorrd.alog), if I have another action
branch
off node down trap, it only executes once. I.e.

Event Stream-->node down trap--> Inline Action(execute
twice)-->Action(twice)--> Forward
                             \--> Action (execute once)--> Foward


I am reluctant to put the threshold node in the rule to filter the SAME
event, just in case node down happens for two DIFFERENT nodes at the same
time(same sec). Will that happen anyway?

thanks, Jack.

-----Original Message-----
From: brian.backer@electrolux.com [mailto:brian.backer@electrolux.com]
Sent: Thursday, 28 June 2001 12:48 a.m.
To: jack.chan@nz.unisys.com
Subject: RE: [NV-L] Ruleset fo paging certain nodes afterhours



Jack,

I get the same sorta thing.  I just put a threshold in there so that would
expect two before passing one of them..
dunno if this is right or not, but it does work for me...
bjb






                    "Davis, Donald"

                    <donald.davis@firstcit        To:     "'IBM NetView
Discussion'" <nv-l@tkg.com>
                    izens.com>                    cc:

                    Sent by:                      Subject:     RE: [NV-L]
Ruleset fo paging certain nodes afterhours
                    owner-nv-l@tkg.com





                    06/27/2001 08:29 AM

                    Please respond to IBM

                    NetView Discussion









Jack,
I assume that you are using ESE.automation to execute this rule....
You have a configuration problem. I have NEVER heard of this behavior!
Here is what I would check:
1. Check for duplicate entrys in /usr/OV/conf/ESE.automation
2. Did you import the ruleset into another ruleset being executed by
ESE.automation?
3. Check the forwardall.rs rule... did you put it in there for testing and
forget to remove it?
4. Is there a loop in your script?
5. Is anything else calling your script?
6. Is there a dynamic workspace with the rule applied?
7. Did you put it in your ruleset used to forward to TEC?

Best regards,
Don Davis


-----Original Message-----
From: Chan, Jack [mailto:jack.chan@nz.unisys.com]
Sent: Wednesday, June 27, 2001 12:22 AM
To: 'IBM NetView Discussion'
Subject: [NV-L] Ruleset fo paging certain nodes afterhours


Hi List,

I have a rule set as follows:

Event Stream --> node down trap --> Inline Action --> Action --> Forward

where Inline Action runs a script to check current time and hostname of
node
down,
then Action pages to a pager.

THE PROBELM: the Inline Action script is running TWICE, once straight after
another, then the Action (paging) runs twice as well. I do not know why!?

The reason why I have Inline Action is I only want to support certain nodes
for afterhours. So I run a script to check a hostname file and the current
time.

I have checked:
1. Options --> event configuration
2. My rule by having a branch off 'node down trap', that only executes
once.

Any ideas??

Thanks.

Jack.






_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l

----------------------------------------------------------------------------

--

This electronic mail and any files transmitted with it are confidential and
are intended solely for the use of individual or entity to whom they are
addressed. If you are not the intended recipient or the person responsible
for delivering the electronic mail to the intended recipient, be advised
that you have received this electronic mail in error and that any use,
dissemination, forwarding, printing, or copying of this electronic mail is
strictly prohibited. If you have received this electronic mail in error,
please immediately notify the sender by return mail.

============================================================================

==


_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l






***********************************************************************
This e-mail and any attachments may contain information which is
confidential, privileged, proprietary or otherwise protected by law.
The information is solely intended for the named addressee (or a person
responsible for delivering it to the addressee).  If you are not the
intended recipient of this message, you are not authorized to read,
print, retain, copy or disseminate this message or any part of it.
If you have received this e-mail in error, please notify the sender
immediately by return e-mail and delete it from your computer.
***********************************************************************
_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l


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

Archive operated by Skills 1st Ltd

See also: The NetView Web