NAME

Thruk::Backend::Provider::HTTP - connection provider over http

DESCRIPTION

connection provider for http connections

METHODS

new

create new manager

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

reconnect

recreate lwp object

set_verbose

set_verbose

sets verbose mode for this backend and returns old value

renew_logcache

renew_logcache

renew logcache

send_command

send a command

get_processinfo

return the process info

get_sites

get_sites

returns a list of lmd sites

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

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_contactgroup_names

get_contactgroup_names

returns a list of contactgroup names

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_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

get_logs_start_end

get_logs_start_end

returns first and last logfile entry

_get_logs_start_end

_get_logs_start_end

returns first and last logfile entry

propagate_session_file

propagate_session_file($c)

propagate local session to remote site

rpc

rpc($c, "function name", $args);

run remote call

request

request($sub, $args, $options)

returns result for given request

$sub is answered in Thruk::Utils::CLI::_cmd_raw
$args are arguments for _cmd_raw
$options are request / transport related options like:
{
    auth      => username set on remoteside
    keep_su   => change username on remotesite, but keep superuser permissions
    want_data => return raw data result
    wait      => wait for remote job to complete
    timeout   => timeout for http(s) request
}

rest_request

rest_request($restpath, $method, $parameters)

returns result for given request

_req

_req($sub, $options)

returns result for given request

_ua_post_with_timeout

_ua_post_with_timeout($ua, $url, $data)

return http response but ensure timeout on request.

_wait_for_remote_job

_wait_for_remote_job($jobid)

wait till remote job is finished and return that data

_replace_peer_key

_replace_peer_key($data)

replace remote peer key with our own