NNMi Payload filter to exclude some traps before running a script (223 Views)
Reply
Advisor
HHirt
Posts: 29
Registered: ‎06-11-2008
Message 1 of 2 (223 Views)

NNMi Payload filter to exclude some traps before running a script

Dear all,

 

I would like to get rid of some traps containing unrelevant information prior to execute an action that launch a script.

 

I thought that the Payload filter on the Action tab would fits my needs...

 

Unfortunately I cannot find the good combo to have it done,

 

Basically I would like to stop the script to be executed if the variable 5 ($5) contains the word "login", but if not it has to run as usual.

 

I tried several options, but all is executing the script...

 

Any help would be appreciated,

 

Thanks

Please use plain text.
Honored Contributor
ramesh9
Posts: 959
Registered: ‎04-19-2011
Message 2 of 2 (197 Views)

Re: NNMi Payload filter to exclude some traps before running a script

Dear Hirt

 

If you are trying to run a script then run the script under "Actions" tab in Incident configuration.

 

Please try to do following in your script ( Posted example contains references to Unix shell script )

 

if [ $5 != "login" ]; then

....Do your actions here

fi

 

 

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation