How do I check if a website is up?

Josh Wells josh.wells at lionbank.com
Tue Oct 21 16:55:28 CEST 2008


Is it possible to define a host using URL rather than IP address?
 

________________________________

From: Ben O'Hara [mailto:bohara at gmail.com] 
Sent: Monday, October 20, 2008 12:34 PM
To: Josh Wells
Cc: nagios
Subject: Re: [Nagios-users] How do I check if a website is up?


What i have done in the past is,

a) create a host for www.example.com
b) ceate a host group - "External"
c) stick www.example.com in Eternal group
) add service check to host

Yu can then add numberous external checks into the group or check other
services on the host.

Seemed to make sense that way for me back then

Ben


On Mon, Oct 20, 2008 at 6:17 PM, Josh Wells <josh.wells at lionbank.com>
wrote:



	Ok I defined the command as you specified in my commands.cfg
file. I
	then added a service definition in my localhost.cfg file using
that
	command. It appears to be working. How do I configure an alert
for this
	type of check? I would like to be notified if the website is not
	reachable for more than say 5 minutes. Also while this is
functional I
	don't really like that this website check is showing up under my
nagios
	server host. I would prefer that it have its own host definition
or at
	least appear separately from the other hosts. Is it possible to
do this
	using a URL?
	
	Thanks for your help. I used the quickstart guide to get my
server up
	and running so still pretty green with nagios but I'm learning.
	
	Josh
	


	-----Original Message-----
	From: Assaf Flatto [mailto:assaf.flatto at ssp.uk.com]
	
	Sent: Monday, October 20, 2008 11:03 AM
	To: Nagios User list
	Subject: Re: [Nagios-users] How do I check if a website is up?
	
	No , you don't have to define a host .
	
	you define a service check with the fix parameters ( as i gave
in the
	previous mail ) and assign this check to an existing host .
	
	that host will execute the check and report the status returned
from the
	command ( personally i'd run it from the nagios server itself) .
	
	
	On Monday 20 October 2008 15:58:25 Josh Wells wrote:
	> Ok so if the website is external to my network I need to
create a host
	> definition? What would that look like for a URL? I've only
made host
	> definitions for internal hosts using the IP address. Because
the
	website
	> is a hosted solution I would rather define it by URL than IP
address.
	Is
	> this possible?
	>
	>
	>
	> -----Original Message-----
	> From: Assaf Flatto [mailto:assaf.flatto at ssp.uk.com]
	> Sent: Monday, October 20, 2008 10:46 AM
	> To: nagios-users at lists.sourceforge.net
	> Subject: Re: [Nagios-users] How do I check if a website is up?
	>
	> Not nessaceily .
	>
	> If you have that website in your network , you can just define
the
	> check_http check to that host.
	> also you can add in one of the parameters the specific URL you
wish to
	> query .
	>
	> -u, --url=PATH
	>     URL to GET or POST (default: /)
	>
	>
	> Or you can define a check on the nagios server it self to
query the
	web
	> site like this :
	>
	> # 'check_website' command definition
	> define command{
	>         command_name    check_website
	>         command_line    $USER1$/check_http -H www.website.com
	> }
	>
	>
	> If not , then you need to build a new host definition and
service
	check
	> for that host .
	>
	> On Monday 20 October 2008 15:18:53 Josh Wells wrote:
	> > Do I have to define a remote host such as www.website.com in
order
	to
	> > apply the check_http service against that host?
	
	
	
	--
	
	Assaf Flatto
	SSP Ops Team
	Linux System Administrator
	
	
	
	
	
	IMPORTANT . this email and the information in it may be
confidential,
	legally
	privileged and/or protected by law. It is intended solely for
the use of
	the
	person to whom it is addressed. If you are not the intended
recipient,
	please
	notify the sender immediately and do not disclose the contents
to any
	other
	person, use it for any purpose, or store or copy the information
in any
	medium.
	Please also delete all copies of this email and any attachments
from
	your
	system.
	
	We cannot guarantee the security or confidentiality of email
	communications. We
	do not accept any liability for losses or damages that you may
suffer as
	a
	result of your receipt of this email including but not limited
to
	computer
	service or system failure, access delays or interruption, data
	non-delivery or
	mis-delivery, computer viruses or other harmful components.
	
	Copyright in this email and any attachments belong to Select
Service
	Partner UK
	Limited. Should you communicate with anyone at Select Service
Partner UK
	Limited by
	email, you consent to us monitoring and reading any such
correspondence.
	
	Nothing in this email shall be taken or read as suggesting,
proposing or
	relating to any agreement concerted practice or other practice
that
	could
	infringe UK or EC competition legislation.
	
	Select Service Partner UK Limited is a company registered in
England and
	Wales
	(company number 05687183) whose registered office is at 1 The
Heights,
	Brooklands, Weybridge. Surrey. KT13 0NY
	
	
	
	
------------------------------------------------------------------------
	-
	This SF.Net email is sponsored by the Moblin Your Move
Developer's
	challenge
	Build the coolest Linux based applications with Moblin SDK & win
great
	prizes
	Grand prize is a trip for two to an Open Source event anywhere
in the
	world
	http://moblin-contest.org/redirect.php?banner_id=100&url=/
	_______________________________________________
	Nagios-users mailing list
	Nagios-users at lists.sourceforge.net
	https://lists.sourceforge.net/lists/listinfo/nagios-users
	::: Please include Nagios version, plugin version (-v) and OS
when
	reporting any issue.
	::: Messages without supporting info will risk being sent to
/dev/null
	
	
------------------------------------------------------------------------
-
	This SF.Net email is sponsored by the Moblin Your Move
Developer's challenge
	Build the coolest Linux based applications with Moblin SDK & win
great prizes
	Grand prize is a trip for two to an Open Source event anywhere
in the world
	http://moblin-contest.org/redirect.php?banner_id=100&url=/
	_______________________________________________
	Nagios-users mailing list
	Nagios-users at lists.sourceforge.net
	https://lists.sourceforge.net/lists/listinfo/nagios-users
	::: Please include Nagios version, plugin version (-v) and OS
when reporting any issue.
	::: Messages without supporting info will risk being sent to
/dev/null
	




-- 
Internet Explorer is a program that allows you to access the Internet.
And vice versa.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20081021/f3f9d835/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list