O'Reilly logo

Nagios, 2nd Edition by Wolfgang Barth

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

2.7 Defining Addressees for Error Messages: contact

A contact is basically a person to whom a message addressed via a contact group is sent:

# -- /etc/nagios/mysite/contacts.cfg
define contact{
    contact_name                   nagios
    alias                          Nagios Admin
    host_notification_period       24×7
    service_notification_period    24×7
    service_notification_options   w, u, c, r
    host_notification_options      d, u, r
   service_notification_commands      notify-by-email
   host_notification_commands         host-notify-by-email
    email                          nagios-admin@localhost
    can_submit_commands(*)    1
}

The contact also plays a role during authentication: a user who logs in at the Web front end only gets to see the hosts and services for which that user is entered as the contact. The user for logging in to the Web interface must ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required