Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Zevenet CE Health check (farmguardian) issue #3

Open
greg-kl opened this issue Apr 20, 2022 · 23 comments
Open

Zevenet CE Health check (farmguardian) issue #3

greg-kl opened this issue Apr 20, 2022 · 23 comments

Comments

@greg-kl
Copy link

greg-kl commented Apr 20, 2022

Hello,

We have a new problem with verifying Exchange publications using health-checks. We publish Exchange using Microsoft Web Application Proxy (WAP) and use Zevenet Load Balancer to route network traffic to the WAP servers.
Here is an simple explanation how is the infrastructure configured:

image

We observe that a Health-Check result every few attempts on all publications results in a "CRITICAL - Socket timeout after 15 seconds" (timeout is configured for 15s) error which causes the publication to become unavailable and clients to disconnect until the next Health-check verification is successful. This is happening on marked DMZ Zevenet NLB Cluster. NLB and WAP are both in the same DMZ network.

Below are examples:

Example 1
image

Example 2 (after refresh)
image

We can reproduce non availability status by manual tests:
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 15
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.053 second response time |time=0.053404s;;;0.000000;15.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 15
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.064 second response time |time=0.064276s;;;0.000000;15.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 15
CRITICAL - Socket timeout after 15 seconds

System specs:
ZEVENET Community Edition

