dhcpd-pools  3.0
ISC dhcpd lease usage analyser
Data Fields
conf_t Struct Reference

Runtime configuration state. More...

#include <dhcpd-pools.h>

Collaboration diagram for conf_t:
Collaboration graph
[legend]

Data Fields

struct shared_network_tshared_net_root
 First entry in shared network linked list, that is the 'all networks',. More...
 
struct shared_network_tshared_net_head
 Last entry in shared network linked list. More...
 
struct range_tranges
 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_tleases
 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_sortsorts
 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...
 

Detailed Description

Runtime configuration state.

Field Documentation

◆ all_as_shared

unsigned int all_as_shared

Treat stand-alone subnets as a shared network.

Referenced by is_interesting_config_clause(), and parse_command_line_opts().

◆ backups_found

unsigned int backups_found

◆ color_mode

unsigned int color_mode

Indicator if colors should be used in output.

Referenced by output_double_color(), output_txt(), and parse_command_line_opts().

◆ crit_count

double crit_count

Maximum number of free IP's before critical.

Referenced by parse_command_line_opts(), range_output_helper(), and shnet_output_helper().

◆ critical

double critical

◆ dhcpdconf_file

const char* dhcpdconf_file

Path to dhcpd.conf file.

Referenced by main(), must_put_base(), output_json(), and parse_command_line_opts().

◆ dhcpdlease_file

const char* dhcpdlease_file

◆ header_limit

unsigned int header_limit

◆ ip_version

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().

◆ leases

struct leases_t* leases

◆ minsize

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().

◆ mustach_template

const char* mustach_template

Mustach template file path.

Referenced by must_put_base(), mustach_dhcpd_pools(), and parse_command_line_opts().

◆ num_ranges

unsigned int num_ranges

◆ number_limit

unsigned int number_limit

◆ output_file

const char* output_file

Output file path.

Referenced by mustach_dhcpd_pools(), open_outfile(), and parse_command_line_opts().

◆ output_format

int output_format

Column to use in color_tags array.

Referenced by main(), output_analysis(), output_txt(), and start_color().

◆ perfdata

unsigned int perfdata

Include performance statistics when using Nagios alarm output format.

Referenced by output_alarming(), and parse_command_line_opts().

◆ ranges

struct range_t* ranges

◆ ranges_size

size_t ranges_size

Size of the ranges array.

Referenced by parse_config(), and prepare_memory().

◆ reverse_order

unsigned int reverse_order

Reverse sort order.

Referenced by main(), and parse_command_line_opts().

◆ shared_net_head

struct shared_network_t* shared_net_head

Last entry in shared network linked list.

Referenced by parse_config(), and prepare_memory().

◆ shared_net_root

struct shared_network_t* shared_net_root

◆ skip_critical

unsigned int skip_critical

Skip critical values from output.

Referenced by range_output_helper(), shnet_output_helper(), and skip_arg_parse().

◆ skip_minsize

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().

◆ skip_ok

unsigned int skip_ok

Skip none-alarming values from output.

Referenced by range_output_helper(), shnet_output_helper(), and skip_arg_parse().

◆ skip_suppressed

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().

◆ skip_warning

unsigned int skip_warning

Skip warning values from output.

Referenced by range_output_helper(), shnet_output_helper(), and skip_arg_parse().

◆ snet_alarms

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().

◆ sorts

struct output_sort* sorts

Linked list how to sort ranges.

Referenced by clean_up(), main(), merge(), and parse_command_line_opts().

◆ warn_count

double warn_count

Maximum number of free IP's before warning.

Referenced by parse_command_line_opts(), range_output_helper(), and shnet_output_helper().

◆ warning

double warning

The documentation for this struct was generated from the following file: