4 Replies Latest reply on Jan 3, 2018 8:08 AM by Roland Pocek

    acknowledge events from list slot of another event

    Roland Pocek

      hi,

       

      i have an event generated that has a LIST_OF STRING slot of an event containing event handles of other existing events. i need a rule that walks through that event handles and then acknowledges the corresponding events.

       

      i tried a listwalk to get each event handle of the list slot and then execute a script that does a mposter with the event handle to acknowledge the event or using perform (would be nicer) to acknowledge the events.

       

      RB_RESULT;

      adapter_host='';

      administrator='Unnessecary';

      Bereitschaft='Team1';

      Count=4;

      date=20180102144114.000000+060;

      date_reception=1514900474;

      duration=0;

      event_handle=93029;

      Events=['93025','93024','93023','93023'];

       

      execute RB_Monitoring_Acknowledge:

      RB_RESULT ($RBS)

      when $RBS.status == ACK

      {

        $E=listwalk($RBS.Events);

        #execute($E,mc_Acknowledge,[int($E)],NO);

        perform($E,Acknowledge,[],$RETCODE,$RETTEXT);

      }

      END

       

      but both do generate errors during compiling

       

      execute:

       

      BMC_TS-IMC120094E: Error in file NTT\RB_Rules.mrl, line 81 column 3

      BMC_TS-IMC120183E: type error in function call

      BMC_TS-IMC120017E: Number of error(s): 1

      BMC_TS-IMC120015E: Total number of error(s): 1

      BMC_TS-IMC120012F: Compilation failed

       

      perform:

       

      BMC_TS-IMC120090E: Error in file NTT\RB_Rules.mrl, line 82 column 14

      BMC_TS-IMC120111E: Unknown action Acknowledge

      BMC_TS-IMC120017E: Number of error(s): 1

      BMC_TS-IMC120015E: Total number of error(s): 1

      BMC_TS-IMC120012F: Compilation failed

       

      any ideas?

      cheers

      rop