"params": {
"appliance_version": "ZCE 6, hypervisor: HyperV",
"edition": "community",
"hostname": "KWARV-LBZ01",
"kernel_version": "4.19.0-17-amd64",
"language": "",
"last_zapi_version": "4.0.1",
"platform": "nocloud",
"supported_zapi_versions": [
"3",
"3.1",
"3.2",
"4.0.1"
],
"system_date": "Wed Apr 20 11:19:49 2022",
"user": "root",
"zevenet_version": "5.11.2"

@emiliocampos-zevenet
Copy link

emiliocampos-zevenet commented Apr 20, 2022 via email

@greg-kl
Copy link
Author

greg-kl commented Apr 20, 2022

Thank you for suggestions. I raised timeout up to 100s to measure real time of response and now I'm getting: HTTP CRITICAL: HTTP/1.1 504 Gateway Timeout

[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.062 second response time |time=0.061959s;;;0.000000;100.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.066 second response time |time=0.065765s;;;0.000000;100.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.068 second response time |time=0.068181s;;;0.000000;100.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.068 second response time |time=0.068449s;;;0.000000;100.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.061 second response time |time=0.060556s;;;0.000000;100.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP CRITICAL: HTTP/1.1 504 Gateway Timeout - 165 bytes in 21.052 second response time |time=21.051507s;;;0.000000;100.000000 size=165B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.066 second response time |time=0.065751s;;;0.000000;100.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.058 second response time |time=0.057824s;;;0.000000;100.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.065 second response time |time=0.064926s;;;0.000000;100.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.060 second response time |time=0.060193s;;;0.000000;100.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP CRITICAL: HTTP/1.1 504 Gateway Timeout - 165 bytes in 21.045 second response time |time=21.044973s;;;0.000000;100.000000 size=165B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.063 second response time |time=0.062889s;;;0.000000;100.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP CRITICAL: HTTP/1.1 504 Gateway Timeout - 165 bytes in 21.048 second response time |time=21.048028s;;;0.000000;100.000000 size=165B;;;0

it seems like Web Application Proxy might drop this request after 21s.

@emiliocampos-zevenet
Copy link

emiliocampos-zevenet commented Apr 20, 2022 via email

@greg-kl
Copy link
Author

greg-kl commented Apr 20, 2022

This is backend IP (Web App Proxy node.), not a VIP on loadbalancer.

@emiliocampos-zevenet
Copy link

emiliocampos-zevenet commented Apr 20, 2022 via email

@greg-kl
Copy link
Author

greg-kl commented Apr 20, 2022

I will verify that and send back the results.

@greg-kl
Copy link
Author

greg-kl commented Apr 20, 2022

I did some health-check accessibility testing using MS Edge on windows client. The traffic from this workstation is directed to the "DMZ nlb cluster" to simulate an external connection. I performed 100 queries every 1 second. Each query ends with a status of 200. The same attempt without a single "timeout" error from the loadbalancer is impossible.

image

@emiliocampos-zevenet
Copy link

emiliocampos-zevenet commented Apr 20, 2022 via email

@greg-kl
Copy link
Author

greg-kl commented Apr 20, 2022

Hi,I don't see any relation between the check_http timeout and 504 timeout
issue and this new issue you are describing here.

This depend how I set Timeout value for health-check. If higher than 21s then I got 504 Timeout. Below 21s there is Socket Timeout.

For me it's weird to set timeout for "check" at 21s or higher if two host are in the same area and subnet. Please take a look at the response time when attempt is finished with code 200. The response in each attempt is imeddiate - no delay.

At this moment, I disabled health-check verification for all publicated services. Administrators will observe if the users are facing connection issues.

I can collect and provide you any reqired information, depending on what level of assistance will be offered.

@emiliocampos-zevenet
Copy link

emiliocampos-zevenet commented Apr 20, 2022 via email

@emiliocampos-zevenet
Copy link

emiliocampos-zevenet commented Apr 20, 2022 via email

@greg-kl
Copy link
Author

greg-kl commented Apr 20, 2022

I did tests with changed commands and I'm still getting this same timeout:

[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.070 second response time |time=0.069760s;;;0.000000;100.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -I 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.064 second response time |time=0.064062s;;;0.000000;100.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -I 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.078 second response time |time=0.078198s;;;0.000000;100.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -I 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.068 second response time |time=0.068131s;;;0.000000;100.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -I 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.072 second response time |time=0.071510s;;;0.000000;100.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -I 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP CRITICAL: HTTP/1.1 504 Gateway Timeout - 165 bytes in 21.046 second response time |time=21.045910s;;;0.000000;100.000000 size=165B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H 10.1.8.71 -I 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.069 second response time |time=0.069194s;;;0.000000;100.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H 10.1.8.71 -I 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP CRITICAL: HTTP/1.1 504 Gateway Timeout - 165 bytes in 21.045 second response time |time=21.045188s;;;0.000000;100.000000 size=165B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H 10.1.8.71 -I 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.070 second response time |time=0.069932s;;;0.000000;100.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H 10.1.8.71 -I 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.078 second response time |time=0.077526s;;;0.000000;100.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H 10.1.8.71 -I 10.1.8.71 -u https://mail.org.com/microsoft-server-activesync/healthcheck.htm -p 443 -S -t 100
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.074 second response time |time=0.074391s;;;0.000000;100.000000 size=270B;;;0

I will try to prepare additional workstation in this same DMZ network as NLB.

@emiliocampos-zevenet
Copy link

emiliocampos-zevenet commented Apr 20, 2022 via email

@greg-kl
Copy link
Author

greg-kl commented Apr 20, 2022

Regarding tests performed from a workstation. Communication to Exhcange services from this workstation is routed through Loadbalancer in DMZ network. It means that the same URL is queried with a web browser, the tests are positive, and the Loadbalancer is used in the communication, from which the execution of the same test ends with Timeout errors several times.

@emiliocampos-zevenet
Copy link

emiliocampos-zevenet commented Apr 20, 2022 via email

@greg-kl
Copy link
Author

greg-kl commented Apr 20, 2022

Yes. I will provide you these info tomorrow.

@greg-kl
Copy link
Author

greg-kl commented Apr 21, 2022

ViP for exchange farm: 10.1.8.55

Backend's Ip's:
10.1.8.71
10.1.8.72

[master] root@KWARV-LBZ02:~# ip rule list
0:      from all lookup local
25996:  from all fwmark 0x203/0x7fffffff lookup table_eth0
25997:  from all fwmark 0x202/0x7fffffff lookup table_eth0
25998:  from all fwmark 0x201/0x7fffffff lookup table_eth0
25999:  from all fwmark 0x200/0x7fffffff lookup table_eth0
32000:  from 10.1.8.0/25 lookup table_eth0
32766:  from all lookup main
32767:  from all lookup default
[master] root@KWARV-LBZ02:~# ip route list table table_eth0
default via 10.1.8.3 dev eth0
10.1.8.0/25 dev eth0 scope link src 10.1.8.52

@emiliocampos-zevenet
Copy link

emiliocampos-zevenet commented Apr 21, 2022 via email

@greg-kl
Copy link
Author

greg-kl commented Apr 21, 2022

still some timeouts:

[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 6.467 second response time |time=6.466989s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.043 second response time |time=0.043138s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.034 second response time |time=0.033805s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.038 second response time |time=0.038105s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.041 second response time |time=0.040568s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
**connect to address mail.org.com and port 443: Connection timed out
HTTP CRITICAL - Unable to open TCP socket**
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.056 second response time |time=0.055771s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.048 second response time |time=0.047886s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.045 second response time |time=0.044689s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.046 second response time |time=0.045601s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.052 second response time |time=0.052083s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.043 second response time |time=0.042965s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.047 second response time |time=0.046871s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.052 second response time |time=0.051764s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.046 second response time |time=0.045729s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.044 second response time |time=0.044052s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.047 second response time |time=0.047158s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.045 second response time |time=0.045243s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.042 second response time |time=0.042202s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.047 second response time |time=0.046879s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
**connect to address mail.org.com and port 443: Connection timed out
HTTP CRITICAL - Unable to open TCP socket**
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.049 second response time |time=0.049068s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.047 second response time |time=0.047345s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.051 second response time |time=0.050597s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
**connect to address mail.org.com and port 443: Connection timed out
HTTP CRITICAL - Unable to open TCP socket**
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.046 second response time |time=0.045866s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.045 second response time |time=0.045190s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
connect to address mail.org.com and port 443: Connection timed out
HTTP CRITICAL - Unable to open TCP socket
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.038 second response time |time=0.037686s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.038 second response time |time=0.037895s;;;0.000000;40.000000 size=248B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 248 bytes in 0.045 second response time |time=0.044962s;;;0.000000;40.000000 size=248B;;;0

@emiliocampos-zevenet
Copy link

emiliocampos-zevenet commented Apr 21, 2022 via email

@greg-kl
Copy link
Author

greg-kl commented Apr 21, 2022

Sorry, jus missed -I in command. Here is short result still getting:

HTTP CRITICAL: HTTP/1.1 504 Gateway Timeout - 165 bytes in 21.015 second response time |time=21.015130s;;;0.000000;40.000000 size=165B;;;0

[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -I 10.1.8.71 -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.068 second response time |time=0.067838s;;;0.000000;40.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -I 10.1.8.71 -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.072 second response time |time=0.072147s;;;0.000000;40.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -I 10.1.8.71 -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.069 second response time |time=0.068943s;;;0.000000;40.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -I 10.1.8.71 -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP CRITICAL: HTTP/1.1 504 Gateway Timeout - 165 bytes in 21.015 second response time |time=21.015130s;;;0.000000;40.000000 size=165B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -I 10.1.8.71 -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.060 second response time |time=0.060004s;;;0.000000;40.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -I 10.1.8.71 -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.069 second response time |time=0.068622s;;;0.000000;40.000000 size=270B;;;0
[master] root@KWARV-LBZ02:/lib/nagios/plugins# ./check_http -H mail.org.com -I 10.1.8.71 -u /microsoft-server-activesync/healthcheck.htm -p 443 -S -t 40
HTTP OK: HTTP/1.1 200 OK - 270 bytes in 0.065 second response time |time=0.065477s;;;0.000000;40.000000 size=270B;;;0
mail.org.com

Im using mail.org.com as example here. I will not publish full adress of the mailbox service of my customer here on public forum. If you need real names to check something, we need to switch to direct e-mail corrsepondence.

@emiliocampos-zevenet
Copy link

emiliocampos-zevenet commented Apr 21, 2022 via email

@greg-kl
Copy link
Author

greg-kl commented Apr 21, 2022

there is no proxy configured, all servers are hosted in one data center.

SHELL=/bin/bash
LANGUAGE=en_US:en
PWD=/lib/nagios/plugins
LOGNAME=root
XDG_SESSION_TYPE=tty
HOME=/root
LANG=en_US.UTF-8
PROMPT_COMMAND=echo -n [$(cat /etc/zevenet-ce-cluster.status 2>/dev/null)]
SSH_CONNECTION=192.168.5.25 58279 10.1.8.50 22
XDG_SESSION_CLASS=user
TERM=xterm
USER=root
SHLVL=1
XDG_SESSION_ID=65341
XDG_RUNTIME_DIR=/run/user/0
SSH_CLIENT=192.168.5.25 58279 22
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
MAIL=/var/mail/root
SSH_TTY=/dev/pts/0
_=/usr/bin/env
OLDPWD=/root

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants