connect to address 127.0.0.1 and port 0: Connection refused
Posted: Sat Apr 27, 2024 12:35 am
Hi All,
Greetings of the day !
I have one RHEL EC2 instance running nginx listening to port 80. I have defined commands and service check in host config file to monitor this host.
After running below command manually, I could see it's working perfectly.
./check_tcp -H 13.233.117.236 -p 80 -w 10 -c 20
TCP OK - 0.001 second response time on 13.233.117.236 port 80|time=0.001162s;10.000000;20.000000;0.000000;10.000000
But on GUI it shows an error like below, i tried to see port 80 is open in firewall so what can be reason here ?
connect to address 127.0.0.1 and port 0: Connection refused.
Below command already defined in commands.cfg,
define command {
command_name check_tcp
command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$
}
On host nrpe.cfg, defined below command,
command[check_tcp]=/usr/local/nagios/libexec/check_tcp -w 10 -c 20
Thanks,
Piyush Nikhade.
Greetings of the day !
I have one RHEL EC2 instance running nginx listening to port 80. I have defined commands and service check in host config file to monitor this host.
After running below command manually, I could see it's working perfectly.
./check_tcp -H 13.233.117.236 -p 80 -w 10 -c 20
TCP OK - 0.001 second response time on 13.233.117.236 port 80|time=0.001162s;10.000000;20.000000;0.000000;10.000000
But on GUI it shows an error like below, i tried to see port 80 is open in firewall so what can be reason here ?
connect to address 127.0.0.1 and port 0: Connection refused.
Below command already defined in commands.cfg,
define command {
command_name check_tcp
command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$
}
On host nrpe.cfg, defined below command,
command[check_tcp]=/usr/local/nagios/libexec/check_tcp -w 10 -c 20
Thanks,
Piyush Nikhade.