command in the config is as follows:
check_dhcp!
Any clues as to why it is not working. DHCP has been setup and working fine for many years.
Looking to switch from Solarwinds to Nagios, but the configuration is cumbersome.
Thank for the help
CRITICAL: No DHCPOFFERs were received
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CRITICAL: No DHCPOFFERs were received
iptables is probably blocking it.
You can test by temporarily stopping iptables and running the check
run check
You can add then to iptable by running the following
You can test by temporarily stopping iptables and running the check
Code: Select all
service iptables stopCode: Select all
service iptables startCode: Select all
iptables -I INPUT -i eth0 -p udp --dport 67:68 --sport 67:68 -j ACCEPT-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: CRITICAL: No DHCPOFFERs were received
[root@helpdesk84 libexec]# service iptables stop
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]
[root@helpdesk84 libexec]# service iptables start
iptables: Applying firewall rules: [ OK ]
Do I need to apply?
This is using a static IP address, but DHCP is running on the network.
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]
[root@helpdesk84 libexec]# service iptables start
iptables: Applying firewall rules: [ OK ]
Do I need to apply?
This is using a static IP address, but DHCP is running on the network.
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: CRITICAL: No DHCPOFFERs were received
got it, sorry had to re-read
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CRITICAL: No DHCPOFFERs were received
Glad you got it!