how to trigger an event to send email alert

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
CSOST
Posts: 11
Joined: Tue Apr 30, 2019 11:31 am

how to trigger an event to send email alert

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: how to trigger an event to send email alert

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: how to trigger an event to send email alert

Post 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.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
CSOST
Posts: 11
Joined: Tue Apr 30, 2019 11:31 am

Re: how to trigger an event to send email alert

Post by CSOST »

thank you very much
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: how to trigger an event to send email alert

Post by scottwilkerson »

CSOST wrote:thank you very much
Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked