Describes a single object from livestatus. More...
Public Member Functions | |
get_state_text () | |
Return the state as text. | |
get_first_group () | |
Return the name of one of the services groups the object is member of. | |
get_checks_disabled () | |
Returns true if checks are disabled. | |
get_duration () | |
Returns the duration since last state change. | |
get_long_plugin_output () | |
Get the long plugin output, which is second line and forward. | |
get_comments_count () | |
Returns the number of comments related to the service. | |
get_state_type_text () | |
Return the state type, as text in uppercase. | |
get_check_type_str () | |
Get the check type as string (passive/active). | |
get_custom_commands () | |
Get a list of custom commands for the service. | |
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. |
Describes a single object from livestatus.
Service_Model::get_config_allowed | ( | $ | auth = false |
) |
Get if having access to configure the host.
$auth | op5auth module to use, if not default |
Service_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 BaseService_Model.
Service_Model::get_source_node | ( | ) |
Get which merlin node handling the check.
This is determined by magic regexp parsing of the check_source field
Service_Model::get_source_type | ( | ) |
Get which merlin node handling the check.
This is determined by magic regexp parsing of the check_source field
Service_Model::$rewrite_columns [static] |
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('host.name', 'description'), '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.