Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Openview E-mail Notifications 1

Status
Not open for further replies.

nwjerome

Technical User
Mar 15, 2000
1
US
I'm fairly new to Openview and was wondering how I could generate e-mail notifications for specific alarms?&nbsp;&nbsp;I've looked at Telamon's TelAlert product, but it's cost and complicated setup doesn't suit our environment.<br><br>Thx
 
I'm new to OpenView myself. I've been playing with a vbscript (which I really don't know too much about either), running on NT. It uses a freebie product called &quot;mailto&quot;. I don't know where to find it on the web, you'll have to look around. The guy who dumped OpenView on me installed it and left no notes. Here's the script I'm playing around with, you might get it to work with other mail packages. It is still something I'm toying with, but I do think it can be made to work better, with a few bells and whistles, by testing the parameters passed to it.

' VBSCRIPT TO SEND MAIL FROM HP OPENVIEW
'
' SET DEFAULTS AND OTHER VARIABLES
exec=&quot;D:\openview\contrib\custom_utils\mailto\mailto.exe&quot;
from=&quot; -U OpenView&quot;
host=&quot; -H tfsgate.company.com&quot;
subj=&quot; -S HP_OpenView_Alert&quot;
who=&quot; -D jpapa@company.com&quot;
'
' GET COMMAND LINE ARGUMENTS
Set objArgs = Wscript.Arguments
if WScript.Arguments.Count > 0 then
msg=&quot; -M &quot; & objArgs.Item(0)
msg1=objArgs.Item(0)
else
msg=&quot; -M UNKNOWN_ERROR&quot;
end if
'
'
Dim MyObj
Set MyObj=CreateObject(&quot;WScript.Shell&quot;)
'
' SET UP MAILING ADDRESSES
if msg1 = &quot;ARGUMENT1&quot; then
who=who &&quot;;beeperjp@company.com&quot;
end if
'
' TEST IF &quot;MAILTO&quot; PROGRAM EXISTS
Dim fso
Set fso = CreateObject(&quot;Scripting.FileSystemObject&quot;)
If (fso.FileExists(exec)) Then
StrMailProg=exec & from & who & host & subj & msg
MyObj.Run(StrMailProg)
Else
Wscript.Echo subj & msg
Wscript.Echo who
End If

 
Can anyone point me to a URL to get a copy of the mailto.exe file? I have spent an entire day looking for it but I cannot find this command-line mailer.
 
If you look in the /opt/OV/contrib directory (on UNIX systems, on NT search for the &quot;contrib&quot; directory). In it you will find a script you can run as an automatic action to send e-mails for events.
 
Nfaber,

I have the NT version of HPOV6.2 In the /contrib directory, I have been unable to locate the automatic action you refer to in order to send automatic emails for events.

Thanks,

Tony
 
I am new for the HP OpenView as well. I use the HP Openveiw to monitor the network node and it is the Network Node Manager version 6.1 then I would like to know that when alarm comes out, has it any sounds? Please tell me and if it is, how I can set it to have loud sound. For another one, how can I send the alarm to the e-mail address and pager to notify someone to look at the alarm suddenly? Please help me. I have no idea about those things. Thank you very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top