Custom Events can't trigger bash scripts attached to notification

Hello OpenNMS family,

I have been trying to run some scripts during the creation of an event. ActionD in that case works fine but I need alarm id information which is not possible to parse it through the actiond definition.

So far I was able to define my events, notification paths as well as notification commands. I was able able to run scripts with original OpenNMS events as node down/up but my events which are custom snmp trap definitions can’t initiate the script. For the side note, my permissions are fine and scripts are executable.

Here are my configs on notificationCommand and notification definition:

<notification name="test-general" status="on" writeable="yes">
      <uei>uei.opennms.org/Company/Clients/Clientunit</uei>
      <rule>(IPADDR != '0.0.0.0')</rule>
      <destinationPath>pytest-general</destinationPath>
      <text-message>General trap test</text-message>
      <subject>Notice #%noticeid%</subject>
      <numeric-message>111-%noticeid%</numeric-message>
   </notification>
   <command binary="true">
      <name>test-trap-general</name>
      <execute>/opt/opennms/bin/test-trap-general.sh</execute>
      <comment>python test</comment>
      <argument streamed="false">
         <switch>-subject</switch>
      </argument>
      <argument streamed="false">
         <switch>-service</switch>
      </argument>
   </command>

OpenNMS Version: 28.0.1
Java Version: 11.0.12 Red Hat, Inc.
Java Virtual Machine:|11.0.12+7-LTS Red Hat, Inc.
Operating System: Linux 4.18.0-305.el8.x86_64 (amd64)
OSGi Container: Apache Karaf 4.2.11

Thank you!

-Nihat