Page 1 of 1

Issue with DHCP Service

Posted: Thu Nov 21, 2019 4:49 am
by Srinija544
Hi All,

We have configured DHCP Service in Nagios XI but we are getting an error message stating:
============================================================================
Error: Could not bind socket to interface eth0. Check your privileges...
================================================================================
Configuration:
============================
Please find the attachment.
=================================
The permissions for the plugin are as follows:
==============================================
-rwsrwxr-x 1 root nagios 211216 Jul 10 02:26 check_dhcp
==================================================
Even if i run the plugin command in the server i am getting the same error:
============================================
Moderator Note: Content removed per request
Error: Could not bind socket to interface eth0. Check your privileges...


Please help me in solving this issue.

Thanks in advance.
Regards,
Srinija.

Re: Issue with DHCP Service

Posted: Thu Nov 21, 2019 3:40 pm
by mbellerue
Without any additional input, check_dhcp will try to bind on eth0. Most Linux distributions moved to the Consistent Network Device Naming convention, which gives you an interface name similar to ens32, even on a machine with 1 NIC.

You will need to find out what the name of your network adapter is, and then in the $ARG1$ field, specify the network adapter. For example, if your adapter name is ens32, you would use -i ens32