nv-l
[Top] [All Lists]

RE: [NV-L] ruleset

To: jeff@zawacorp.com, "Tivoli NetView Discussions" <nv-l@lists.ca.ibm.com>
Subject: RE: [NV-L] ruleset
From: "Evans, Bill" <Bill.Evans@hq.doe.gov>
Date: Tue, 8 May 2007 18:20:25 -0400
Cc:
Delivery-date: Tue, 08 May 2007 23:29:57 +0100
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
In-reply-to: <61857.32.97.110.142.1178660302.squirrel@webmail.zawacorp.com>
List-help: <mailto:nv-l-request@lists.ca.ibm.com?subject=help>
List-id: Tivoli NetView Discussions <nv-l.lists.ca.ibm.com>
List-post: <mailto:nv-l@lists.ca.ibm.com>
List-subscribe: <http://lists.ca.ibm.com/mailman/listinfo/nv-l>, <mailto:nv-l-request@lists.ca.ibm.com?subject=subscribe>
List-unsubscribe: <http://lists.ca.ibm.com/mailman/listinfo/nv-l>, <mailto:nv-l-request@lists.ca.ibm.com?subject=unsubscribe>
References: <1A5AB46AA116114FB0EF78BBE5AA14A1038A0E84@CP2K3TLCEMLV1.capitol.local> <1D99739B79BF7744BF8927B8F2274CA201737082@HQGTNEX5.doe.local> <61857.32.97.110.142.1178660302.squirrel@webmail.zawacorp.com>
Reply-to: Tivoli NetView Discussions <nv-l@lists.ca.ibm.com>
Sender: nv-l-bounces@lists.ca.ibm.com
Thread-index: AceRuzkJmtYDw6xsQ4WKfoNHOIXPIgAAU5YA
Thread-topic: [NV-L] ruleset
Excellent point.  We definitely don't want to call too many scripts; they're 
costly.  

My assumption was that the service outages were rare and all the script would 
do was test the time and send the message.  I had also assumed that a script 
would already be used to send the e-mail.  

If you know how to send an e-mail from a ruleset without using the Action node 
I would appreciate knowing the technique.  I can imagine setting global 
variables and picking them up from a Cron task but I think there would have to 
be a lot of e-mail to warrant that solution.  Any others? 

Bill Evans
Home: 570-639-5691
Cell:    570-852-9549


-----Original Message-----
From: nv-l-bounces@lists.ca.ibm.com [mailto:nv-l-bounces@lists.ca.ibm.com] On 
Behalf Of Jeff Kurzawa
Sent: Tuesday, May 08, 2007 5:38 PM
To: Tivoli NetView Discussions
Subject: RE: [NV-L] ruleset

This is only ok if it is a small number of events.  If it is a large
number of events this way could cause problems with system resources (I
had this issue).

I did this by using a cronjob that would run before and after the
maintence window and it would simply
1 - add and remove the rule in question into /usr/OV/conf/ESE.automation
2 - ovstop nvcorrd;
3 - ovstart.

Jeff


> Use an Action node to execute a shell script and check the time before
> sending the e-mail.  It doesn't matter if the rule fires as long as the
> e-mail is not sent.  For example, if you do maintenance between two and
> three in the AM:
>
>     Hour=`date +%H` # hour as 00-24
>     if [ ${Hour} -eq 2 ]
>        then exit
>        else echo "Message" | mail Catalina.Martinez@work.com
>        fi
>
> Bill Evans
>
> -----Original Message-----
> From: nv-l-bounces@lists.ca.ibm.com
> [mailto:nv-l-bounces@lists.ca.ibm.com] On Behalf Of Catalina Martinez
> Sent: Thursday, May 03, 2007 12:47 PM
> To: Tivoli NetView Discussions
> Subject: [NV-L] ruleset
>
> Hello,
>
>
>
> How do I set up a ruleset not to run between a certain time (during in a
> backups).
>
>
>
> I have a ruleset that will forward an email when servmon detects a
> service goes down. Between midnight-4am, we have backup running and of
> course most of the services are shutdown.. I don't want to get emails
> during that time.
>
>
>
> Thanks
>
> Catalina
>
> AIX 5.2 Netview 7.1.5
>
>
>
> _______________________________________________
> NV-L mailing list
> NV-L@lists.ca.ibm.com
> Unsubscribe:NV-L-leave@lists.ca.ibm.com
> http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to
> internal IBM'ers only)
>
>


_______________________________________________
NV-L mailing list
NV-L@lists.ca.ibm.com
Unsubscribe:NV-L-leave@lists.ca.ibm.com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to 
internal IBM'ers only)


No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.467 / Virus Database: 269.6.5/793 - Release Date: 5/7/2007 2:55 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.467 / Virus Database: 269.6.5/793 - Release Date: 5/7/2007 2:55 PM
 


_______________________________________________
NV-L mailing list
NV-L@lists.ca.ibm.com
Unsubscribe:NV-L-leave@lists.ca.ibm.com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to 
internal IBM'ers only)

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

Archive operated by Skills 1st Ltd

See also: The NetView Web