check_http is never scheduled

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: check_http is never scheduled

Post by vmesquita »

I PMed you with both the Verify output and the screenshot previously requested. I tested after the procedure and the problem remains.
kyang

Re: check_http is never scheduled

Post by kyang »

Thanks for the information. I have shared it with the other techs.

I'm trying to figure out the reason for running two -H

Code: Select all

/usr/local/nagios/libexec/check_http -H x -s "x" -H www3... -f ok -I 
Is ww3 an actual host? It doesn't compare to the same check_command you are using in the profile?

Code: Select all

check_xi_service_http!-s "x" -H <host> -f ok -I <IP> -u "<yourinput>" -p 80
You wouldn't need to define -H since the check will automatically use the host_name...

If you wanted to use -I for IP instead, then you could use check_http. Since check_xi_service_http uses -H
Last edited by kyang on Wed Dec 06, 2017 10:41 am, edited 1 time in total.
Reason: Removed sensitive info
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: check_http is never scheduled

Post by vmesquita »

Hi Kyang,

I removed the -H parameter, it's unneeded indeed. But unfortunatelly the problem remains...

www3 is actually a host name.

Also, can you please remove our domain name on your previous message?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_http is never scheduled

Post by lmiltchev »

@vmesquita I sent you a PM.
Be sure to check out our Knowledgebase for helpful articles and solutions!
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: check_http is never scheduled

Post by vmesquita »

Hi lmiltchev!

I figured the issue. It turns out that it was not possible to ping the host due to some changes in routing, so it was shown as host down. Then the immediate service check as never schedule. I changed the host check to check_http, so the host was shown as up again, and the immediate check for the services was back working. Thanks for all help!
kyang

Re: check_http is never scheduled

Post by kyang »

Sounds good! Glad you found the issue.

Did you have any more questions or are we okay to close this thread?
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: check_http is never scheduled

Post by vmesquita »

You can close it. Thanks.
kyang

Re: check_http is never scheduled

Post by kyang »

Sounds good! I'll be closing this thread!

If you have any more questions, feel free to create another thread.

Thanks for using the Nagios Support Forum!
Locked