check website status, don't show 403 error
Posted: Thu Dec 15, 2022 8:33 am
I am using the host definition below to monitor if a website is up. Nagios shows me that the website is up but also reports this warning.
I read that to resolve the issue I need to create an index.html in the root directory of the web server, or change the webserver configuration.
The issue is that I don't have access to make changes on the web server.
Is there a way to configure Nagios not to report the 403 warning if the website is up and doesn't have an index.html file in it's root directory?
Thanks
Code: Select all
HTTP WARNING: HTTP/1.1 403 Forbidden - 395 bytes in 0.008 second response time
Code: Select all
define host {
host_name hostnamehere.com
alias hostname
address hostnamehere.com
max_check_attempts 2
check_period 24x7
check_interval 0.5
check_command check_http
contacts contact_group_here
notification_interval 0
notification_period 24x7
}
The issue is that I don't have access to make changes on the web server.
Is there a way to configure Nagios not to report the 403 warning if the website is up and doesn't have an index.html file in it's root directory?
Thanks