Hi Jon,
The log entries are definitely coming from my script, but my thought was that the script should not even trigger on an alarm more than one time with my settings. It should trigger when the alarm arrives, and only when the count is less than 2. Since I get a log entry every 5 seconds from my script, that tells me that the AO profile is triggering multiple times on an alarm. Here's a sample of log entries that I created while trying to troubleshoot this. As you can see, the count is 0 both time, but each alarm ID was processed twice within 5 seconds. The logs continue like this until the alarm reaches a higher count. (The count in the log entry is actually the alarm.suppcount field, so it shows 0 here, but the alarm shows 1 count in the UI).
Sep 21 12:53:23:604 [8608] nas: Set Custom3-Custom5: Alarm ID: HM52157069-63740; count: 0
Sep 21 12:53:23:605 [8608] nas: Set Custom3-Custom5: Alarm ID: HM52157069-63554; count: 0
Sep 21 12:53:23:606 [8608] nas: Set Custom3-Custom5: Alarm ID: HM52157069-63403; count: 0
Sep 21 12:53:23:607 [8608] nas: Set Custom3-Custom5: Alarm ID: HM52157069-63513; count: 0
Sep 21 12:53:23:607 [8608] nas: Set Custom3-Custom5: Alarm ID: HM52157069-63817; count: 0
Sep 21 12:53:23:608 [8608] nas: Set Custom3-Custom5: Alarm ID: HM52157069-63901; count: 0
Sep 21 12:53:28:609 [8608] nas: Set Custom3-Custom5: Alarm ID: HM52157069-63740; count: 0
Sep 21 12:53:28:609 [8608] nas: Set Custom3-Custom5: Alarm ID: HM52157069-63554; count: 0
Sep 21 12:53:28:610 [8608] nas: Set Custom3-Custom5: Alarm ID: HM52157069-63403; count: 0
Sep 21 12:53:28:617 [8608] nas: Set Custom3-Custom5: Alarm ID: HM52157069-63513; count: 0
Sep 21 12:53:28:618 [8608] nas: Set Custom3-Custom5: Alarm ID: HM52157069-63817; count: 0
Sep 21 12:53:28:618 [8608] nas: Set Custom3-Custom5: Alarm ID: HM52157069-63901; count: 0
I tried your suggestion of overdue 1s, and that definitely seems to quiet the logs and allow things to run more smoothly. It's unfortunate that I need to have a delay at all as it means I will need to apply a second (larger) delay on processing alerts for automatic ticket creation. I think I can make it work for now, but if you come up with any other suggestions on how to add data to the custom fields as early in the process as possible, I'm ready to listen .
Thanks for the suggestion!