contact_class Class Reference

A contact definition is used to identify someone who should be contacted in the event of a problem on your network. More...

Inheritance diagram for contact_class:
object_class contact_template_class

Public Member Functions

 get_properties ()
 Fetches the properties for the current object type.
 save_object ($user=true)
 Writes the $this->obj to the database if it validates properly.
 get_nagios_struct ($prefix='')
 Export with naming and values to map nagios struct names ond format.

Data Fields

 $type = 'contact'
 object type
 $nagios_defaults
 Nagios' default settings.

Detailed Description

A contact definition is used to identify someone who should be contacted in the event of a problem on your network.

This is not always a user, which means not all contacts can log into the Monitor GUI.


Member Function Documentation

contact_class::get_nagios_struct ( prefix = ''  ) 

Export with naming and values to map nagios struct names ond format.

Useful for Test this x operation

Reimplemented from object_class.

contact_class::save_object ( user = true  ) 

Writes the $this->obj to the database if it validates properly.

Parameters:
$user false if this change isn't made by a user. If not, no validation will be performed, and the change won't show up in the changelog.
Returns:
true if everything worked out ok; false if not.

Reimplemented from object_class.


Field Documentation

contact_class::$nagios_defaults
Initial value:
 array(
                'host_notification_options' => array('n' => ''),
                'service_notification_options' => array('n' => ''),
                'host_notifications_enabled' => 1,
                'service_notifications_enabled' => 1,
                'can_submit_commands' => 0,
                'retain_status_information' => 1,
                'retain_nonstatus_information' => 1
        )

Nagios' default settings.

Reimplemented from object_class.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 7 May 2013 for nacoma by  doxygen 1.6.1