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

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.
miyappan
Posts: 57
Joined: Thu Feb 11, 2016 5:42 am

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

Post 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%
}
Attachments
web.vdi.ford.PNG
web.vdi.ford.PNG (10.28 KiB) Viewed 4909 times
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

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

Post 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
Rob Hassing
Image
miyappan
Posts: 57
Joined: Thu Feb 11, 2016 5:42 am

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

Post 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.
Attachments
check_ping.PNG
check_ping H.PNG
check_ping H.PNG (2.97 KiB) Viewed 4897 times
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

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

Post 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?
Rob Hassing
Image
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

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

Post by rkennedy »

Thanks @rhassing! Yes, you will need ./ before it to execute.
Former Nagios Employee
miyappan
Posts: 57
Joined: Thu Feb 11, 2016 5:42 am

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

Post 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.
Attachments
plugin tomed out.PNG
ping web.vdi.PNG
miyappan
Posts: 57
Joined: Thu Feb 11, 2016 5:42 am

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

Post 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.
Attachments
plugin tomed out.PNG
ping web.vdi.PNG
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

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

Post 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.
Former Nagios Employee.
me.
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

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

Post by rhassing »

Could you also try if the check_ping script fails on every host?

Please try check_ping localhost
Rob Hassing
Image
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

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

Post by hsmith »

Thanks @rhassing
Former Nagios Employee.
me.
Locked