check_logs

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
epx998
Posts: 31
Joined: Mon Nov 21, 2011 3:51 pm

check_logs

Post 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?
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: check_logs

Post by jsmurphy »

Are you able to also post the command definition from your NRPE config?
Locked