That's not how test_alert.php works:
USAGE:
test_alert.php -a alert_entry_id [-d debug]
test_alert.php -c contact_id [-r] [-d debug]
The -a argument should be an alert_entry_id (an individual alert), or you can use -c where the argument should be a contact_id. You can find these IDs in the UI when you visit the pages for the entries they refer to.
Adam.
From: observium observium-bounces@observium.org On Behalf Of Joe Brouillette via observium Sent: 18 May 2022 19:25 To: Observium observium@observium.org Cc: Joe Brouillette jobee@linktransit.com Subject: [Observium] Unable to email
I had to redo my Observium installation and at this time I'm unable to receive any alerts. I tried testing postfix and that works:
sudo echo "This is the body of the email" | mail -s "This is the subject line" userX@domain.com mailto:userX@domain.com
When I try it with Observium I get nothing:
userX@Observium2:/opt/observium$ ./test_alert.php -a userx@domain.com mailto:userx@domain.com
Observium 22.5.12000
Test Alert Notification
userX@Observium2:
I've Googled this and I found serveral hits to change the PHP file, but I understood that we shouldn't be "tweaking" that file. Any ideas on what I've missed?
Thanks,
Joe Brouillette
IT Specialist
Link Transit
509.664.7643
jobee@linktransit.com mailto:jobee@linktransit.com
"Any sufficiently advanced science looks like magic." - Arthur C. Clarke
"All magic comes with a price." - Rumplestiltskin