<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#000080 size=2><SPAN
class=007285314-21102008>Is it possible to define a host using URL rather than
IP address?</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#000080 size=2></FONT> </DIV>
<DIV align=left>
<DIV align=left><FONT face=Arial color=#000080 size=2></FONT></DIV></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Ben O'Hara [mailto:bohara@gmail.com]
<BR><B>Sent:</B> Monday, October 20, 2008 12:34 PM<BR><B>To:</B> Josh
Wells<BR><B>Cc:</B> nagios<BR><B>Subject:</B> Re: [Nagios-users] How do I check
if a website is up?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr>What i have done in the past is,<BR><BR>a) create a host for <A
href="http://www.example.com">www.example.com</A><BR>b) ceate a host group -
"External"<BR>c) stick <A href="http://www.example.com">www.example.com</A> in
Eternal group<BR>) add service check to host<BR><BR>Yu can then add numberous
external checks into the group or check other services on the
host.<BR><BR>Seemed to make sense that way for me back then<BR><BR>Ben<BR><BR>
<DIV class=gmail_quote>On Mon, Oct 20, 2008 at 6:17 PM, Josh Wells <SPAN
dir=ltr><<A
href="mailto:josh.wells@lionbank.com">josh.wells@lionbank.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><BR>Ok
I defined the command as you specified in my commands.cfg file. I<BR>then
added a service definition in my localhost.cfg file using that<BR>command. It
appears to be working. How do I configure an alert for this<BR>type of check?
I would like to be notified if the website is not<BR>reachable for more than
say 5 minutes. Also while this is functional I<BR>don't really like that this
website check is showing up under my nagios<BR>server host. I would prefer
that it have its own host definition or at<BR>least appear separately from the
other hosts. Is it possible to do this<BR>using a URL?<BR><BR>Thanks for your
help. I used the quickstart guide to get my server up<BR>and running so still
pretty green with nagios but I'm learning.<BR><FONT
color=#888888><BR>Josh<BR></FONT>
<DIV class=Ih2E3d><BR><BR>-----Original Message-----<BR>From: Assaf Flatto
[mailto:<A
href="mailto:assaf.flatto@ssp.uk.com">assaf.flatto@ssp.uk.com</A>]<BR></DIV>
<DIV>
<DIV></DIV>
<DIV class=Wj3C7c>Sent: Monday, October 20, 2008 11:03 AM<BR>To: Nagios User
list<BR>Subject: Re: [Nagios-users] How do I check if a website is
up?<BR><BR>No , you don't have to define a host .<BR><BR>you define a service
check with the fix parameters ( as i gave in the<BR>previous mail ) and assign
this check to an existing host .<BR><BR>that host will execute the check and
report the status returned from the<BR>command ( personally i'd run it from
the nagios server itself) .<BR><BR><BR>On Monday 20 October 2008 15:58:25 Josh
Wells wrote:<BR>> Ok so if the website is external to my network I need to
create a host<BR>> definition? What would that look like for a URL? I've
only made host<BR>> definitions for internal hosts using the IP address.
Because the<BR>website<BR>> is a hosted solution I would rather define it
by URL than IP address.<BR>Is<BR>> this
possible?<BR>><BR>><BR>><BR>> -----Original Message-----<BR>>
From: Assaf Flatto [mailto:<A
href="mailto:assaf.flatto@ssp.uk.com">assaf.flatto@ssp.uk.com</A>]<BR>>
Sent: Monday, October 20, 2008 10:46 AM<BR>> To: <A
href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</A><BR>>
Subject: Re: [Nagios-users] How do I check if a website is up?<BR>><BR>>
Not nessaceily .<BR>><BR>> If you have that website in your network ,
you can just define the<BR>> check_http check to that host.<BR>> also
you can add in one of the parameters the specific URL you wish to<BR>>
query .<BR>><BR>> -u, --url=PATH<BR>> URL to GET or
POST (default: /)<BR>><BR>><BR>> Or you can define a check on the
nagios server it self to query the<BR>web<BR>> site like this
:<BR>><BR>> # 'check_website' command definition<BR>> define
command{<BR>> command_name
check_website<BR>> command_line
$USER1$/check_http -H <A href="http://www.website.com"
target=_blank>www.website.com</A><BR>> }<BR>><BR>><BR>> If not ,
then you need to build a new host definition and service<BR>check<BR>> for
that host .<BR>><BR>> On Monday 20 October 2008 15:18:53 Josh Wells
wrote:<BR>> > Do I have to define a remote host such as <A
href="http://www.website.com" target=_blank>www.website.com</A> in
order<BR>to<BR>> > apply the check_http service against that
host?<BR><BR><BR><BR>--<BR><BR>Assaf Flatto<BR>SSP Ops Team<BR>Linux System
Administrator<BR><BR><BR><BR><BR><BR>IMPORTANT . this email and the
information in it may be confidential,<BR>legally<BR>privileged and/or
protected by law. It is intended solely for the use of<BR>the<BR>person to
whom it is addressed. If you are not the intended
recipient,<BR>please<BR>notify the sender immediately and do not disclose the
contents to any<BR>other<BR>person, use it for any purpose, or store or copy
the information in any<BR>medium.<BR>Please also delete all copies of this
email and any attachments from<BR>your<BR>system.<BR><BR>We cannot guarantee
the security or confidentiality of email<BR>communications. We<BR>do not
accept any liability for losses or damages that you may suffer
as<BR>a<BR>result of your receipt of this email including but not limited
to<BR>computer<BR>service or system failure, access delays or interruption,
data<BR>non-delivery or<BR>mis-delivery, computer viruses or other harmful
components.<BR><BR>Copyright in this email and any attachments belong to
Select Service<BR>Partner UK<BR>Limited. Should you communicate with anyone at
Select Service Partner UK<BR>Limited by<BR>email, you consent to us monitoring
and reading any such correspondence.<BR><BR>Nothing in this email shall be
taken or read as suggesting, proposing or<BR>relating to any agreement
concerted practice or other practice that<BR>could<BR>infringe UK or EC
competition legislation.<BR><BR>Select Service Partner UK Limited is a company
registered in England and<BR>Wales<BR>(company number 05687183) whose
registered office is at 1 The Heights,<BR>Brooklands, Weybridge. Surrey. KT13
0NY<BR><BR><BR><BR>------------------------------------------------------------------------<BR>-<BR>This
SF.Net email is sponsored by the Moblin Your Move
Developer's<BR>challenge<BR>Build the coolest Linux based applications with
Moblin SDK & win great<BR>prizes<BR>Grand prize is a trip for two to an
Open Source event anywhere in the<BR>world<BR><A
href="http://moblin-contest.org/redirect.php?banner_id=100&url=/"
target=_blank>http://moblin-contest.org/redirect.php?banner_id=100&url=/</A><BR>_______________________________________________<BR>Nagios-users
mailing list<BR><A
href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</A><BR><A
href="https://lists.sourceforge.net/lists/listinfo/nagios-users"
target=_blank>https://lists.sourceforge.net/lists/listinfo/nagios-users</A><BR>:::
Please include Nagios version, plugin version (-v) and OS when<BR>reporting
any issue.<BR>::: Messages without supporting info will risk being sent to
/dev/null<BR><BR>-------------------------------------------------------------------------<BR>This
SF.Net email is sponsored by the Moblin Your Move Developer's
challenge<BR>Build the coolest Linux based applications with Moblin SDK &
win great prizes<BR>Grand prize is a trip for two to an Open Source event
anywhere in the world<BR><A
href="http://moblin-contest.org/redirect.php?banner_id=100&url=/"
target=_blank>http://moblin-contest.org/redirect.php?banner_id=100&url=/</A><BR>_______________________________________________<BR>Nagios-users
mailing list<BR><A
href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</A><BR><A
href="https://lists.sourceforge.net/lists/listinfo/nagios-users"
target=_blank>https://lists.sourceforge.net/lists/listinfo/nagios-users</A><BR>:::
Please include Nagios version, plugin version (-v) and OS when reporting any
issue.<BR>::: Messages without supporting info will risk being sent to
/dev/null<BR></DIV></DIV></BLOCKQUOTE></DIV><BR><BR clear=all><BR>--
<BR>Internet Explorer is a program that allows you to access the Internet. And
vice versa.<BR><BR></DIV></BODY></HTML>