[mrtg] Re: Batch files and variables

Peter P. Benac ppbenac at emacolet.com
Wed Aug 20 23:05:48 MEST 2003


Jason,

    This is a question better answered on the OV Forum, but from the Event
Correlation Menu if you call a script you can pass that script any variable
available from NNM.

    I suggest that you load the Mail::Sendmail Module in to Perl and use it
to send your event message. The Sendmail module will allow you set the sent
time.

    If you want further OV help contact me directly or join OVForum.org or
NMSUsers.org.

Regards,
Pete
----
Peter P. Benac, CCNA
Emacolet Networking Services, Inc
Providing Systems and Network Consulting, Training, Web Hosting Services
Phone: 919-847-1740 or 866-701-2345
Web: http://www.emacolet.com
Need quick reliable Systems or Network Management advice visit
http://www.nmsusers.org

To have principles...
             First have courage.. With principles comes integrity!!!



> -----Original Message-----
> From: mrtg-bounce at list.ee.ethz.ch 
> [mailto:mrtg-bounce at list.ee.ethz.ch] On Behalf Of Jason Humes
> Sent: Wednesday, August 20, 2003 16:44
> To: 'MRTG Mailing List'
> Subject: [mrtg] Batch files and variables
> 
> 
> Hello
> This is not directly related to MRTG but network monitoring 
> in general.  I am trying to write a batch file to send email 
> when a trap is received into HP OpenView and I've got the 
> batch configured properly to send the mail, but I would like 
> to send some of the variables available to HP OpenView in the 
> email alerts.  For example, if I use $x in an HPOpenView 
> action it displays the time which the trap was received...is 
> there any way in which I can use this $x variable in my batch 
> file so that the email would have the time stamp on it.  
> Thanks very much.
> 
>  
> 
> Jason D. Humes
> 
>  
> 
> Applied Computer Solutions Inc.
> 
> 3020 St. Etienne Blvd.
> 
> Windsor, Ontario
> 
> Phone: (519) 944-4300 x211
> 
> Fax    : (519) 944-4247
> 
> Email : jhumes at acs.on.ca <mailto:jhumes at acs.on.ca> 
> 
>  
> 
>  
> 
> **********************************************************************
> 
> Confidentiality Notice: 
> 
> The information contained in this e-mail and any attachments 
> may be legally privileged and confidential. If you are not an 
> intended recipient, you are hereby notified that any 
> dissemination, distribution or copying of this e-mail and any 
> attachments is strictly prohibited. If you received this 
> e-mail in error, please notify the sender and permanently 
> delete the e-mail and any attachments immediately. You should 
> not retain, copy or use this e-mail or any attachment for any 
> purpose, nor disclose all or any part of the contents to any 
> other person. 
> 
> Thank you. 
> 
>  
> 
> 
> 
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive     http://www.ee.ethz.ch/~slist/mrtg
> FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
> 
> 

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list