Solved

Creating a script to send email notifications for HP Openview Node outages

Posted on 2004-08-31
4
446 Views
Last Modified: 2013-12-26
Hello, everyone...

I need a sample script for Unix, to send email notifications to administrators when a node event is down for more than 5 minutes on HP Openview.

I would like the administrator to  receive an email notiftication when HP Openview displays a  node down event, kick off a script that delays for 5 minuets then pings the node,  If the node is up then exit.  If the node is still down then do a sendmail to that user.  


 I would like this script to pass the name of the node to the script so that it knows what device to ping after the 5 minute delay.

Any help would be greatly appreciated.

0
Comment
Question by:Menace212
  • 2
  • 2
4 Comments
 
LVL 48

Accepted Solution

by:
Tintin earned 250 total points
ID: 11947332

#!/bin/sh
NODE=$1
sleep 300
ping $NODE >/dev/null 2>&1 || mail -s "$NODE down" some@address
0
 

Author Comment

by:Menace212
ID: 11952429
I would I implement this in Openview, so it can use the script. Hey tintin what is $1, does it represent the router(node) in Openview...

thanks tintin you've been alot of help over the last couple of months
0
 
LVL 48

Expert Comment

by:Tintin
ID: 11961778
I haven't used Openview for many years, but I assume you can create a call to the script with the node as the first parameter (that's what $1 will be set to).
0
 

Author Comment

by:Menace212
ID: 11963095
thks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Include multiple hostnames in this command? 3 53
Host to IP 7 76
not able to insert into temp table 68 157
ShiftLeft challenge 21 76
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now