Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nagios check_http and web server path
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
brent_weaver
Guru
Guru


Joined: 01 Jul 2004
Posts: 510
Location: Burlington, VT

PostPosted: Mon Nov 16, 2009 7:59 pm    Post subject: nagios check_http and web server path Reply with quote

I need to use check_http on a path that is http://servername/ping.asp. I do not know how to use check_http to look at a path other than the / (root). I see the -u but it does not work and gives me an error.

nssmonitor plugins # ./check_http -H 198.181.235.123
HTTP OK HTTP/1.1 200 OK - 346 bytes in 0.003 seconds |time=0.002832s;;;0.000000 size=346B;;;0
nssmonitor plugins # ./check_http -H 198.181.235.123 -u idxwfping.asp
HTTP WARNING: HTTP/1.1 400 Bad Request

How do I get this plugin to check http://198.181.235.123/idxwfping.asp ? Thanks!
_________________
Brent Weaver
Back to top
View user's profile Send private message
ursusca
Apprentice
Apprentice


Joined: 10 Sep 2008
Posts: 284
Location: Toronto ON, CANADA

PostPosted: Mon Nov 16, 2009 8:09 pm    Post subject: Reply with quote

Hi,

Did you try to run it with "-I" option instead of "-H"?

Code:
I, --IP-address=ADDRESS
    IP address or name (use numeric address if possible to bypass DNS lookup).

_________________
You deserve free software!
Back to top
View user's profile Send private message
brent_weaver
Guru
Guru


Joined: 01 Jul 2004
Posts: 510
Location: Burlington, VT

PostPosted: Mon Nov 16, 2009 9:12 pm    Post subject: Reply with quote

thanks for the response. I need to know how to check a full URL path not just the root of the server
_________________
Brent Weaver
Back to top
View user's profile Send private message
born2chill
n00b
n00b


Joined: 14 Aug 2006
Posts: 10

PostPosted: Wed Nov 18, 2009 8:27 am    Post subject: Reply with quote

Hello,

try this:

Code:

./check_http -H servername -p 80 -u "/ping.asp"


br,
b2c
Back to top
View user's profile Send private message
brent_weaver
Guru
Guru


Joined: 01 Jul 2004
Posts: 510
Location: Burlington, VT

PostPosted: Sun Nov 29, 2009 12:57 am    Post subject: Reply with quote

unfort that does not work.
_________________
Brent Weaver
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Sun Nov 29, 2009 8:42 am    Post subject: Reply with quote

Above should work. In your first example you forgot the leading /. Try specifying the full url, like

./check_http -H servername -u "http://198.181.235.123/idxwfping.asp"

If that works you could set something like -u "http://$HOSTADDRESS$/$ARG1$" and use !idxwfping.asp
_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
brent_weaver
Guru
Guru


Joined: 01 Jul 2004
Posts: 510
Location: Burlington, VT

PostPosted: Wed Dec 02, 2009 2:53 am    Post subject: Reply with quote

Thanks for the response. No soup!

Code:

nssmonitor plugins # ./check_http -H 198.181.235.123 -u "http://198.181.235.123/idxwfping.asp"
CRITICAL - Socket timeout after 10 seconds

_________________
Brent Weaver
Back to top
View user's profile Send private message
chrisyu
Apprentice
Apprentice


Joined: 10 Apr 2003
Posts: 207
Location: China

PostPosted: Wed Dec 02, 2009 4:26 am    Post subject: Reply with quote

I use a perl script from http://wiburg.de/nagiosplugins:check_http .
Works well for me
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum