Page 2 of 2
Re: Trying to monitor custom windows file -> access denied
Posted: Fri Jan 22, 2016 5:45 am
by heskez
Hi, srv_nxlog is a service account what I've created within the AD domain.
This account is member of the local admin group on the server where the nxlog service is running.
The thing is, when I run the service under local system account I'm getting also access denied messages on the log file.
Re: Trying to monitor custom windows file -> access denied
Posted: Fri Jan 22, 2016 10:59 am
by rkennedy
Hmm, what happens if you grant full control? Does it work at that point? This is pretty strange.
Re: Trying to monitor custom windows file -> access denied
Posted: Tue Jan 26, 2016 11:03 am
by heskez
I think this is it:
Code: Select all
# Watch your own files
<Input error.log>
Module im_file
File 'd:\test\server1'
I forgot to include the error log it should be this:
Code: Select all
# Watch your own files
<Input error.log>
Module im_file
File 'd:\test\server1\error.log'
I don't see the access denied messages anymore and content of error.log file is found within the Nagios Dashboard with source Eventlog!
Re: Trying to monitor custom windows file -> access denied
Posted: Tue Jan 26, 2016 12:05 pm
by rkennedy
Ah! Glad to see you found the missing piece!
I'll close this out now, but if you need any assistance in the future, feel free to open a new thread.