Skip to main content
esn
New Member
October 17, 2021
Question

Creating Zabbix discovery rule for dhcp lease usage in FortiOS 7.0.1

  • October 17, 2021
  • 1 reply
  • 3149 views

Hi,

I'm trying to create a discovery rule in Zabbix for the lease usage in each Vlan on my firewall (FortiOS 7.0.1)

I managed to create a discovery rule that is supposed to find it, but it seems like it finds only the unreserved leases and not the reserved ones (it gives a percentage of the used leases)

I wish to find the reserved and the unreserved leases, also i can't find anywhere the name of the Vlans leases (reserved and unreserved)

The table i found the unreserved lease usage is 

1.3.6.1.4.1.12356.101.23 (with snmpwalk)

 

I would appreciate your help

Ester

 

    1 reply

    ebilcari
    Staff
    Staff
    February 3, 2023

    The DHCP servers are not directly related to the interfaces or VLANs so in my knowledge there is no OID including the interface information.
    you have to manually search the config file:

    > config system dhcp server
    > show
    and the OID will increment based on the DHCP server configured
    .1.3.6.1.4.1.12356.101.23.2.1.1.2.1.1  [Name/OID: fgDhcpLeaseUsage.1.1]

     

    next one for example will be .1.3.6.1.4.1.12356.101.23.2.1.1.2.1.[2]

    for:

    edit 2
       set lease-time 3600
       set dns-service default
       set default-gateway 192.168.1.1

       set netmask 255.255.255.0
       set interface "fortilink"
       config ip-range
           edit 1
               set start-ip 192.168.1.201
               set end-ip 192.168.1.210
            next
    end

    ...

    Emirjon