statistics in a dhcp failover pair

Daniel Duarte dan.r.duarte at gmail.com
Thu Jul 23 20:05:25 UTC 2009


Hello,
thanks for the reply. based on your answer, I'm now calculating these
3 main counters for each pool:

nonassignedneverallocated = total_ip_count
		- n_free_leases - n_backup_leases
		- n_active_leases - n_expired_leases
		- n_released_leases - n_abandoned_leases
		- n_reset_leases - n_reserved_leases;

% available_primary = (free + abandoned + nonassignedneverallocatet) / total;
% available_secondary = backup_leases / total;
% total_used = active / total;

The results seem to make sence; I just have a question, when you said:

> Also expired.  There isn't a reserved state, it's a flag on the
> lease which may be in any other state, but I can see how it could
> influence statistics...

Aren't the expired leases in state "expired" on the lease file? If
not, what is this state used for?

I'm thinking that when I parse each lease, I could validate the "end"
time, and if it is greater than the present time then I would count it
as expired instead of counting it for its' displayed state. Any
thoughts?

Thanks for all the help,
Daniel Duarte



More information about the dhcp-users mailing list