Installing Mail Server on Nagios

Postfix Server Installation
First you need to install postfix;

 

When prompted, choose internet site, then enter the @ part where you wish the mail to be sent from, e.g nagios.notify. This will mean that emails received from nagios will be @nagios.notify.

 

 

Mailx Server Installation

 

Now install Nagios’s part of the mail server;

 

 

Configuring Nagios Mail Command

 

You need to edit the commands.cfg folder to take into account the new paths;

 

Replace;

 

With;

 

Note that the change is ‘/bin/mail’ to ‘/usr/bin/mailx’.

 

Now restart Nagios;

 

You should now receive email notifications of services/host states.

 

 

Enabling and Disabling Notifications for a Service

 

To disable notifications follows the steps below.

 

  1. Access the web interface;

  1. Choose Hosts or Services from the side menu (depending on which you wish to change).
  1. Select a service or host you wish to disable notifications for (note that HTTP and SSH notifications are disabled by default on localhost).
  1. On the page which opens, from the right hand section select the option ‘Disable Notifications’.
  1. This should open a page asking to confirm the host or host and service you wish to disable notifications for. Select ‘Commit’ to continue;
  1. From this page it will now show a page verifying that it has been complete. Make sure to select the option ‘Done';

 

This will return you to the homepage. Navigate back to the host/service (from 4.) and you will see at the bottom it shows Notifications in red and as ‘DISABLED’. Also the right hand menu has changed to give the option to ‘Enable’ notifications as they are currently disabled.

 

Tags: , ,

OUR BLOG

on July 5, 2018

We have started using medium for our blogging. Please click here to see our latest posts.

on February 9, 2015

BaseX Blog Introduction This 'Blurt/Blog' details my experiences of a recent

on December 4, 2013

iCosts - The Legal Costs Calculator - Demo http://youtu.be/P5pSAZzKi08

on December 4, 2013

Lync XMPP + Video - Demo http://youtu.be/aWpaxFGDwXY

Contact Us

9th Floor Capital House
40-42 Weston Street
London
SE1 3QD

sales@gltd.net 0207 100 1499 Follow us Like us

Specialists in integrated and flexible communications

Copyright © 2013 Globility Limited. All rights reserved.