Page 1 of 1

Nagios Core HTTP concern

Posted: Mon Aug 14, 2017 9:42 pm
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.

Re: Nagios Core HTTP concern

Posted: Tue Aug 15, 2017 8:49 am
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.

Re: Nagios Core HTTP concern

Posted: Tue Aug 15, 2017 10:24 am
by bolson
Hello vnoc,

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