Page 1 of 1

How was the Nagios XI Virtual Machine mail service installed

Posted: Wed Feb 15, 2012 2:09 pm
by nagiosadmin42
I've downloaded the Nagios XI virtual machine (nagiosxi-2011r1.9-virtualpc.zip), and gotten it set up to monitor a couple of hosts.

I also did a manual install on a fresh CentOS 6.2 server, following the instructions in http://assets.nagios.com/downloads/nagi ... ctions.pdf.

However, step 7-sendmail of the fullinstall is a stub which has a comment: "REMEMBER TO CONFIGURE SENDMAIL TO ALLOW OUTBOUND EMAIL!"

The VM's working for us, so whatever it is using for sending mail is fine.

I'm wondering how the mail infrastructure was set up for the virtual machine. Are the steps documented anywhere?

Was it simply:

Code: Select all

sudo yum install postfix
I'm going to give that a try. Also found this site: http://wiki.centos.org/HowTos/postfix

Re: How was the Nagios XI Virtual Machine mail service insta

Posted: Wed Feb 15, 2012 2:45 pm
by nagiosadmin42
Ok, so that wasn't so bad. A simple yum install and start of the service, and Send Test Email worked!

Code: Select all

$ sudo yum install postfix

Note: config files are written to /etc/postfix/ but I didn't change anything there.

$ sudo /etc/rc.d/init.d/postfix status
master is stopped
$ sudo /etc/rc.d/init.d/postfix start
Starting postfix:                                          [  OK  ]
And, one thing to note for newbies like me... when you're looking at the list of services to see which mailer is running, the Postfix process is named master !

Code: Select all

$ sudo service --status-all
...
master (pid  22549) is running...
...

$ ps -ef | grep postfix
root     22549     1  0 11:42 ?        00:00:00 /usr/libexec/postfix/master
postfix  22551 22549  0 11:42 ?        00:00:00 pickup -l -t fifo -u
postfix  22552 22549  0 11:42 ?        00:00:00 qmgr -l -t fifo -u
postfix  25990 22549  0 11:52 ?        00:00:00 cleanup -z -t unix -u
postfix  25993 22549  0 11:52 ?        00:00:00 smtp -t unix -u
500      28313  3106  0 11:57 pts/0    00:00:00 grep --color=auto postfix

Re: How was the Nagios XI Virtual Machine mail service insta

Posted: Wed Feb 15, 2012 2:59 pm
by scottwilkerson
Looks good.

Different administrators like to use different MTA for mail.

It's a preference thing...