Check_dhcp socket error eth0

Hello
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
vinc

Hi,

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:

https://www.monitoring-plugins.org/doc/man/check_dhcp.html

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.

Regards
Michael