Check_dhcp socket error eth0

on my IcingaWeb2 Master
i have in /usr/lib/nagios/plugins
the check_dhcp.
doing a ./check_dhcp gives a error
Error: Could not bind socket to interface eth0. Check your privileges…

the Problem in Debian9 i don’t have a ethnet Port any more but it is called “ens18”

have a nice day


you can specify the -i attribute to define the interface.

 -i, --interface=STRING
    Interface to to use for listening (i.e. eth0)

For additional details have a look here:

btw: The Icinga Web 2 categorie don’t fit here, please use for plugin related questions the plugin categorie. I changed it in this case.