I’m currently trying to monitor one of our websites…
Monitoring the root site (https://mysite.mydomain.tld) is working as expected but monitoring a subfolder (https://mysite.mydomain.tld/mysubfolder) isn’t working. I always get a 500 as return code. The website is working and gives a 200 return code if I use the browser to access it. This subfolder has also no redirection or anything like that. It is also working if I use wget from commandline.
Thats a problem. It is a Microsoft IIS
As far as I know logging is disabled at default settings… and you can’t just enable it with a click or config option
I only see this in the logfile: 2020-10-26 13:15:10 WEBSERVERIP GET /mysubfolder - 443 - MONITORINGSERVERIP check_http/v2.2+(monitoring-plugins+2.2) - 500 19 13 15 MONITORINGSERVERIP:42722
Your server throws an 500 internal server error if you only request the mentioned URI.
I think that you need to submit a little bit more. For instance some header information or something else.
If you open the URL inside your browser then you can activate the dev tools and you can inspect the complete communication between your server and your browser.
There you will see that more happens than only retrieving one directory.