check_http issue

Shashank Kamble kamble at gmail.com
Thu Apr 8 15:36:51 CEST 2010


Bingo, thanx Assaf. It worked.

Cheers,
Shashank

On Thu, Apr 8, 2010 at 10:14 AM, Assaf Flatto <nagios at flatto.net> wrote:

> Shashank Kamble wrote:
> >
> > Hello,
> >
> >
> >
> > I am newbie to Nagios. I successfully installed Nagios and its
> > monitoring most of our windows and Linux servers. Currently, I am
> > having issues with the one of the website we support for our client. I
> > defined a host and also defined an http service to monitor the website:
> >
> >
> >
> > Here is host and service definition to monitor a website.
> >
> >
> >
> > define host{
> >
> >          use                      windows-server
> >
> >          host_name           illinoistollway
> >
> >          alias                    illinoistollway
> >
> >          address                www.illinoistollway.com
> > <http://www.illinoistollway.com/>
> >
> >          contact_groups      admins
> >
> >          }
> >
> >
> >
> > define service {
> >
> >         use                                   local-service
> >
> >         host_name                       IllionisHighway
> >
> >         service_description                         HTTP
> >
> >         check_command                  check_http
> >
> >         }
> >
> >
> >
> > But I am getting an error that host is down and service is not
> > monitored as well.
> >
> >
> >
> > Could you please guide me how to resolve this issue?
> >
> >
> >
> > Thanks,
> >
> > Shashank
> >
> > ------------------------------------------------------------------------
>
> Before you added the host , did you make sure you can ping it ?
> did you also try to manually as the user nagios can execute the
> check_http script and get a proper response ?
>
> By default check_host_alive and check_http expect an IP address in the "
> address " Feild , not a FQDN .
> and that might be what is throwing your nagios of game.
>
> Change the "address"  to the IP address and see what response you get .
>
> Assaf
>
>
> --
> Never,Ever Cut A Deal With a Dragon
>
>
> I am doing a Charity Bike ride On the 27 of June for the
> Capital to Coast Charity. Please help by Donating
> http://www.justgiving.com/Lovefilm-capital-to-coast
>
>
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100408/d7409f1c/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
-------------- 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