aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
AgeCommit message (Collapse)AuthorFiles
2023-02-10Version 1.0HEADv1.0masterSergey Poznyakoff1
2020-03-19Version 0.8v0.8Sergey Poznyakoff1
2020-03-12Use red-black trees to index the hostlist by the host name and IP address.Sergey Poznyakoff1
This speeds up searches and eliminates the possibility of duplicate host entries. * src/rbt.c: New file. * src/Makefile.am: Add new file. * src/config.c (file_read_ip_list): Update diagnostic output. * src/defs.h (LOCAL_IP_LIST_FILE): Rename to MUTABLE_IP_LIST_FILE. All uses changed. * src/ping903.c (ping903): Fix the shutting down diagnostic message. * src/ping903.h: RBT definitions and prototypes. * src/pinger.c (conf_hostping_tail): Rename to immutable_hostping_tail. (FOR_EACH_LOCAL_HOSTPING): Rename to FOR_EACH_MUTABLE_HOSTPING. (save_local_ip_list): Rename to save_mutable_ip_list. All uses changed. (host_name_tree, host_addr_tree): New statics. (pinger_setup): Initialize index trees. (check_host): Look up both the host name and its IP address. All uses changed. (pinger_rbt_insert, pinger_rbt_delete) (hostping_lookup_by_name, hostping_lookup_by_addr): New functions. (hostlist_index,hostlist_unindex): New functions. (pinger_host_add): Insert index entry for the new hostping structure. (get_hostname_stat): Rewrite using index tree lookup. (get_host_matches): Likewise. (hostlist_copy_stat): Likewise. (hostping_match): Remove. (p903_update_commit): Update index trees. (p903_init): Mark all configured hosts as immutable.
2020-03-11Version 0.7v0.7Sergey Poznyakoff1
2020-03-10Version 0.6v0.6Sergey 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-06Version 0.5v0.5Sergey Poznyakoff1
* NEWS: Update. * configure.ac: Raise version number. * examples/lib/LWP/Ping903.pm: Remove. * examples/README: Mention Mangemanche. Remove references to lib/LWP/Ping903.pm * examples/dbload: Revert to LWP::UserAgent * examples/inspect: Likewise. * examples/ipadd: Likewise. * examples/ipdel: Likewise.
2020-02-27Version 0.4.90Sergey Poznyakoff1
2020-02-27Implement basic authSergey Poznyakoff1
* Makefile.am (SUBDIRS): Add lib * configure.ac: Build lib/Makefile * lib/Makefile.am: New file. * lib/apr.c: New file. * lib/basicauth.c: New file. * lib/basicauth.h: New file. * lib/md5.c: New file. * lib/md5.h: New file. * lib/sha1.c: New file. * lib/sha1.h: New file. * src/Makefile.am: Add lib to the include path * src/config.c: New statement "auth". * src/ping903.c: Implement basic auth. * src/ping903.h (cf_auth): New proto.
2020-02-22Minor changes, Version 0.3v0.3Sergey 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-13ping903q: resolve supplied argument before querying; improve error handlingSergey Poznyakoff1
2020-02-12Add manpagesSergey Poznyakoff1
2020-02-12Separate ping-interval and probe-intervalSergey Poznyakoff1
* configure.ac: Use AM_PROG_AR * src/config.c: rename "interval" to "ping-interval". New statement: "probe-interval". (readconfig): Signal error if ping_count probes don't fit into probe_interval. * src/ping903.conf: Update. * src/ping903.h (host_stat): Rename "tv" to "start_tv". New member: "stop_tv". * src/pinger.c (probe_interval): New global. (sendq_enqueue_unlocked): Remove. (sendq_enqueue): Set xmit_tv to the time when this host should be probed again. (sendq_dequeue): Sleep until the right ping time. (p903_sender): Don't lock sendq_mutex. This is done by sendq_dequeue. (host_stat): Save start_tv and stop_tv. (get_host_stat): Format stop-timestamp and recv-timestamp. * src/main.c: Use sysexits. * src/ping903q.c (print_host_status): Use stop-timestamp and recv-timestamp to calculate duration.
2020-02-12Implement simple query utilitySergey Poznyakoff1
* configure.ac: Test for ranlib * src/.gitignore: Update. * src/ping903q.c: New file. * src/Makefile.am: Build ping903q * src/defs.h: New file. * src/mem.h: New file. * src/json.h (json_2nrealloc): New proto. * src/config.c: New statement: "access-log-verbose" Change error codes to positive values. * src/main.c: Use DEFAULT_CONFIG_FILE instead of hardcoding the file name. * src/ping903.c: Log json object only if access-log-verbose has been requested. * src/ping903.conf: Document access-log-verbose * src/ping903.h (HOSTADDR): Rename tv to xmit_tv. New member: start_tv. * src/pinger.c: Keep the time when first packet has been sent in the start_tv member.
2020-02-11Initial commitSergey Poznyakoff1

Return to:

Send suggestions and report system problems to the System administrator.