Nagios alert

how to configure an email alert in nagios?
  • post-author-pic
    Terrence C
    09-06-2018

    Without knowing a lot about your environment, I will make some assumptions. In general, you will work with a file called 'contacts_nagios2.cfg' in the /etc/nagios3/conf.d directory (your exact directory may differ based on the version you are running, but the configuration file should be the same). You will find a section like:


    define contact{
    contact_name USERNAME
    service_notification_period 24x7
    host_notification_period 24x7
    service_notification_options w,u,c,r,f
    host_notification_options d,u,r,f
    service_notification_commands notify-service-by-email
    host_notification_commands notify-host-by-email
    email email@localhost
    }


    The last item is what you need to configure (email email@localhost). Once you have made your edit, save the file and restart Nagios to pick up the changes.

Looking For Team Training?

Learn More