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
how to trigger an event to send email alert
Re: how to trigger an event to send email alert
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.
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.logBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: how to trigger an event to send email alert
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.
Re: how to trigger an event to send email alert
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
Locking threadCSOST wrote:thank you very much