Page 4 of 4

Re: Detecting a string in a file

Posted: Mon Aug 01, 2016 10:04 am
by tgriep
Version 3.11d is the latest version and the -l option is valid.

From your previous post that is showing the errors, it looks like the issue is with the -m option which should create the filename but it is adding the -l to the command.

It could be that the arguments being sent from the Nagios system to the Windows server may be causing the issue. Try running it like this and see if that works for you.
It could be that the single quotes are striped out of the argument so this will send the argument with the single quotes.

Code: Select all

./check_nrpe -H 192.168.5.232 -c check_log3 -a "-l d:\testfolder\ss -m '%y%m%d_*.txt' -p TEST"
If you do have errors, post how you ran the command and the error message.

Re: Detecting a string in a file

Posted: Thu Aug 04, 2016 1:31 am
by RIDS_I2MP
Thanks Team,

It worked for me :)

Re: Detecting a string in a file

Posted: Thu Aug 04, 2016 8:51 am
by tgriep
That is good to hear. Shall I close and lock up this post as solved?