nagios check_http fails on gui but not from commandline
Posted: Tue Dec 17, 2019 7:36 am
I am runnining Nagios corewith nrpe and xinetd on centos 7 this is a new install on our aws testbench
running http_check on the master from cmd via nrpe:
centos-nagios etc]$ sudo /usr/local/nagios/libexec/check_nrpe -H x.x.x.x check_http
NRPE v3.2.1
running http_check on the agent fails???:
agent-nagios ~]$ sudo /usr/lib64/nagios/plugins/check_http -H localhost
connect to address localhost and port 80: Connection refused
HTTP CRITICAL - Unable to open TCP socket
trying localhost by ip on agent:
agent-nagios ~]$ sudo /usr/lib64/nagios/plugins/check_http -H 127.0.0.1
connect to address 127.0.0.1 and port 80: Connection refused
Also Fails on master nagios gui :
Host Status:
DOWN
(for 0d 0h 41m 52s)
Status Information:
connect to address x.x.x.x and port 80: Connection refused
HTTP CRITICAL - Unable to open TCP socket
aws and local firewalls are allowing port 80 (as proved with the master to agent call that works)
nrpe file contains the following (I have seen this on sites with and without a comma seperator but it only works without on this server):
group = nagios
server = /usr/sbin/nrpe
server_args = -c /etc/nagios/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 127.0.0.1 x.x.x.x
on the client: (shoukld this xinetd?? as nrpe is not running when
test ~]$ grep 5666 /etc/services
nrpe 5666/tcp # nrpe (nagios)
I am obviously missing something (probably glaringly obvious) can someone enlighten me
Thanks in advance
running http_check on the master from cmd via nrpe:
centos-nagios etc]$ sudo /usr/local/nagios/libexec/check_nrpe -H x.x.x.x check_http
NRPE v3.2.1
running http_check on the agent fails???:
agent-nagios ~]$ sudo /usr/lib64/nagios/plugins/check_http -H localhost
connect to address localhost and port 80: Connection refused
HTTP CRITICAL - Unable to open TCP socket
trying localhost by ip on agent:
agent-nagios ~]$ sudo /usr/lib64/nagios/plugins/check_http -H 127.0.0.1
connect to address 127.0.0.1 and port 80: Connection refused
Also Fails on master nagios gui :
Host Status:
DOWN
(for 0d 0h 41m 52s)
Status Information:
connect to address x.x.x.x and port 80: Connection refused
HTTP CRITICAL - Unable to open TCP socket
aws and local firewalls are allowing port 80 (as proved with the master to agent call that works)
nrpe file contains the following (I have seen this on sites with and without a comma seperator but it only works without on this server):
group = nagios
server = /usr/sbin/nrpe
server_args = -c /etc/nagios/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 127.0.0.1 x.x.x.x
on the client: (shoukld this xinetd?? as nrpe is not running when
test ~]$ grep 5666 /etc/services
nrpe 5666/tcp # nrpe (nagios)
I am obviously missing something (probably glaringly obvious) can someone enlighten me
Thanks in advance