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.