Page 1 of 1

check_logs

Posted: Wed Dec 21, 2011 6:19 pm
by epx998
Does the plugin check_logs support a query with more than one word? I am having an issue when I try to query "cannot open connect" as an example, the plugin thinks open is an option.

Code: Select all

./check_nrpe -H my.host.com -c check_log -a /path/to/dummy/log/error.log /path/to/dummy/log/error.log.nagios "Cannot open connection”
I get the error, open is an invalid option;

Code: Select all

Unknown argument: open
Usage: check_log -F logfile -O oldlog -q query
Usage: check_log --help
Usage: check_log --version
Ideas?

Re: check_logs

Posted: Thu Dec 22, 2011 5:50 pm
by jsmurphy
Are you able to also post the command definition from your NRPE config?