Nagios - HTTP WARNING: HTTP/1.1 403 Forbidden

Mandar Shinde picture Mandar Shinde · May 15, 2014 · Viewed 35.2k times · Source

I am using Nagios XI. I entered following command in order to monitor httpd service of the remote Linux server (128.19.5.131):

/usr/local/nagios/libexec/check_http -H 128.19.5.131

It is giving me following output:

HTTP WARNING: HTTP/1.1 403 Forbidden

Answer

user3471980 picture user3471980 · Oct 19, 2014

I solved it by executing

$ touch /var/www/html/index.html
$ chmod 755 /var/www/html/index.html

on the remote server.