HTTP Warning


#1

Hello,

I have been using nagios for a couple of years but all of a sudden I have begun getting this email notification:

***** Nagios *****

Notification Type: PROBLEM

Service: HTTP
Host: palmetto
Address: 10.10.0.1
State: WARNING

Date/Time: Sat Nov 26 10:10:04 EST 2005

Additional Info:

HTTP WARNING: HTTP/1.1 403 Forbidden

I haven’t changed anything that I’m aware of but I get this many times a day.

Any ideas of where to start looking? Did a search of this forum but didn’t find anything related.

TIA


#2

does the http server work correctly from a browser?
you can even try a RAW http reqwuest directly from the nagios server (should be in my situation with no GUI on the server)

telnet 10.10.0.1 80

the screen should blank at this point type
GET / HTTP1.1
and hit enter a couple of times.

if you have more than one site on the server you need to define the sitesname too.
I Rember something like:
GET / HTTP1.1
sitename: yourdomain.ext

Hope this helps. should the commands be incorrect try looking on google for “http telnet connection”

Ciao, Luca


#3

Hello,

Sorry to reply so late. I have been out of town.

Yes, I can connect to the server via telnet 10.10.0.1 80.

Also, I have 6 other sites on this server. Where do I define them?

Thanks!!


#4

run check_http from the libexec directory it tells you all paramneters it takes. Between them there’s the possibility to give an URL to check (added to the standard IP address) this is what you are looking for.
Could be worth checking checkcommands.cfg if you don’t already have an url check command defined. Possibly it just takes an extra argument. If not just create a new command addin the url as extra parameter.

Luca