path: root/doc
AgeCommit message (Collapse)AuthorFiles
2020-03-05ping903q: improve output in Nagios mode; treat initial state as OKSergey Poznyakoff1
New option -N is provided to treat the initial state as UNKNOWN as in previous versions.
2020-02-28Implement "auth none" type.Sergey Poznyakoff1
* src/ping903.c (cf_auth): Support for "auth none". (try_auth): Take action depending on the type of the matching auth_location structure. * doc/ping903.conf.5: Document "auth none" * src/ping903.conf: Example of "auth none".
2020-02-28Implement here-document syntax in configuration file.Sergey Poznyakoff1
Here-document is supported for ip-list and trusted-ip statements. * doc/ping903.conf.5: Document the here-document syntax. * NEWS: Likewise. * examples/inspect: Mention that the created output is a valid configuration file. * src/config.c: Support for here-document. * src/defs.h: Mark printf-like functions as such. * src/ping903.h (CF_HEREDOC_OPCODE): New data type. (cf_callback_arg): Add heredoc member. (STMT_T_HEREDOC): New statement type. * src/remoteip.c (cf_trusted_ip_heredoc): New function. * src/ping903.c: Fix format strings and unused variables. * src/ping903q.c: Likewise. * src/pinger.c: Likewise.
2020-02-27Document basic authorizationSergey Poznyakoff4
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-24Improve ping903q output in Nagios check modeSergey Poznyakoff1
* doc/ping903q.1: Document the -p option. * src/ping903q.c: Use configurable prefix in Nagios mode. Round up loss percentage to 2 decimal digits on output.
2020-02-14Version 0.2v0.2Sergey Poznyakoff2
* 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-13Implement IP lookup and match mode.Sergey Poznyakoff1
* src/ping903.c: Implement two new endpoints: /ip and /match, for IP lookup and match mode. * src/ping903.h (get_ipaddr_stat) (get_host_matches): New protos. * src/pinger.c (get_ipaddr_stat) (get_host_matches): New functions. * src/ping903q.c (resolve_ip): New global. (query_host): Use /host or /ip depending on the value of resolve_ip. (match_host): New function. * doc/ping903q.1: Update.
2020-02-13Minor fixSergey Poznyakoff1
2020-02-13Add missing doc/Makefile.amSergey Poznyakoff1
2020-02-13Implement nagios check mode in ping903qSergey Poznyakoff1
2020-02-13Change default listen address to Poznyakoff2
2020-02-12Add manpagesSergey Poznyakoff3

Return to:

Send suggestions and report system problems to the System administrator.