Bingo, thanx Assaf. It worked. <br><br>Cheers,<br>Shashank<br><br><div class="gmail_quote">On Thu, Apr 8, 2010 at 10:14 AM, Assaf Flatto <span dir="ltr"><<a href="mailto:nagios@flatto.net">nagios@flatto.net</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;"><div class="im">Shashank Kamble wrote:<br>
><br>
> Hello,<br>
><br>
><br>
><br>
> I am newbie to Nagios. I successfully installed Nagios and its<br>
> monitoring most of our windows and Linux servers. Currently, I am<br>
> having issues with the one of the website we support for our client. I<br>
> defined a host and also defined an http service to monitor the website:<br>
><br>
><br>
><br>
> Here is host and service definition to monitor a website.<br>
><br>
><br>
><br>
> define host{<br>
><br>
> use windows-server<br>
><br>
> host_name illinoistollway<br>
><br>
> alias illinoistollway<br>
><br>
> address <a href="http://www.illinoistollway.com" target="_blank">www.illinoistollway.com</a><br>
</div>> <<a href="http://www.illinoistollway.com/" target="_blank">http://www.illinoistollway.com/</a>><br>
<div class="im">><br>
> contact_groups admins<br>
><br>
> }<br>
><br>
><br>
><br>
> define service {<br>
><br>
> use local-service<br>
><br>
> host_name IllionisHighway<br>
><br>
> service_description HTTP<br>
><br>
> check_command check_http<br>
><br>
> }<br>
><br>
><br>
><br>
> But I am getting an error that host is down and service is not<br>
> monitored as well.<br>
><br>
><br>
><br>
> Could you please guide me how to resolve this issue?<br>
><br>
><br>
><br>
> Thanks,<br>
><br>
> Shashank<br>
><br>
</div>> ------------------------------------------------------------------------<br>
<br>
Before you added the host , did you make sure you can ping it ?<br>
did you also try to manually as the user nagios can execute the<br>
check_http script and get a proper response ?<br>
<br>
By default check_host_alive and check_http expect an IP address in the "<br>
address " Feild , not a FQDN .<br>
and that might be what is throwing your nagios of game.<br>
<br>
Change the "address" to the IP address and see what response you get .<br>
<br>
Assaf<br>
<font color="#888888"><br>
<br>
--<br>
Never,Ever Cut A Deal With a Dragon<br>
<br>
<br>
I am doing a Charity Bike ride On the 27 of June for the<br>
Capital to Coast Charity. Please help by Donating<br>
<a href="http://www.justgiving.com/Lovefilm-capital-to-coast" target="_blank">http://www.justgiving.com/Lovefilm-capital-to-coast</a><br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
------------------------------------------------------------------------------<br>
Download Intel® Parallel Studio Eval<br>
Try the new software tools for yourself. Speed compiling, find bugs<br>
proactively, and fine-tune applications for parallel performance.<br>
See why Intel Parallel Studio got high marks during beta.<br>
<a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</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>