Detecting a string in a file

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Detecting a string in a file

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Detecting a string in a file

Post by RIDS_I2MP »

Thanks Team,

It worked for me :)
Thanks & Regards,
I2MP Team.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Detecting a string in a file

Post by tgriep »

That is good to hear. Shall I close and lock up this post as solved?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked