check_http

Melanie Pfefer melanie_pfefer at yahoo.co.uk
Fri Sep 7 14:42:14 CEST 2007


I was entering the wrong port number :S

thanks bunches.
--- tom.welsh at bt.com wrote:

> Hi Melanie,
> 
> On your Nagios host can you telnet to port 8080 from
> the shell? This will ensure you are actually
> connecting to the box.
> 
> I can see further down that you ran check_http and
> got a result.
> 
> Are you running the plugin as the nagios user?
> 
> Regards
> 
> Tom 
> 
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net
> [mailto:nagios-users-bounces at lists.sourceforge.net]
> On Behalf Of Melanie Pfefer
> Sent: 07 September 2007 11:08
> To: Dennis Huenseler
> Cc: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] check_http
> 
> hi,
> 
> the configuration went ok as you've said. But now I
> get a connection refused error.
> 
> Basically I want to monitor whether the apache
> server on the remote machine is up or not.
> thanx
> --- Dennis Huenseler <huenseler at twt.de> wrote:
> 
> > Hi there,
> > 
> > you can't define a check_command like >>
> check_http -H some -p foo << 
> > in the service deifinition.
> > 
> > Define a new check in the commands.cfg like
> > 
> > define command{
> >         command_name    check_http_args
> >         command_line    $USER1$/check_http -H
> $ARG1$
> > -p $ARG2$
> >         }
> > 
> > And in the service definition then try
> > 
> > define service{
> >         use                            
> > local-service 
> >        ; Name of service template to use
> >         host_name                       host2
> >         service_description             HTTP
> > availability
> >         check_command                  
> > check_http_args!host2!8080
> >         }
> > 
> > Kind regards,
> > 
> > Dennis Hünseler
> > 
> > -----Original Message-----
> > From: nagios-users-bounces at lists.sourceforge.net
> >
> [mailto:nagios-users-bounces at lists.sourceforge.net]
> > On Behalf Of Melanie Pfefer
> > Sent: Friday, September 07, 2007 11:17 AM
> > To: nagios-users at lists.sourceforge.net
> > Subject: [Nagios-users] check_http
> > 
> > hi,
> > 
> > I ran this from the shell:
> > 
> > ./check_http -H host2 -p 8088
> > HTTP OK HTTP/1.1 200 OK - 1192 bytes in 0.343
> seconds
> > |time=0.342683s;;;0.000000 size=1192B;;;0
> > 
> > 
> > now I added these lines in services.cfg:
> > 
> > define service{
> >         use                            
> > local-service 
> >        ; Name of service template to use
> >         host_name                       host2
> >         service_description             HTTP
> > availability
> >         check_command                   check_http
> > -H
> > host2 -p 8080
> >         }
> > 
> > when I ran ./nagios -v ../etc/nagios.cfg, I have
> this
> > error:
> > 
> > 
> > Error: Service check command 'check_http -H host2
> -p 8080' specified 
> > in service 'HTTP availability' for host 'host2'
> not defined anywhere!
> > 
> > 
> > PS: in commands.cfg, I have these:
> > 
> > # 'check_http' command definition
> > define command{
> >         command_name    check_http
> >         command_line    $USER1$/check_http -H
> > $HOSTADDRESS$
> >         }
> > 
> > 
> > thanks.
> > 
> > 
> > 
> >      
> >
>
___________________________________________________________
> > 
> > Want ideas for reducing your carbon footprint?
> Visit Yahoo! For Good
> >
>
http://uk.promotions.yahoo.com/forgood/environment.html
> > 
> >
>
-------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?
> 
> > Stop.
> > Now Search log events and configuration files
> using AJAX and a 
> > browser.
> > Download your FREE copy of Splunk now >>
> http://get.splunk.com/ 
> > _______________________________________________
> > 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
> > 
> 
> 
> 
>      
>
___________________________________________________________
> Yahoo! Answers - Got a question? Someone out there
> knows the answer. Try it now.
> http://uk.answers.yahoo.com/ 
> 
>
-------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? 
> Stop.
> Now Search log events and configuration files using
> AJAX and a browser.
> Download your FREE copy of Splunk now >> 
> http://get.splunk.com/
> _______________________________________________
> 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
> 



      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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