Page 1 of 2

CRITICAL: No DHCPOFFERs were received.

Posted: Mon Apr 14, 2014 6:01 pm
by Etutega
I need help, i have configured Nagios and trying to monitor DHCP on my local host
i keep geting this error "CRITICAL: No DHCPOFFERs were received."

i have opened up dhcp ports still the same issue

my ip table
-A INPUT -i eth1 -p udp --sport 67:68 --dport 67:68 -j ACCEPT

ls -l
-rwsr-x---. 1 root nagios 170931 Apr 7 15:05 check_dhcp

what did i miss guys?

Re: CRITICAL: No DHCPOFFERs were received.

Posted: Tue Apr 15, 2014 10:36 am
by abrist
Etutega wrote:I need help, i have configured Nagios and trying to monitor DHCP on my local host
Are you checking against localhost? If so, is localhost a dhcp server?
Usually you check against the dhcp server. Can you post the full command of the check you are attempting?

Re: CRITICAL: No DHCPOFFERs were received.

Posted: Tue Apr 15, 2014 10:39 am
by lmiltchev
Do you have another firewall besides iptables between the DHCP server and your nagios machine? UDP port 67 is used on the server site; UDP port 68 is used on the client site.

Re: CRITICAL: No DHCPOFFERs were received.

Posted: Wed Apr 16, 2014 12:30 pm
by Etutega
abrist wrote:
Etutega wrote:I need help, i have configured Nagios and trying to monitor DHCP on my local host
Are you checking against localhost? If so, is localhost a dhcp server?
Usually you check against the dhcp server. Can you post the full command of the check you are attempting?
Yes the localhost is my dhcp server
[root@Master libexec]# ./check_dhcp -v -i eth1
DHCP socket: 3
Hardware address: 00:0c:29:dc:f0:2f
DHCPDISCOVER to 255.255.255.255 port 67
DHCPDISCOVER XID: 610191071 (0x245EC6DF)
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.
[root@Master libexec]#

what i have noticed if i am monitoring another dhcp server it will pick that up...... does this mean i can not have nagios and dhcp on the same machine?

Re: CRITICAL: No DHCPOFFERs were received.

Posted: Wed Apr 16, 2014 12:32 pm
by Etutega
lmiltchev wrote:Do you have another firewall besides iptables between the DHCP server and your nagios machine? UDP port 67 is used on the server site; UDP port 68 is used on the client site.
i do not have another firewall.. what is strange is i can monitor another dhcp server but i can't for the service in my localhost... does this mean i can't have nagios and dhcp on the same machine?

Re: CRITICAL: No DHCPOFFERs were received.

Posted: Wed Apr 16, 2014 3:48 pm
by lmiltchev
Are you sure that localhost is your dhcp server? Try testing it with dhcping:

Code: Select all

dhcping -s <server ip> -c <client ip>
When I test our dhcp server, I get:

Code: Select all

[root@localhost ~]# dhcping -s 192.168.x.x -c 192.168.x.x
Got answer from: 192.168.x.x
but when I test it against localhost (it's not a dhcp server), I get "no answer"):

Code: Select all

[root@localhost ~]# dhcping -s 127.0.0.1 -c 192.168.x.x
no answer
If you don't have dhcping installed, you can install it by running:

Code: Select all

yum install dhcping -y
You can try some other tools for debugging, such as dhcpdump.

Re: CRITICAL: No DHCPOFFERs were received.

Posted: Wed Apr 16, 2014 3:54 pm
by tmcdonald
Also, are you certain that DHCP is even running?

Code: Select all

service dhcpd status

Re: CRITICAL: No DHCPOFFERs were received.

Posted: Wed Oct 29, 2014 12:56 pm
by sblain
Hola!! a mi me pasa lo mismo...alguna sugerencia???

Hi, I've the same problem...any ideas??

Re: CRITICAL: No DHCPOFFERs were received.

Posted: Wed Oct 29, 2014 1:08 pm
by tmcdonald
Has hecho las cosas sugeridas en este tema?

Have you done the things suggested in this topic?

Code: Select all

root@dhcp:  service dhcpd status

Code: Select all

root@nagiosxi:  yum install dhcping -y
root@nagiosxi:  dhcping -s <server ip> -c <client ip>

Re: CRITICAL: No DHCPOFFERs were received.

Posted: Wed Oct 29, 2014 4:18 pm
by sblain
que bueno q hablan espaƱol.
si he hecho casi todo..
mi server dhcp esta running
tiene puesto el campo server-identifier con la ip
no tengo firewall levantados en la pc
y los clientes dhcp estan recibiendo ip de ese servidor...

no he podido instalar el paquete dhcping porque no esta disponible en el repositorio de mi empresa..pero hice las otras sugerencias (probe con otra mac fuera de la subred a la que pertenece el dhcp):

Code: Select all

check_dhcp -m [some other mac] -r [IP for some other mac] -t 60 -i eth0 -v
y la salida fue:

DHCP socket: 3
DHCPDISCOVER to 255.255.255.255 port 67
DHCPDISCOVER XID: 2142230604 (0x7FAFD84C)
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.