Page 1 of 1

how to trigger an event to send email alert

Posted: Fri Nov 13, 2020 4:43 pm
by CSOST
Hello All

I have a nagios xi version 5.7.3, i added a new email to a group, im trying to send an email alert to a diff mailbox ( in this case slack email)

so when im trying the command echo "Subject: sendmail Nagios Alerts10" | sendmail -f [email protected] and -v [email protected]
i do get an email on both locations, but when i get an alert in nagios its only sending an alert to the Admin and even then sometimes.

is there a way or command to trigger and alert to send email in the gui or thru a command for a service or specific email ?

thank u

Re: how to trigger an event to send email alert

Posted: Mon Nov 16, 2020 4:23 pm
by tgriep
Login to the XI interface and go to the Admin > Email Settings menu.
Check the Logging: box to enable the phpmailer.log.

Then to send a Notification, go to the Home screen in the XI interface and select a Host or Service that the users are configured to receive notification emails.
Go to the Advanced Tab and click in the Send Custom Notification link and Force it, Broadcast it and put in a comment and submit it.

Then look in the following log file to see what sort of errors are when sending to the slack email account.

Code: Select all

/usr/local/nagiosxi/tmp/phpmailer.log

Re: how to trigger an event to send email alert

Posted: Mon Nov 16, 2020 4:25 pm
by cdienger
You can use the 'Submit passive check result' to trigger a state change which should trigger a notification. There is also the 'Send custom notification' command which can send notifications without a state change. Both are found under the Advanced tab of a service.

Re: how to trigger an event to send email alert

Posted: Tue Nov 17, 2020 1:29 pm
by CSOST
thank you very much

Re: how to trigger an event to send email alert

Posted: Tue Nov 17, 2020 5:10 pm
by scottwilkerson
CSOST wrote:thank you very much
Locking thread