cant configure nagios to sent notications to my email

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
eranm1985
Posts: 3
Joined: Mon Apr 06, 2020 8:18 am

cant configure nagios to sent notications to my email

Post by eranm1985 »

Hi

i have nagios 4.4.5 core on Centos8- everything working perfect! super cool monitoring system! :)

the problem that i dont know where to put my send from mail and where to put the receive mailbox

i tried with postfix\sendmail\mailx etc- but nothing work for me

i just need to know where to put the right configuration

the email that will send the notification: smtp.012.net.il
the mailbox i want to recive the notification is : sc@itcare.co.il

the sender namd- dosent metter nagiosadmin\nagiosmonitor\etc

please help me with that issue

thanks a lot!!!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: cant configure nagios to sent notications to my email

Post by benjaminsmith »

Hello @eranm1985,
i have nagios 4.4.5 core on Centos8- everything working perfect! super cool monitoring system! :)
Nice! I haven't heard of too many users using Cent 8 with Nagios Core, thanks for the feedback.

It sounds like you want to setup postfix to relay to an external SMTP server? If so, check out the guide(s) below.

Configure Postfix to Relay Mail to an External SMTP Server on CentOS 7

Setup Email Notifications in Nagios Core
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
eranm1985
Posts: 3
Joined: Mon Apr 06, 2020 8:18 am

Re: cant configure nagios to sent notications to my email

Post by eranm1985 »

Hi

thanks for the fast reply.

I tired install Nagios on ubuntu 18.04 and I installed and configure ssmtp

after I configure the file- I tried to sent mail from it- and it Succeeded

now I cant figure out how to make the Nagios send the notification (I didn't understand much with the article you posted

please if you have other easy way to accomplish my task- it will be amazing

thanks a lot

waiting for your reply
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: cant configure nagios to sent notications to my email

Post by ssax »

Please follow this:
- Start at STEP 02: Define Email Notification Commands section

https://digitalave.github.io/spring/201 ... Gmail.html
eranm1985
Posts: 3
Joined: Mon Apr 06, 2020 8:18 am

Re: cant configure nagios to sent notications to my email

Post by eranm1985 »

Hi

Ok- i opened the article you sent - i will try this method

but- i need to understand something:

i want that all the alerts will be send to this email: SC@itcare.co.il

where i need to add this address to get ther all the alerts? (windows.cfg?conntact.cfg? other place? what file i need to configure with this specipict email address?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: cant configure nagios to sent notications to my email

Post by cdienger »

Yes, contact.cfg is typically where you set the email address for a contact. Once you have a contact associated with an email address you would configure your hosts and services to notify this contact.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked