I am attempting to run the following command in XI v5.2.9
$USER1$/check_http -H $ARG1$ -t 50 -u $ARG2$ -R $ARG3$ the expanded command with arguments filled in is below
Code: Select all
/usr/local/nagios/libexec/check_http -H neoreviews.aappublications.org -t 50 -u /content/17/8?current-issue=y/cgi/search?sendit=Search&pubdate_year=&volume=&firstpage=&author1=&author2=Frank&title=&andorexacttitle=and&titleabstract=&andorexacttitleabs=and&fulltext=&andorexactfulltext=and&SITESECTION=vj&fmonth=Jan&fyear=2000&tmonth=Oct&tyear=2006&fdatedef=1+January+2000&tdatedef=1+October+2006&flag=&RESULTFORMAT=1&hits=10&hitsbrief=25&sortspec=relevance&sortspecbrief=relevance -R Cocaine
/usr/local/nagios/libexec/check_http -H neoreviews.aappublications.org -t 50 -u /content/17/8\?current-issue=y/cgi/search\?sendit=Search -R Cocaine
I get back OUTPUT: HTTP CRITICAL: HTTP/1.1 200 OK - pattern not found - 73039 bytes in 0.475 second response time |time=0.474661s;;;0.000000 size=73039B;;;0
but if I run the command with the full arguments from the command line I get the following output.
HTTP OK: HTTP/1.1 200 OK - 73039 bytes in 0.366 second response time |time=0.365756s;;;0.000000 size=73039B;;;0
which is what I expect to see.
Why is Nagios XI changing my arguments that have been input through the UI?
I have this issue on several checks that use the same syntax.