Web URL monitoring was not working on NagiosXI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
anish
Posts: 161
Joined: Tue Jul 19, 2016 5:29 am

Web URL monitoring was not working on NagiosXI

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

Re: Web URL monitoring was not working on NagiosXI

Post by bolson »

Hello anish,

Please execute the following command from your NagiosXI server and post the result:

Code: Select all

telnet 64.78.237.18 443
Also, on the 64.78.237.18 host, please run the following and post the result:

Code: Select all

iptables -L

sestatus
anish
Posts: 161
Joined: Tue Jul 19, 2016 5:29 am

Re: Web URL monitoring was not working on NagiosXI

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Web URL monitoring was not working on NagiosXI

Post 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.
Former Nagios employee
https://www.mcapra.com/
anish
Posts: 161
Joined: Tue Jul 19, 2016 5:29 am

Re: Web URL monitoring was not working on NagiosXI

Post by anish »

We have tested Ping and Telnet and it is not working from Nagios server, Please let us know further on this.
bolson

Re: Web URL monitoring was not working on NagiosXI

Post 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:

Code: Select all

service iptables stop
Locked