Page 2 of 3

Re: how to monitor Web URL(web.vdi.ford.com)

Posted: Tue Mar 22, 2016 12:42 am
by miyappan
rkennedy wrote:

Code: Select all

[root@suse11 libexec]# /usr/local/nagios/libexec/check_http -H nagios.com
HTTP OK: HTTP/1.1 301 Moved Permanently - 530 bytes in 0.091 second response time |time=0.090966s;;;0.000000 size=530B;;;0
The above is an example.
Hi ,

i am getting Error CRITICAL - Plugin timed out after 10 seconds. check_ping plugin already their in nagios server.

below are the .cfg file i have create in nagios.

define host{
use web-url ; Inherit default values from a template
host_name FORD VDI ; The name we're giving to this host
alias FORD VDI ; A longer name associated with the host
address web.vdi.ford.com ; IP address of the host
}

define service{
use generic-service ; Inherit default values from a template
host_name FORD VDI
service_description Check Ping
check_command check_ping!280.0,20%!500.0,60%
}

Re: how to monitor Web URL(web.vdi.ford.com)

Posted: Tue Mar 22, 2016 2:42 am
by rhassing
What happens if you try the plugin on the commandline?

Code: Select all

check_ping -H web.vdi.ford.com -w 280.0,20% -c 500.0,60%
Or even if you try to ping the host:

Code: Select all

ping web.vdi.ford.com

Re: how to monitor Web URL(web.vdi.ford.com)

Posted: Tue Mar 22, 2016 8:07 am
by miyappan
rhassing wrote:What happens if you try the plugin on the commandline?

Code: Select all

check_ping -H web.vdi.ford.com -w 280.0,20% -c 500.0,60%
Or even if you try to ping the host:

Code: Select all

ping web.vdi.ford.com
please find the below attached add screen shot.

Re: how to monitor Web URL(web.vdi.ford.com)

Posted: Tue Mar 22, 2016 9:22 am
by rhassing
Please go to the libexec directory, where you did do the ls command and do:

Code: Select all

./check_ping -H web.vdi.ford.com -w 280.0,20% -c 500.0,60%
And could you also try to do the normal ping I suggested?

Re: how to monitor Web URL(web.vdi.ford.com)

Posted: Tue Mar 22, 2016 9:59 am
by rkennedy
Thanks @rhassing! Yes, you will need ./ before it to execute.

Re: how to monitor Web URL(web.vdi.ford.com)

Posted: Tue Mar 22, 2016 11:21 am
by miyappan
rhassing wrote:Please go to the libexec directory, where you did do the ls command and do:

Code: Select all

./check_ping -H web.vdi.ford.com -w 280.0,20% -c 500.0,60%
And could you also try to do the normal ping I suggested?
Hi ,

normal Ping command its working fine. when i am trying to run following command ./check_ping -H web.vdi.ford.com -w 280.0,20% -c 500.0,60% i am getting error CRITICAL - Plugin timed out after 10 seconds. please find the attached screen shot.

Re: how to monitor Web URL(web.vdi.ford.com)

Posted: Tue Mar 22, 2016 11:23 am
by miyappan
Hi ,

normal Ping command its working fine. when i am trying to run following command ./check_ping -H web.vdi.ford.com -w 280.0,20% -c 500.0,60% i am getting error CRITICAL - Plugin timed out after 10 seconds. please find the attached screen shot.

Re: how to monitor Web URL(web.vdi.ford.com)

Posted: Tue Mar 22, 2016 11:36 am
by hsmith
Can you try to use the check_ping command to check fcvpxvip01.vdi.ford.com? It looks like that's what your ping command is resolving to.

Re: how to monitor Web URL(web.vdi.ford.com)

Posted: Tue Mar 22, 2016 2:42 pm
by rhassing
Could you also try if the check_ping script fails on every host?

Please try check_ping localhost

Re: how to monitor Web URL(web.vdi.ford.com)

Posted: Wed Mar 23, 2016 9:39 am
by hsmith
Thanks @rhassing