I created a new alert and it is not emailing out when triggered. I have alerts that are working properly and sending emails. I then tested with the reboot rule from the collection. The original reboot rule I had sent and email but the new reboot rule did not. Under Alerts - Notifications, it shows the alert being triggered.
When I run the test-alert script the email gets sent out. But with the debug it shows the following.
Attempting to email Device test.localhost recovered from Device rebooted to: [email protected]
OKSQL[SELECT devices
.*, location
, lat
, lng
FROM devices
LEFT JOIN locations ON devices
.location_id=locations
.id
WHERE device_id
= ? [1245] 0.66ms]
SQL[SELECT * FROM devices_attribs WHERE device_id
= ? [1245] 0.5ms]
SQL[SELECT * FROM vrf_lite_cisco
WHERE device_id
= ? [1245] 0.43ms]
SQL[INSERT IGNORE INTO eventlog
(device_id
,reference
,type
,datetime
,severity
,message
,username
) VALUES (:device_id,:reference,:type,:datetime,:severity,:message,:username) {“device_id”:1245,“reference”:null,“type”:“alert”,“datetime”:“2019-03-12 09:40:58”,“severity”:1,“message”:“Issued recovery for rule ‘Device rebooted’ to transport ‘mail’”,“username”:""} 1.6ms]
:: Transport mail => Attempting to email Device test.localhost recovered from Device rebooted to: email.email.com; 0
ERROR: Invalid address: (to): 0
SQL[INSERT IGNORE INTO eventlog
(device_id
,reference
,type
,datetime
,severity
,message
,username
) VALUES (:device_id,:reference,:type,:datetime,:severity,:message,:username) {“device_id”:1245,“reference”:null,“type”:“error”,“datetime”:“2019-03-12 09:40:58”,“severity”:5,“message”:“Could not issue recovery for rule ‘Device rebooted’ to transport ‘mail’ Error: Invalid address: (to): 0”,“username”:""} 0.76ms]