Unable to monitor windows DHCP server in nagiosXI.

This board serves as an open discussion and support collaboration point for Nagios XI. NOTE: Nagios XI customers should use the Customer Support forum to obtain expedited support.

Unable to monitor windows DHCP server in nagiosXI.

Postby vinish098 » Mon Jun 17, 2019 5:13 am

Hi,

We are trying to monitor the Windows DHCP server in NagiosXI. But we are getting an error called error: could bind the socket to interface eth0. check your privileges.

Pls, help us to solve this issue. Its windows DHCP server.
vinish098
 
Posts: 126
Joined: Fri Oct 21, 2016 6:30 am

Re: Unable to monitor windows DHCP server in nagiosXI.

Postby scottwilkerson » Mon Jun 17, 2019 9:54 am

Can you show the command Nagios is trying to run (from the CCM -> Service)

also, from the CLI can you show the output of the following commands
Code: Select all
ls -l /usr/local/nagios/libexec/check_dhcp
ip add


You will likely have to specify the interface name with the -i flag, it defaults to eth0 but your interface may have a different name (see in the ip add command)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 15076
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Unable to monitor windows DHCP server in nagiosXI.

Postby vinish098 » Mon Jun 17, 2019 11:02 am

Hi,

Thanks for the reply, As you said need to provide interface name with -I in the check_dhcp plugin. But how can we get this info in windows server? these things are possible only on Linux. Can you pls help me to in this problem for monitoring of windows DHCP server.
vinish098
 
Posts: 126
Joined: Fri Oct 21, 2016 6:30 am

Re: Unable to monitor windows DHCP server in nagiosXI.

Postby scottwilkerson » Mon Jun 17, 2019 11:04 am

You need the interface name of your XI server, not the Windows server.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 15076
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Unable to monitor windows DHCP server in nagiosXI.

Postby vinish098 » Tue Jun 18, 2019 5:09 am

Hi Scottwilkerson,

After running the command ./check_dhcp -i interface-name we are getting the output as. CRITICAL: No DHCPOFFERs were received.
vinish098
 
Posts: 126
Joined: Fri Oct 21, 2016 6:30 am

Re: Unable to monitor windows DHCP server in nagiosXI.

Postby scottwilkerson » Tue Jun 18, 2019 6:39 am

Is your XI server on the same network segment to be able to receive an offer from the Windows server?

If so, then, this sounds like the DHCP server isn't functioning.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 15076
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Unable to monitor windows DHCP server in nagiosXI.

Postby vinish098 » Fri Jun 28, 2019 8:54 am

Hi scott,

Thanks for your reply.

We are trying to run below commands in nagios server.

#./check_dhcp -v -u -s <dhcp IP address>
Error: Could not bind socket to interface eth0, check your priviliges.

#telnet <dhcp ip address> 67 or 68(default dhcp port numbers)
error: couldnot connect to ip address, connection refused.

DHCP Server is windows server. we want to any modifications. please let us know.

Errors is attached.

Thanks
Attachments
error 2.PNG
error 2.PNG (8.31 KiB) Viewed 322 times
Error 1.PNG
Error.PNG
Error.PNG (5.14 KiB) Viewed 322 times
vinish098
 
Posts: 126
Joined: Fri Oct 21, 2016 6:30 am

Re: Unable to monitor windows DHCP server in nagiosXI.

Postby ssax » Fri Jun 28, 2019 2:34 pm

Please run these commands:

Code: Select all
firewall-cmd --permanent --add-service dhcp
firewall-cmd --permanent --add-port 68/udp
firewall-cmd --complete-reload


Then try it again.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
ssax
Dreams In Code
 
Posts: 4122
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unable to monitor windows DHCP server in nagiosXI.

Postby vinish098 » Tue Jul 02, 2019 12:27 am

Hello ssax,

After executing given commands still we are facing Error: Could not bind socket to interface eth0. Check your privileges....

Critical: No DHCPOFFERS were received.
vinish098
 
Posts: 126
Joined: Fri Oct 21, 2016 6:30 am

Re: Unable to monitor windows DHCP server in nagiosXI.

Postby scottwilkerson » Tue Jul 02, 2019 7:17 am

Can you run the following to verify what interface name your system is using
Code: Select all
ip address
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 15076
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Next

Return to Nagios XI

Who is online

Users browsing this forum: dlasker and 18 guests