aboutsummaryrefslogtreecommitdiff
path: root/README
AgeCommit message (Collapse)AuthorFiles
2023-02-10Version 1.0HEADv1.0masterSergey Poznyakoff1
2020-09-19Proof-read the docs.Sergey Poznyakoff1
2020-03-10Proof-read the docs. Make configuration file optional.Sergey Poznyakoff1
2020-03-07ping903q: new option "-a"Sergey Poznyakoff1
* NEWS: Update. * README: Update. * configure.ac: Version 0.5.90 * doc/ping903q.1: Update. * src/ping903q.c: Disallow the use without arguments. New option -a: query statistics for "all" monitored IPs.
2020-03-07Simplify entry point structure.Sergey Poznyakoff1
The /ip entry point is gone. The /hosts entry point accepts new query arguments: (1) select=LIST, which introduces a list of IP addresses (hostnames) to query and (2) attr=LIST - a list of attributes to return in each stat object. In both cases, LIST is a comma-separated list of values. The "select" argument can be used together with explicit host (/hosts/IP?select=LIST), which is equivalent to /hosts/?select=IP,LIST. The /match entry point takes the "select" query argument as well. It return array of match objects. Each match object contains at least the following attributes: - name: original host name used in the request - hosts: array of monitored host names or IPs corresponding to that name, (can be empty). If an error occurred (e.g. host name cannot be resolved) the "error" attribute contains the textual description of the error. The ping903q utility now accepts one or more IP addresses as arguments in all modes, except nagios check. The statistics or matches for each IP are returned separately. * README: Document changes. * doc/ping903q.1: Likewise. * src/ping903.c (http_log): Log query arguments, if any. (ept_host_stat): Accept query arguments: select and attr. Return array of stat objects. (ept_ip_stat): Remove. (ept_ip_match): Accept query arguments: select. Rewrite output. (endpoint): Remove /ip * src/ping903.h (get_ipaddr_stat): Remove. (get_host_matches): Change signature. * src/ping903q.c (HTTP_BUF_INITIALIZER): New macro. (http_buf_init, http_buf_free): New functions. (query_host,match_host): Removed. (query_hosts,match_hosts): Removed. (query_host_nagios): New function. * src/pinger.c (get_ipaddr_stat): Remove. (hostping_match): New function. (get_host_matches): Rewrite.
2020-02-29Improve authorization support.Sergey Poznyakoff1
* examples/inspect: Special handling for "auth" objects. Print the rest of arrays as here documents. * src/json.c (json_object_filter): new function. * src/json.h (json_object_filter): new proto. * src/ping903.c (try_auth): Don't format HTTP responses if ret_val is NULL. (ept_ident, ept_config): Check individual object attributes using try_auth. Remove those not allowed by auth ACL. (cf_auth): Support for CF_SERIALIZE.
2020-02-29New entry point "/id"Sergey Poznyakoff1
Returns information about the running instance.
2020-02-27Process updates asynchronously.Sergey Poznyakoff1
Instead of directly modifying the host list, update requests are queued and applied to the list at the start of the next ping cycle. This speed ups updates and avoids their adverse effect on non-destructive get requests. * README: Document changes. * doc/ping903.conf.5: Document the http-backlog-size parameter. * src/ping903.c (http_response_detail): New function. (ept_ip_delete, ept_ip_put, ept_ip_post) (ept_host_stat, ept_ip_stat): Provide meanungful error descriptions. * src/ping903.h: Definitions for the Update and Get error codes. * src/pinger.c: Queue update requests and commit them to the main host list at the beginning of the ping cycle. (update_mutex): New variable. (check_host,update_add) (update_commit): New functions. (hostlist_updated): Remove variable. (get_hostname_stat,get_ipaddr_stat,get_all_host_stat) (get_all_hosts,get_host_matches): Return meaningful error codes. (pinger_host_delete_by_name,pinger_host_add_name) (pinger_hostlist_set): Operate on the update request queue instead of the main host list. Return meaningful error codes. (start_probe): Remove. (p903_scheduler): Commit updates at the beginning of the cycle. Lock the list using sendq_mutex. (p903_saver): Call update_commit.
2020-02-24Update the docsSergey Poznyakoff1
2020-02-17Add distribution-specific startup files.Sergey Poznyakoff1
2020-02-16Change some wordingSergey Poznyakoff1
2020-02-14Version 0.2v0.2Sergey Poznyakoff1
* NEWS: Update. * README: Update. * THANKS: Update. * doc/ping903.8: Spell checking. * doc/ping903q.1: Likewise. * src/Makefile.am: Distribute ping903.conf * src/ping903.h (HOST_STAT_INIT) (HOST_STAT_VALID,HOST_STAT_PENDING) (HOST_STAT_INVALID): New constants. (host_stat): New member "status". (host_stat_is_valid): Rewrite using status. * src/ping903q.c: "status" is string now. Handle particular values. * src/pinger.c: Maintain current status of each host_stat structure in the status member. (host_stat): Mark object as valid. (host_reset): Update status. (get_host_stat): Report object validity in the "validity" member, and its current status in "status" (string). * src/json.c: Implement json_value_copy. * src/json.h (json_value_copy): New proto. * src/ping903.c (ept_config): Return particular setting, if so requested.
2020-02-11Initial commitSergey Poznyakoff1

Return to:

Send suggestions and report system problems to the System administrator.