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

how to set a batch or 2 commands in notification

Status
Not open for further replies.

RobinPiepjohn

IS-IT--Management
May 13, 2002
19
DE
Hi
I want to get a notifcation for defined Legato Warnings.
First I want to get a mail in case of warning:
Smtpmail -s Legato_Warning - h hostname mailaddress
this command I includet into Command of the notification window legato warning.
Now I want to include another command to sent a message to our control monitor.
This testet command I includet into a batch, because I don't know how to add a second command into command Field.
The batch I includet into the commandfield.
But nothing happened..The batch wasn't executed while warnings
How can I realized this feature to do 2 commands while warning?

Thanks
 
Hi!

Not sure this will help but you can creat a costume notification that triggers on the same warnings as youre mail notification.

/Ulf
 
Hi,
You can create a script with all the commands that you want.
Later, you must specified this script name in the field: Customize => Notifications => Actions.
 
Hi antonio3633

I tried your idea, but what I have to include in the action field?
i filled in only the name of the batch and.... nothing happened.

What is wrong??
Robin
 
Hi Robin

In the Actions field you must specified the complete path, ej:
/usr/sbin/nsr/user_script
Previously, verify the correct execution of your script and its permits

Antonio
 
If looked for the tip with the batch file. But I didn't found the action field. In which networker ressource is this ???

Pls help me a little bit!
 
just forget it !!!!
I have to search my glasses

8:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top