critical: No DHCPOFFERs were received
Posted: Thu Jan 23, 2020 12:56 pm
So, as you can see, the error seems somewhat common here, but after searching through old posts, I haven't found anything overly helpful.
Background information.
nagios core 4.4.1, I know, there is an updated core, and maybe it would help, but I'd like to fix the issue, before updating.
The host and clients are running rhel 6.10.
They are NOT on the same subnet. Host would be on 192.168.100, and the clients would be on 192.168.40, for example.
All other checks work on the clients, only check_dhcp fails.
The firewall on both clients is OFF, but since the other checks work, I am assuming the hardware firewall has ports 67/68 open.
The ethernet adaptor names on the clients are NOT eth0, but instead em1. Why, I am not sure. Previous admin set them up and left no info regarding why the different names.
The 2 clients are both dhcp servers, set up identical, running basically as load balancers.
So, as things stand, the check_dhcp command fails, all other checks work. I checked the second dhcp server(I'll use dhcp1 and dhcp2), and it had a different check_dhcp command created. It is a much simpler command as it doesn't check for anything but if dhcpd is running, so nagios shows green for that 1, but that isn't really a fix.
I've checked permissions and currently they are rwxr-x-r-x root root. I have tried changing it to rwsrwxr-x nagios root, but it didn't make a difference.
If I run check_dhcp -i em1, I receive:
DHCP socket: 3
Hardware address: xxxxx
DHCPDISCOVER to 255.255.255.255 port 67
DHCPDISCOVER XID: 1090392876 (0x40FE132C)
DHCDISCOVER ciaddr: 0.0.0.0
DHCDISCOVER yiaddr: 0.0.0.0
DHCDISCOVER siaddr: 0.0.0.0
DHCDISCOVER giaddr: 0.0.0.0
send_dhcp_packet result: 548
No (more) data received (nfound: 0)
Result=ERROR
Total responses seen on the wire: 0
Valid responses for this machine: 0
CRITICAL: No DHCPOFFERs were received.
Keep in mind that both servers are functioning as intended, so they are working.
So, I am not sure what else to check. Most of the other topics on this, I have checked. I suppose I could install wireshark, but I've never used it, and since the other checks work, would it reveal anything?
I saw 1 person say the host and clients needed to be on the same subnet, but I am not sure why that would be.
Maybe the ethernet name is an issue? However, in nrpe, the adaptor name is specified.
Anyone have other ideas? Just know that I've done very little in nagios, so you might need to dumb it down some!
Background information.
nagios core 4.4.1, I know, there is an updated core, and maybe it would help, but I'd like to fix the issue, before updating.
The host and clients are running rhel 6.10.
They are NOT on the same subnet. Host would be on 192.168.100, and the clients would be on 192.168.40, for example.
All other checks work on the clients, only check_dhcp fails.
The firewall on both clients is OFF, but since the other checks work, I am assuming the hardware firewall has ports 67/68 open.
The ethernet adaptor names on the clients are NOT eth0, but instead em1. Why, I am not sure. Previous admin set them up and left no info regarding why the different names.
The 2 clients are both dhcp servers, set up identical, running basically as load balancers.
So, as things stand, the check_dhcp command fails, all other checks work. I checked the second dhcp server(I'll use dhcp1 and dhcp2), and it had a different check_dhcp command created. It is a much simpler command as it doesn't check for anything but if dhcpd is running, so nagios shows green for that 1, but that isn't really a fix.
I've checked permissions and currently they are rwxr-x-r-x root root. I have tried changing it to rwsrwxr-x nagios root, but it didn't make a difference.
If I run check_dhcp -i em1, I receive:
DHCP socket: 3
Hardware address: xxxxx
DHCPDISCOVER to 255.255.255.255 port 67
DHCPDISCOVER XID: 1090392876 (0x40FE132C)
DHCDISCOVER ciaddr: 0.0.0.0
DHCDISCOVER yiaddr: 0.0.0.0
DHCDISCOVER siaddr: 0.0.0.0
DHCDISCOVER giaddr: 0.0.0.0
send_dhcp_packet result: 548
No (more) data received (nfound: 0)
Result=ERROR
Total responses seen on the wire: 0
Valid responses for this machine: 0
CRITICAL: No DHCPOFFERs were received.
Keep in mind that both servers are functioning as intended, so they are working.
So, I am not sure what else to check. Most of the other topics on this, I have checked. I suppose I could install wireshark, but I've never used it, and since the other checks work, would it reveal anything?
I saw 1 person say the host and clients needed to be on the same subnet, but I am not sure why that would be.
Maybe the ethernet name is an issue? However, in nrpe, the adaptor name is specified.
Anyone have other ideas? Just know that I've done very little in nagios, so you might need to dumb it down some!