|
dhcpd-pools
3.0
ISC dhcpd lease usage analyser
|
Runtime configuration state. More...
#include <dhcpd-pools.h>

Data Fields | |
| struct shared_network_t * | shared_net_root |
| First entry in shared network linked list, that is the 'all networks',. More... | |
| struct shared_network_t * | shared_net_head |
| Last entry in shared network linked list. More... | |
| struct range_t * | ranges |
| Array of ranges. More... | |
| unsigned int | num_ranges |
| Number of ranges in the ranges array. More... | |
| size_t | ranges_size |
| Size of the ranges array. More... | |
| struct leases_t * | leases |
| An array of individual leases from dhcpd.leases file. More... | |
| enum dhcp_version | ip_version |
| Designator if the dhcpd is running in IPv4 or IPv6 mode. More... | |
| const char * | dhcpdconf_file |
| Path to dhcpd.conf file. More... | |
| const char * | dhcpdlease_file |
| Path to dhcpd.leases file. More... | |
| int | output_format |
| Column to use in color_tags array. More... | |
| struct output_sort * | sorts |
| Linked list how to sort ranges. More... | |
| const char * | output_file |
| Output file path. More... | |
| const char * | mustach_template |
| Mustach template file path. More... | |
| double | warning |
| Warning percent threshold. More... | |
| double | critical |
| Critical percent threshold. More... | |
| double | warn_count |
| Maximum number of free IP's before warning. More... | |
| double | crit_count |
| Maximum number of free IP's before critical. More... | |
| double | minsize |
| Minimum size of range or shared network to be considered exceeding threshold. More... | |
| unsigned int | reverse_order:1 |
| Reverse sort order. More... | |
| unsigned int | backups_found:1 |
| Indicator if dhcpd.leases file has leases in backup state. More... | |
| unsigned int | snet_alarms:1 |
| Suppress alarming thresholds for ranges that are part of a shared network. More... | |
| unsigned int | perfdata:1 |
| Include performance statistics when using Nagios alarm output format. More... | |
| unsigned int | all_as_shared:1 |
| Treat stand-alone subnets as a shared network. More... | |
| unsigned int | header_limit:4 |
| Bits to suppress header output. More... | |
| unsigned int | number_limit:3 |
| Bits to suppress value output. More... | |
| unsigned int | skip_ok:1 |
| Skip none-alarming values from output. More... | |
| unsigned int | skip_warning:1 |
| Skip warning values from output. More... | |
| unsigned int | skip_critical:1 |
| Skip critical values from output. More... | |
| unsigned int | skip_minsize:1 |
| Skip alarming values that are below minsize from output. More... | |
| unsigned int | skip_suppressed:1 |
| Skip alarming values that are suppressed with –snet-alarms option, or they are shared networks without IP availability. More... | |
| unsigned int | color_mode:2 |
| Indicator if colors should be used in output. More... | |
Runtime configuration state.
| unsigned int all_as_shared |
Treat stand-alone subnets as a shared network.
Referenced by is_interesting_config_clause(), and parse_command_line_opts().
| unsigned int backups_found |
Indicator if dhcpd.leases file has leases in backup state.
Referenced by must_put_range(), must_put_shnet(), output_alarming(), output_csv(), output_html(), output_json(), output_txt(), parse_leases(), range_output_helper(), and shnet_output_helper().
| unsigned int color_mode |
Indicator if colors should be used in output.
Referenced by output_double_color(), output_txt(), and parse_command_line_opts().
| double crit_count |
Maximum number of free IP's before critical.
Referenced by parse_command_line_opts(), range_output_helper(), and shnet_output_helper().
| double critical |
Critical percent threshold.
Referenced by output_alarming(), parse_command_line_opts(), range_output_helper(), and shnet_output_helper().
| const char* dhcpdconf_file |
Path to dhcpd.conf file.
Referenced by main(), must_put_base(), output_json(), and parse_command_line_opts().
| const char* dhcpdlease_file |
Path to dhcpd.leases file.
Referenced by html_header(), must_put_base(), must_put_range(), must_put_shnet(), output_json(), parse_command_line_opts(), and parse_leases().
| unsigned int header_limit |
Bits to suppress header output.
Referenced by output_alarming(), output_csv(), output_html(), output_json(), output_txt(), output_xml(), and parse_command_line_opts().
| enum dhcp_version ip_version |
Designator if the dhcpd is running in IPv4 or IPv6 mode.
Referenced by output_txt(), parse_cidr(), parse_leases(), and set_ipv_functions().
| struct leases_t* leases |
An array of individual leases from dhcpd.leases file.
Referenced by add_lease_v4(), add_lease_v6(), delete_all_leases(), delete_lease(), do_counting(), find_lease_v4(), find_lease_v6(), output_json(), output_xml(), and prepare_data().
| double minsize |
Minimum size of range or shared network to be considered exceeding threshold.
Referenced by output_alarming(), parse_command_line_opts(), range_output_helper(), and shnet_output_helper().
| const char* mustach_template |
Mustach template file path.
Referenced by must_put_base(), mustach_dhcpd_pools(), and parse_command_line_opts().
| unsigned int num_ranges |
Number of ranges in the ranges array.
Referenced by do_counting(), flip_ranges(), main(), must_enter(), must_put_base(), output_alarming(), output_csv(), output_html(), output_json(), output_txt(), output_xml(), parse_config(), and prepare_data().
| unsigned int number_limit |
Bits to suppress value output.
Referenced by output_alarming(), output_csv(), output_html(), output_json(), output_txt(), output_xml(), and parse_command_line_opts().
| const char* output_file |
Output file path.
Referenced by mustach_dhcpd_pools(), open_outfile(), and parse_command_line_opts().
| int output_format |
Column to use in color_tags array.
Referenced by main(), output_analysis(), output_txt(), and start_color().
| unsigned int perfdata |
Include performance statistics when using Nagios alarm output format.
Referenced by output_alarming(), and parse_command_line_opts().
| struct range_t* ranges |
Array of ranges.
Referenced by clean_up(), do_counting(), flip_ranges(), main(), must_enter(), must_leave(), output_alarming(), output_csv(), output_html(), output_json(), output_txt(), output_xml(), parse_config(), prepare_data(), and prepare_memory().
| size_t ranges_size |
Size of the ranges array.
Referenced by parse_config(), and prepare_memory().
| unsigned int reverse_order |
Reverse sort order.
Referenced by main(), and parse_command_line_opts().
| struct shared_network_t* shared_net_head |
Last entry in shared network linked list.
Referenced by parse_config(), and prepare_memory().
| struct shared_network_t* shared_net_root |
First entry in shared network linked list, that is the 'all networks',.
Referenced by clean_up(), do_counting(), main(), must_enter(), must_leave(), must_put_base(), output_alarming(), output_csv(), output_html(), output_json(), output_txt(), output_xml(), parse_config(), prepare_memory(), and range_output_helper().
| unsigned int skip_critical |
Skip critical values from output.
Referenced by range_output_helper(), shnet_output_helper(), and skip_arg_parse().
| unsigned int skip_minsize |
Skip alarming values that are below minsize from output.
Referenced by range_output_helper(), shnet_output_helper(), and skip_arg_parse().
| unsigned int skip_ok |
Skip none-alarming values from output.
Referenced by range_output_helper(), shnet_output_helper(), and skip_arg_parse().
| unsigned int skip_suppressed |
Skip alarming values that are suppressed with –snet-alarms option, or they are shared networks without IP availability.
Referenced by range_output_helper(), shnet_output_helper(), and skip_arg_parse().
| unsigned int skip_warning |
Skip warning values from output.
Referenced by range_output_helper(), shnet_output_helper(), and skip_arg_parse().
| unsigned int snet_alarms |
Suppress alarming thresholds for ranges that are part of a shared network.
Referenced by parse_command_line_opts(), and range_output_helper().
| struct output_sort* sorts |
Linked list how to sort ranges.
Referenced by clean_up(), main(), merge(), and parse_command_line_opts().
| double warn_count |
Maximum number of free IP's before warning.
Referenced by parse_command_line_opts(), range_output_helper(), and shnet_output_helper().
| double warning |
Warning percent threshold.
Referenced by main(), output_alarming(), parse_command_line_opts(), range_output_helper(), and shnet_output_helper().
1.8.13