How to check_http with no ping? Required by Cloudflare

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
FeastOrDiet
Posts: 2
Joined: Tue Jan 30, 2018 12:02 pm

How to check_http with no ping? Required by Cloudflare

Post by FeastOrDiet »

Because Cloudflare does not support ping, a simple check_http is not useful because the host is reported as DOWN despite the HTTP service being detected as functional.
Host Status: DOWN (for 2d 7h 22m 4s)
Status Information: PING CRITICAL - Packet loss = 100%

I don't see a ping test in check_http, so that can not be disabled with that plugin. Yet the check_http command which is configured for the test is supposed to define what is tested. How is one supposed to disable what is apparently an implied ping test?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How to check_http with no ping? Required by Cloudflare

Post by tmcdonald »

A "ping" is typically referring to a proper ICMP check, not HTTP. check_http should still work - what exact options are you using? And if you run it from the command line directly with those options but add -v for verbose, what is the output?
Former Nagios employee
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: How to check_http with no ping? Required by Cloudflare

Post by dwhitfield »

Additionally, can you post your host definition and commands? By default the host check is ping and you would set up check_http as a service, but you can change the host check to be whatever you like.
Locked