CRITICAL: No DHCPOFFERs were received.

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Etutega
Posts: 3
Joined: Mon Apr 07, 2014 3:01 pm

CRITICAL: No DHCPOFFERs were received.

Post 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?
Last edited by slansing on Tue Apr 15, 2014 10:29 am, edited 1 time in total.
Reason: You are not posting in the support section, moving this to general Core.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: CRITICAL: No DHCPOFFERs were received.

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: CRITICAL: No DHCPOFFERs were received.

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Etutega
Posts: 3
Joined: Mon Apr 07, 2014 3:01 pm

Re: CRITICAL: No DHCPOFFERs were received.

Post 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?
Etutega
Posts: 3
Joined: Mon Apr 07, 2014 3:01 pm

Re: CRITICAL: No DHCPOFFERs were received.

Post 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?
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: CRITICAL: No DHCPOFFERs were received.

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: CRITICAL: No DHCPOFFERs were received.

Post by tmcdonald »

Also, are you certain that DHCP is even running?

Code: Select all

service dhcpd status
Former Nagios employee
sblain
Posts: 3
Joined: Wed Oct 29, 2014 11:15 am

Re: CRITICAL: No DHCPOFFERs were received.

Post by sblain »

Hola!! a mi me pasa lo mismo...alguna sugerencia???

Hi, I've the same problem...any ideas??
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: CRITICAL: No DHCPOFFERs were received.

Post 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>
Former Nagios employee
sblain
Posts: 3
Joined: Wed Oct 29, 2014 11:15 am

Re: CRITICAL: No DHCPOFFERs were received.

Post 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.
Locked