Service Description Ping and HTTP

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
User avatar
hbackus
Posts: 36
Joined: Tue May 17, 2011 5:02 pm

Service Description Ping and HTTP

Post by hbackus »

---- Nagios Core 4.2.2 running OK. ----

I have several hosts that I check by PING. I have one host that blocks ICMP but has port 80 open.

I decided to check on this particular host using check_tcp.

I created a define service and a servicegroup for check_tcp for this host. For the most part all is well except the host shows up in the Hosts page with "Down" Ping Critical Packet loss 100%. I don't have a PING service define for this host.

I do see the host in the Services page with the HTTP OK.

How do I stop PING from testing the host that does not respond to ICMP.

I have added graphics of what the GUI displays for this host in the Hosts and Service pages.

:?
Attachments
Host page display
Host page display
bhds-http-hostgoup.jpg (5.29 KiB) Viewed 2057 times
Services page display
Services page display
bhds-http-servicegroup.jpg (8.63 KiB) Viewed 2057 times
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Service Description Ping and HTTP

Post by mcapra »

Can you show us the configuration files this host (bhds-aig-portal) is leveraging? It's hard to say for sure what's going on without having the configuration set.

What you'll likely need to do is change your host definition to use a different check_command other than check_icmp.
Former Nagios employee
https://www.mcapra.com/
User avatar
hbackus
Posts: 36
Joined: Tue May 17, 2011 5:02 pm

Re: Service Description Ping and HTTP

Post by hbackus »

Thanks mcapra,

I think I found a solution out on the web.

I am trying it now. and will update shortly.
:oops:
User avatar
hbackus
Posts: 36
Joined: Tue May 17, 2011 5:02 pm

Re: Service Description Ping and HTTP

Post by hbackus »

I found a comment on the web where someone made a "no ping" template and then used that for the check for the host.

That let the host show in the hosts page without being shown as down and use the http port 80 check to display its status as well as the display in the Services page.

Here is the link.

https://milliondollarserver.com/nagios- ... -ping.html

I modified it just a little bit to suit my needs.

20 - 20 hindsight I should of named the subject line of the post "How not to Ping a host"

:)
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Service Description Ping and HTTP

Post by mcapra »

Thanks for sharing your solution! Did you have additional questions regarding this issue, or can we close this thread and mark it as resolved?
Former Nagios employee
https://www.mcapra.com/
Locked