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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cron job messaging

Status
Not open for further replies.

cmg

MIS
Oct 23, 2000
2
GB
I need to get the agent boxes to send a message to the Message Browser when they go down/come up. Preferably by sending a message from the cron job used to start/stop the box.

Can anyone tell me how to do this please?
 
Try

under hpux

man ovevent

under nt

ovevent -? will give you the options.

Send a test event and then create the associated stuff in NNM to handle it.

From the HPUX manual...
EXAMPLES
The following command sends an OV_Message
(.1.3.6.1.4.1.11.2.17.1.0.58916872) event to node testnode. The event is passed an application ID, an identifier for the source of this event, and the message text.

ovevent testnode .1.3.6.1.4.1.11.2.17.1.0.58916872 .1.3.6.1.4.1.11.2.17.2.1.0 Integer 14 .1.3.6.1.4.1.11.2.17.2.2.0 OctetString "user@host" .1.3.6.1.4.1.11.2.17.2.4.0 OctetString "very important message"

The following command sends the same event to the local management host, changing both the severity and category:

ovevent -s Major -c "Error Events" "" .1.3.6.1.4.1.11.2.17.1.0.58916872 .1.3.6.1.4.1.11.2.17.2.1.0 Integer 14 .1.3.6.1.4.1.11.2.17.2.2.0 OctetString "user@host" .1.3.6.1.4.1.11.2.17.2.4.0 OctetString "major error message"

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top