Age | Commit message (Collapse) | Author | Files |
|
New option -N is provided to treat the initial state as UNKNOWN as
in previous versions.
|
|
* 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".
|
|
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.
|
|
|
|
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.
|
|
* 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.
|
|
* 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.
|
|
* 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.
|
|
|
|
|
|
|
|
|
|
|