RT::Extension::Nagios not working in RT 4.4.3

I’ve installed this plugin in RT 4.4.3 per the README. The only issue I had on install was when running ‘make initdb’ it couldn’t locate initialdata to install the Scrips and ScripActions, so I ran the perl command to do rt-setup-database.

I have verified that the Scrip and ScripAction exist in the database. I have a queue called nagios and I have verified that the Scrip ‘Update Nagios Tickets’ is enabled for that queue and set to On Create.

My config in RT_SiteConfig.pm looks like this:

Plugin(‘RT::Extension::Nagios’);
Set($NagiosSearchAllQueues, 1 );

When the nagios e-mails come in, tickets are created, but they are not closed when the Recovery e-mail is received, instead another new ticket is created.

From syslog, it doesn’t appear that that the scrip ‘Update Nagios Tickets’ is ever run. Here is the log from the creation of Ticket #56, a recovery ticket with subject: ** RECOVERY alert - jss/unattended upgrade reboot required is OK **

Aug 17 09:29:58 tracker postfix/smtpd[19919]: connect from caledonmx.caledoncard.com[192.154.13.43]
Aug 17 09:29:58 tracker postfix/smtpd[19919]: 91DC84000F: client=caledonmx.caledoncard.com[192.154.13.43]
Aug 17 09:29:58 tracker postfix/cleanup[19922]: 91DC84000F: message-id=20180817132939.704EE7C05C0@alien
Aug 17 09:29:58 tracker postfix/qmgr[32572]: 91DC84000F: from=nagios@alien, size=1623, nrcpt=1 (queue active)
Aug 17 09:29:58 tracker postfix/smtpd[19919]: disconnect from caledonmx.caledoncard.com[192.154.13.43] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
Aug 17 09:30:00 tracker RT: [19896] rt-4.4.3-19896-1534512600-901.56-8-0@example.com #56/2054 - Scrip 8 On Create Notify Owner and AdminCcs
Aug 17 09:30:00 tracker RT: [19896] rt-4.4.3-19896-1534512600-901.56-8-0@example.com sent Bcc: bhazledine@bluepay.ca, smacdougall@bluepay.ca
Aug 17 09:30:00 tracker postfix/pickup[19899]: B76EA400CD: uid=33 from=
Aug 17 09:30:00 tracker postfix/cleanup[19922]: B76EA400CD: message-id=rt-4.4.3-19896-1534512600-901.56-8-0@example.com
Aug 17 09:30:00 tracker postfix/qmgr[32572]: B76EA400CD: from=www-data@tracker.bluepay.ca, size=3412, nrcpt=2 (queue active)
Aug 17 09:30:00 tracker RT: [19896] rt-4.4.3-19896-1534512600-1300.56-9-0@example.com #56/2054 - Scrip 9 On Create Notify Ccs
Aug 17 09:30:00 tracker RT: [19896] rt-4.4.3-19896-1534512600-1300.56-9-0@example.com No recipients found. Not sending.
Aug 17 09:30:00 tracker postfix/smtp[19927]: B76EA400CD: to=bhazledine@bluepay.ca, relay=mail2.caledoncard.com[192.154.13.43]:25, delay=0.07, delays=0.02/0.03/0.01/0.01, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as CA05E896966)
Aug 17 09:30:00 tracker postfix/smtp[19927]: B76EA400CD: to=smacdougall@bluepay.ca, relay=mail2.caledoncard.com[192.154.13.43]:25, delay=0.07, delays=0.02/0.03/0.01/0.01, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as CA05E896966)
Aug 17 09:30:00 tracker postfix/qmgr[32572]: B76EA400CD: removed
Aug 17 09:30:00 tracker RT: [19896] rt-4.4.3-19896-1534512600-694.56-10-0@example.com #56/2054 - Scrip 10 On Create Notify Other Recipients
Aug 17 09:30:00 tracker RT: [19896] rt-4.4.3-19896-1534512600-694.56-10-0@example.com No recipients found. Not sending.
Aug 17 09:30:00 tracker RT: [19896] Ticket 56 created in queue ‘nagios’ by nagios
Aug 17 09:30:01 tracker postfix/local[19923]: 91DC84000F: to=rt-nagios@tracker.bluepay.ca, relay=local, delay=2.3, delays=0.05/0.02/0/2.2, dsn=2.0.0, status=sent (delivered to command: /opt/rt4/bin/rt-mailgate --queue nagios --action correspond --no-verify-ssl --url https://tracker.bluepay.ca)

I see one ‘On Create’ scrip that ran to send out e-mails to the Owner and Admin CCs, but nothing to update nagios tickets.