Re: Questions from a beginner

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Questions from a beginner

Post by WillemDH »

Ok, I can understand the reason, but how do I change the smtp server used by the notify-by-email used bu contacts / core?
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Questions from a beginner

Post by abrist »

This would require configuring your local mta. To find out which mta you are using, check what the mta symlinks to:

Code: Select all

ls -la /etc/alternatives/mta
Usually it is postfix, but every so often I have seen exim or sendmail as well. One you know your mta, you will have to configure it to send through smtp. Refer to google if necessary.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Questions from a beginner

Post by WillemDH »

[root@srvnagios01 ~]# ls -la /etc/alternatives/mta
lrwxrwxrwx. 1 root root 26 Jun 6 2012 /etc/alternatives/mta -> /usr/sbin/sendmail.postfix

I tried editing the relayhost in /etc/postfix/main.cf , but after a /etc/init.d/postfix reload email fro contacts still won't be sent. Looking in Google mainly results in procedures how to set up mailservers with postfix. I really don't get why it isn't easier to configure an internal smtp server.
Nagios XI 5.8.1
https://outsideit.net
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Questions from a beginner

Post by slansing »

Moving to ticketing system.
Locked