Trying to monitor custom windows file -> access denied

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
heskez
Posts: 17
Joined: Wed Dec 09, 2015 9:38 am

Re: Trying to monitor custom windows file -> access denied

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Trying to monitor custom windows file -> access denied

Post by rkennedy »

Hmm, what happens if you grant full control? Does it work at that point? This is pretty strange.
Former Nagios Employee
heskez
Posts: 17
Joined: Wed Dec 09, 2015 9:38 am

Re: Trying to monitor custom windows file -> access denied

Post 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!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Trying to monitor custom windows file -> access denied

Post 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.
Former Nagios Employee
Locked