I want to monitor some websites but sending an header in the command . I succes to test it using curl, but i prefer to use a nagios plugin instead .
My curl command is :
you can use the check_http plugin of the Monitoring Plugins collection. The -k (or the long option --header) argument sets the header. For additonal details look into the check_http documentation.
The check_http is also available in the Icinga Template Library (ITL), have a look here. Use the custom variable http_header to set the needed header.