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 ...

Get Nagios, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.