NAME

Thruk::Backend::Provider::Mysql - connection provider for Mysql connections

DESCRIPTION

connection provider for Mysql connections

METHODS

new

create new manager

reconnect

recreate database connection

_disconnect

close database connection

_dbh

try to connect to database and return database handle

peer_key

return the peers key

peer_addr

return the peers address

peer_name

return the peers name

send_command

get_processinfo

get_sites

get_can_submit_commands

get_contactgroups_by_contact

get_hosts

get_hosts_by_servicequery

get_host_names

get_hostgroups

get_hostgroup_names

get_services

get_service_names

get_servicegroups

get_servicegroup_names

get_comments

get_downtimes

get_contactgroups

get_contactgroup_names

get_logs

get_logs

returns logfile entries

get_timeperiods

get_timeperiod_names

get_commands

get_contacts

get_contact_names

get_host_stats

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

returns the host statistics but with less columns

get_service_stats

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

returns the services statistics but with less columns

get_performance_stats

get_extra_perf_stats

set_verbose

set_verbose

sets verbose mode for this backend and returns old value

renew_logcache

renew_logcache

renew logcache

_add_peer_data

_add_peer_data

add peer name, addr and key to result array

_get_filter

_get_filter

return Mysql filter

_get_subfilter

_get_subfilter

return Mysql filter

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

get_existing_caches

get_existing_caches

returns list of already created caches

_log_stats

_log_stats

gather log statistics

_logcache_stats_types

_logcache_stats_types

gather log type statistics

_log_removeunused

_log_removeunused

remove logcache tables from backends which do no longer exist

_import_logs

_import_logs

imports logs into Mysql

check_global_lock

check_global_lock($c)

returns true if no global lock exists