Page 1 of 1
Web URL monitoring was not working on NagiosXI
Posted: Mon Aug 21, 2017 7:50 am
by anish
Hi,
We have configured the some of web urls monitoring on NagiosXi console but It's not working even though given username & passwd .
Errors :
1. connect to address 64.78.237.18 and port 443: Connection refused
2. (No output on stdout) stderr: /bin/sh: -c: line 0: unexpected EOF while looking for matching `''
3. HTTP WARNING: HTTP/1.1 401 Unauthorized - 1528 bytes in 0.220 second response time
Kindly provide your suggestions on this Web URL monitoring ,It's very important for us and it was effected business .
Re: Web URL monitoring was not working on NagiosXI
Posted: Mon Aug 21, 2017 10:43 am
by bolson
Hello anish,
Please execute the following command from your NagiosXI server and post the result:
Also, on the 64.78.237.18 host, please run the following and post the result:
Re: Web URL monitoring was not working on NagiosXI
Posted: Tue Aug 29, 2017 5:38 am
by anish
Hi ,
Sorry delay response.
I have ran the commands and their output as below , Please let us know.
[root@XXXX ~]# telnet 64.78.237.18 443
Trying 64.78.237.18...
telnet: connect to address 64.78.237.18: Connection refused
iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:http
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:https
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
sestatus
SELinux status: disabled
Re: Web URL monitoring was not working on NagiosXI
Posted: Tue Aug 29, 2017 8:41 am
by mcapra
anish wrote:
Code: Select all
[root@XXXX ~]# telnet 64.78.237.18 443
Trying 64.78.237.18...
telnet: connect to address 64.78.237.18: Connection refused
Have you verified the address 64.78.237.18 is reachable from the Nagios XI machine over port 443? According to the telnet, TCP connections from the Nagios XI machine to that address are being refused. I suspect there is some firewall or network configuration preventing Nagios XI from reaching that address via that port.
Re: Web URL monitoring was not working on NagiosXI
Posted: Tue Aug 29, 2017 9:35 am
by anish
We have tested Ping and Telnet and it is not working from Nagios server, Please let us know further on this.
Re: Web URL monitoring was not working on NagiosXI
Posted: Tue Aug 29, 2017 10:06 am
by bolson
Hello,
The firewall on the host that you are monitoring is preventing the connection. Do you have a Linux Systems Admin who can properly configure your iptables firewall to allow this traffic? Or as a test, disable the firewall briefly to confirm my suspicions: