Nagios Core HTTP concern

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
vnoc
Posts: 54
Joined: Thu Jul 27, 2017 1:51 am

Nagios Core HTTP concern

Post by vnoc »

HI All,

I recently started migrating my monitor tool to nagios but after installing i am getting a warning for http service .I have attached the screenshot for reference.

Please let us know are there any requirements before we add a http urls and please give me any urls which helps me to understand about these http service and which also helps in adding the http or https urls.
Attachments
Capture.PNG
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios Core HTTP concern

Post by mcapra »

Is this the standard localhost http service check? If so, 403 is expected because the main Nagios page requires authentication. You could alter the service definition to include authentication (or expect a 403) as per the check_http documentation:
https://nagios-plugins.org/doc/man/check_http.html

Code: Select all

     -e, --expect=STRING
        Comma-delimited list of strings, at least one of them is expected in
        the first (status) line of the server response (default: HTTP/1.)

...

   -a, --authorization=AUTH_PAIR
        Username:password on sites with basic authentication
But a WARNING status for the standard localhost HTTP check is normal.
Former Nagios employee
https://www.mcapra.com/
bolson

Re: Nagios Core HTTP concern

Post by bolson »

Hello vnoc,

Does this answer your question and may we close the topic?
Locked