Code: Select all
check_command: check_xi_deface
host is vendor's web server
ARG1 is "v1.2.3latest" (proper string to look for to see what's the latest firmware listed)
ARG2 is something like "/download/release.html?mdfid=12345&flowid=67890&softwareid=24680" without the quotes
ARG3 is "-f follow" without the quotes
Code: Select all
GET /download/release.html\\?mdfid=12345
/code]
Note that the ? is doubly escaped with two backslashes and any arguments after (and including) the first & were just dropped. Putting quotes around it just add quotes to the URL. This is not the fault of the check_command definition as this is stock XI with nothing weird in commands.cfg for this command.
Running
[code]
/usr/local/libexec/check_http -H <host> -r "v1.2.3latest" -u "/download/release.html?mdfid=12345&flowid=67890&softwareid=24680" -f follow
