Is there a Nagios plugin that enables you to specify the referrer URL when checking a URL?
I want to monitor site A that only accepts requests for a certain URL if the requests originate from site B. I know Wget has an option of downloading content protected by referrer like so
wget --referer=http://first_page http://second_page
Is there any Nagios plugin that would make this possible, or is check_http capable of this?
Solution 1:
From the check_http man page:
-k, --header=STRING Any other tags to be sent in http header. Use multiple times for additional headers
http://nagiosplugins.org/man/check_http