Articles tagged with: nagios

Nagios – Use an external smtp server to send notifications

One of the most important feature of Nagios is the notification system; by default Nagios will use the local mail daemon (mail) to send all the notifications.
Maybe this kind of system was working fine in past, but today, with this huge amount of spam circulating all over the world, this kind of emails from a not verified source can be filtered by the same company antispam system.
In order to avoid this issue I will explain how to configure Nagios using an external smtp server also with smtp authentication.

Loading

Nagios 4.1 installation on Ubuntu 14.04

  • Update Server
sudo apt-get update && apt-get upgrade && apt-get dist-upgrade
  • Install necessary packages
sudo apt-get install \
unzip \
wget \
build-essential \
apache2 \
apache2-utils \
php5-gd \
libgd2-xpm-dev \
libapache2-mod-php5 \
postfix \
libssl-dev
  • When postfix asks, set your mail config to match your situation.
  • If you are unsure, Internet Site is probably what you are looking for.
  • Next we will need to set up the user and group that Nagios will operate as.

Loading