Real-time Log File from NSClient++
Posted: Tue Jun 23, 2015 8:31 am
Hi All,
I am currently using the latest stable 0.4.3 version of NSclient and am currently struggling to monitor changes to log-files in real-time.
I have followed the guide at http://blog.medin.name/blog/2012/11/26/ ... ext-files/
by adding the following to my nsclient.ini;
and then running;
I can see the change by issuing the following to 'nscp test --log info';
The problem I have is when I try to change the name of the index. ie change;
to
in nsclient.ini. If I restart the service and instead issue the command;
I get a message;
Also if I try to use the 'maximum age' field in NSclient.ini this seems to have no effect or change the log location I don't get the expected result.
Thanks in advance,
Matthew
I am currently using the latest stable 0.4.3 version of NSclient and am currently struggling to monitor changes to log-files in real-time.
I have followed the guide at http://blog.medin.name/blog/2012/11/26/ ... ext-files/
by adding the following to my nsclient.ini;
Code: Select all
[settings/logfile/real-time/checks/logfile]
file=c:/test2.log
target=CACHE
critical=column1 like 'error'
column split=;Code: Select all
echo error;error >>c:\test2.logCode: Select all
check_cache key=logfileCode: Select all
[settings/logfile/real-time/checks/logfile]Code: Select all
[settings/logfile/real-time/checks/brokerserver]Code: Select all
check_cache key=brokerserverCode: Select all
cli UNKNOWN: Entry not foundThanks in advance,
Matthew