<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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<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>