Issue with DHCP Service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Srinija544
Posts: 58
Joined: Mon Oct 15, 2018 9:30 pm

Issue with DHCP Service

Post 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.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Issue with DHCP Service

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked