User Tools

Site Tools


  Main   About   Help   Download
nconf:help:how_tos:user_content:add_contacts

Adding Contacts for a Service or Host

By default, NConf provides a way to add a contactgroup to a host or service. If you want to add individual contacts to a host or service using NConf you must extend the data model for host and service.

Adding "contacts" to the "Modify Host" screen

  1. Log in to NConf as an administrator
  2. In the Navigation menu, select “Attributes” > “Add” from the “Administration” menu
  3. Add a new attribute with the following values:
    • Nagios-specific attribute name: contacts
    • friendly name: contacts
    • description, example or help-text: Something useful for your site
    • attribute belongs to class: host
    • attribute datatype: assign_many
    • items of class to be assigned: contact
    • link selected item(s) as children? no
    • attribute is mandatory? no
    • attribute is visible? yes
    • write attribute to configuration? yes
    • naming attribute: no
  4. Click “Submit”

A “contacts” selector should now show up when editing a host. To re-order the “contacts” selector on the page:

  1. Select “Attributes” > “Show” from the “Administration” menu
  2. Choose “service” from the “Class” menu and click “Show”
  3. Use the up and down arrows to move the newly-created contacts attribute

Adding "contacts" to the "Modify service" screen

  1. Log in to NConf as an administrator
  2. In the Navigation menu, select “Attributes” > “Add” from the “Administration” menu
  3. Add a new attribute with the following values:
    • Nagios-specific attribute name: contacts
    • friendly name: contacts
    • description, example or help-text: Something useful for your site
    • attribute belongs to class: service
    • attribute datatype: assign_many
    • items of class to be assigned: contact
    • link selected item(s) as children? no
    • attribute is mandatory? no
    • attribute is visible? yes
    • write attribute to configuration? yes
    • naming attribute?: no
  4. Click “Submit”

A “contacts” selector should now show up when editing a service. To re-order the “contacts” selector on the page:

  1. Select “Attributes” > “Show” from the “Administration” menu
  2. Choose “service” from the “Class” menu and click “Show”
  3. Use the up and down arrows to move the newly-created contacts attribute
nconf/help/how_tos/user_content/add_contacts.txt · Last modified: 09.12.2011 01:48 (external edit)