How to check_http with no ping? Required by Cloudflare

This forum is intended for the discussion of Nagios plugin development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The SourceForge.net nagiosplug-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

How to check_http with no ping? Required by Cloudflare

Postby FeastOrDiet » Thu Feb 01, 2018 4:49 pm

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?
FeastOrDiet
 
Posts: 2
Joined: Tue Jan 30, 2018 12:02 pm

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

Postby tmcdonald » Thu Feb 01, 2018 5:03 pm

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
tmcdonald
 
Posts: 9118
Joined: Mon Sep 23, 2013 8:40 am

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

Postby dwhitfield » Thu Feb 01, 2018 5:04 pm

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.
dwhitfield
Former Nagios Staff
 
Posts: 4569
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN


Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 3 guests