Host_Model Class Reference

Describes a single object from livestatus. More...

Inheritance diagram for Host_Model:
BaseHost_Model Object_Model BaseObject_Model

Public Member Functions

 get_state_text ()
 Get state, as text.
 get_checks_disabled ()
 get if checks are disabled
 get_first_group ()
 Get the first host group of the host group memberships.
 get_long_plugin_output ()
 Get the long plugin output, which is second line and forward.
 get_duration ()
 Get duration.
 get_comments_count ()
 get the number of comments associated to the host
 get_state_type_text ()
 Return the state type, as text in uppercase.
 get_check_type_str ()
 Get check type, as a string ("active" or "passive").
 get_custom_commands ()
 Get a list of custom commands for the host.
 get_config_allowed ($auth=false)
 Get if having access to configure the host.
 get_config_url ()
 Get configuration url.
 get_source_node ()
 Get which merlin node handling the check.
 get_source_type ()
 Get which merlin node handling the check.
 get_perf_data ()
 Get the performance data for the object, expressed as an associative array.

Static Public Attributes

static $rewrite_columns
 An array containing the custom column dependencies.

Detailed Description

Describes a single object from livestatus.


Member Function Documentation

Host_Model::get_config_allowed ( auth = false  ) 

Get if having access to configure the host.

Parameters:
$auth op5auth module to use, if not default
Host_Model::get_long_plugin_output (  ) 

Get the long plugin output, which is second line and forward.

By some reason, nagios escapes this field.

Reimplemented from BaseHost_Model.

Host_Model::get_source_node (  ) 

Get which merlin node handling the check.

This is determined by magic regexp parsing of the check_source field

Host_Model::get_source_type (  ) 

Get which merlin node handling the check.

This is determined by magic regexp parsing of the check_source field


Field Documentation

Host_Model::$rewrite_columns [static]
Initial value:
 array(
                'state_text' => array('state','has_been_checked'),
                'first_group' => array('groups'),
                'checks_disabled' => array('active_checks_enabled'),
                'duration' => array('last_state_change'),
                'comments_count' => array('comments'),
                'config_url'      => array('name'),
                'state_type_text' => array('state_type'),
                'check_type_str'  => array('check_type'),
                'config_allowed'  => array('contacts'),
                'source_node'     => array('check_source'),
                'source_type'     => array('check_source'),
                'perf_data'       => array('perf_data_raw')
        )

An array containing the custom column dependencies.

Reimplemented from BaseObject_Model.


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

Generated on 3 Nov 2014 for ninja by  doxygen 1.6.1