NAME

Thruk::Backend::Provider::Livestatus - connection provider for livestatus connections

DESCRIPTION

connection provider for livestatus connections

METHODS

new

create new manager

reconnect

recreate database connection

peer_key

return the peers key

peer_addr

return the peers address

peer_name

return the peers name

_raw_query

send a raw query to the backend

send_command

send a command

get_processinfo

return the process info

get_sites

return the sites list from lmd

get_can_submit_commands

returns if this user is allowed to submit commands

get_contactgroups_by_contact

get_contactgroups_by_contact

returns a list of contactgroups by contact

$VAR1 = [ { 'peer_addr' => '/omd/sites/devel/tmp/run/live', 'name' => 'omd', 'peer_key' => '78bcd', 'peer_name' => 'devel' }, ... ];

get_hosts

get_hosts

returns a list of hosts

get_hosts_by_servicequery

get_hosts_by_servicequery

returns a list of host by a services query

get_host_names

get_host_names

returns a list of host names

get_hostgroups

get_hostgroups

returns a list of hostgroups

get_hostgroup_names

get_hostgroup_names

returns a list of hostgroup names

get_services

get_services

returns a list of services

get_service_names

get_service_names

returns a list of service names

get_servicegroups

get_servicegroups

returns a list of servicegroups

get_servicegroup_names

get_servicegroup_names

returns a list of servicegroup names

get_comments

get_comments

returns a list of comments

get_downtimes

get_downtimes

returns a list of downtimes

get_contactgroups

get_contactgroups

returns a list of contactgroups

get_logs

get_logs

returns logfile entries

get_timeperiods

get_timeperiods

returns a list of timeperiods

get_timeperiod_names

get_timeperiod_names

returns a list of timeperiod names

get_commands

get_commands

returns a list of commands

get_contacts

get_contacts

returns a list of contacts

get_contact_names

get_contact_names

returns a list of contact names

get_contactgroup_names

get_contactgroup_names

returns a list of contactgroup names

get_host_stats

get_host_stats

returns the host statistics for the tac page

get_host_totals_stats

get_host_totals_stats

returns the host statistics used on the service/host details page

get_host_less_stats

get_host_less_stats

same as get_host_stats but less numbers and therefore faster

get_service_stats

get_service_stats

returns the services statistics for the tac page

get_service_totals_stats

get_service_totals_stats

returns the services statistics used on the service/host details page

get_service_less_stats

get_service_less_stats

same as get_service_stats but less numbers and therefore faster

get_performance_stats

get_performance_stats

returns the service /host execution statistics

get_extra_perf_stats

get_extra_perf_stats

returns the service /host execution statistics

set_verbose

set_verbose

sets verbose mode for this backend and returns old value

_get_class

_get_class($tablename, $options)

generic function to return a table class

_get_table

_get_table

generic function to return a table with options

_optimize

_optimize

return livestatus::lite class with enhanced options

_get_hash_table

_get_hash_table

generic function to return a hash table with options

_get_query_size

_get_query_size

returns the size of a query, used to reduce the amount of transfered data

get_logs_start_end

get_logs_start_end

returns first and last logfile entry

_get_logs_start_end

_get_logs_start_end

returns the min/max timestamp for given logs

renew_logcache

renew_logcache

renew logcache