Page 1 of 1

"Could not Parse Arguments " Following Nagios Update

Posted: Fri Jul 24, 2020 2:42 pm
by hixavier
Hello,

I recently updated Nagios XI to 5.7.1 and now when I run the check_http check command in the GUI, the following error is returned:

Code: Select all

Could Not Compile Regular Expression: Unmatched \{check_http: Could not parse arguments
Usage:
check_http -H <vhost> | -I <IP-address> [-u <uri>] [-p <port>]
[-J <client certificate file>] [-K <private key>]
[-w <warn time>] [-c <critical time>] [-t <timeout>] [-L] [-E] [-a auth]
[-b proxy_auth] [-f <ok|warning|critcal|follow|sticky|stickyport>]
[-e <expect>] [-d string] [-s string] [-l] [-r <regex> | -R <case-insensitive regex>]
[-P string] [-m <min_pg_size>:<max_pg_size>] [-4|-6] [-N] [-M <age>]
[-A string] [-k string] [-S <version>] [--sni] [-C <warn_age>[,<crit_age>]]
[-T <content-type>] [-j method]

But it works fine when I run the check via the command line. Also, this same check works fine in the GUI in our other Nagios environments.

Re: "Could not Parse Arguments " Following Nagios Update

Posted: Mon Jul 27, 2020 10:17 am
by benjaminsmith
Hi @hixavier,

It could be an escaping issue with the arguments being passed, can you post the full check command to the thread for us to review? Thanks, Benjamin

Also, I would highly recommend upgrading to 5.7.2, there are some important bug fixes in this release.

Upgrading Nagios XI