Thruk::Backend::Provider::HTTP - connection provider over http
connection provider for http connections
create new manager
return the peers key
return the peers address
return the peers name
send a raw query to the backend
recreate lwp object
set_verbose
sets verbose mode for this backend and returns old value
renew_logcache
renew logcache
send a command
return the process info
get_sites
returns a list of lmd sites
returns if this user is allowed to submit commands
get_contactgroups_by_contact
returns a list of contactgroups by contact
get_hosts
returns a list of hosts
get_hosts_by_servicequery
returns a list of host by a services query
get_host_names
returns a list of host names
get_hostgroups
returns a list of hostgroups
get_hostgroup_names
returns a list of hostgroup names
get_services
returns a list of services
get_service_names
returns a list of service names
get_servicegroups
returns a list of servicegroups
get_servicegroup_names
returns a list of servicegroup names
get_comments
returns a list of comments
get_downtimes
returns a list of downtimes
get_contactgroups
returns a list of contactgroups
get_contactgroup_names
returns a list of contactgroup names
get_logs
returns logfile entries
get_timeperiods
returns a list of timeperiods
get_timeperiod_names
returns a list of timeperiod names
get_commands
returns a list of commands
get_contacts
returns a list of contacts
get_contact_names
returns a list of contact names
get_host_stats
returns the host statistics for the tac page
get_host_totals_stats
returns the host statistics used on the service/host details page
get_host_less_stats
same as get_host_stats but less numbers and therefore faster
get_service_stats
returns the services statistics for the tac page
get_service_totals_stats
returns the services statistics used on the service/host details page
get_service_less_stats
same as get_service_stats but less numbers and therefore faster
get_performance_stats
returns the service / host execution statistics
get_extra_perf_stats
returns the service /host execution statistics
get_logs_start_end
returns first and last logfile entry
_get_logs_start_end
returns first and last logfile entry
propagate_session_file($c)
propagate local session to remote site
rpc($c, "function name", $args);
run remote call
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($restpath, $method, $parameters)
returns result for given request
_req($sub, $options)
returns result for given request
_ua_post_with_timeout($ua, $url, $data)
return http response but ensure timeout on request.
_wait_for_remote_job($jobid)
wait till remote job is finished and return that data
_replace_peer_key($data)
replace remote peer key with our own