Hello,
I am monitoring Fortigates using SNMPv3. Among other things I monitor the status of DHCP scopes to be informed if they are near to get full. The main (and the only) OID related is 1.3.6.1.4.1.12356.101.23.2.1.1.2. It returns per line the amount of assigned leases in percents of the total IP addresses in the scope.
I can see the following situation: if there are reservations in the DHCP scope and if a device with a reservation got a lease, this device (this lease) is not counted in the SNMP response. It can lead to situations that some IP addresses are assigned and not free anymore, but the number of assigned leases according to SNMP is still 0. Which is wrong.
Different Fortigates 100E, 100F and 200E and FortiOS 7.2.11 and 7.4.8.
Could anyone please check this and let me know if I am missing anything?
Hello Hermann,
Thank you for using the Community Forum. I will seek to get you an answer or help. We will reply to this thread with an update as soon as possible.
Thanks,
Hi Hermann
Could you please share the configuration related to DHCP? If possible, please also help capture logs and sniffer packets related to snmp.
Kindly send the information to my official email: bhoang@fortinet.com. I’d like to review the issue further.
1. Open a session for debug:
dia debug application snmpd -1
dia debug enable
2. Another session to capture packet
dia sniffer packet any "host snmp.server.ip" 6 0 l
3. Another session to capture packets
diagnose sniffer packet any "port 161" 6 0 l
Regards
Bill
Created on 08-18-2025 08:51 AM Edited on 08-18-2025 08:59 AM
Thanks, Bill!
I am sending the config and the output of some CLI commands as well as of the SNMPWALK to your email address. I have not captured the traffic because we are using SNMPv3 (with encryption), which would not show you anything readable.
BR,
Hermann
Hi @hermann
We have information from our engineering team regarding a similar issue: "the percentage is calculated based on available IP addresses, excluding the reserved ones". Therefore, this appears to be expected behavior. Thank you
Bill
thanks Bill!
Do you mean that it is not a bug, it's a feature? And that this won't be changed?
Depends on the hardware platform if the MIB is supported. Last I checked, SRX 300 series did not support that MIB, for instance. I would love to find out that this has been remedied.
User | Count |
---|---|
2571 | |
1365 | |
796 | |
652 | |
455 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.