Permission denied errors in my audit logs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
BackNBlack
Posts: 20
Joined: Wed Nov 14, 2018 3:14 pm

Re: Permission denied errors in my audit logs

Post by BackNBlack »

Here you go

Code: Select all

ls -la /usr/local/nagios/var/rw/
total 8
drwsr-xr-x 2 nagios nagios 4096 Oct  1 15:17 .
drwxrwxr-x 6 nagios nagios 4096 Oct  1 15:38 ..
prw-rw---- 1 nagios nagios    0 Oct  1 15:17 nagios.cmd
srw-rw---- 1 nagios nagios    0 Oct  1 15:17 nagios.qh
FYI, We have another environment with what is supposed to be a similar configuration. It does not have these errors. I have been comparing the two and have not found any differences yet. To be clear these current access rights are exactly the same in both environments. Felt I needed to mention that.

Anyway, I have made your suggested changes, I wasn't sure so I rebooted afterwards.

Code: Select all

# ls -ld /usr/local/nagios
drwxr-xr-x 8 nagios nagios 4096 Sep 27  2018 /usr/local/nagios

# ls -ld /usr/local/nagios/var/rw/
drwxrwsr-x 2 nagios nagios 4096 Oct  1 15:53 /usr/local/nagios/var/rw/

# grep requiretty /etc/sudoers
Defaults    requiretty
Issue continues to persist.

Thanks
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Permission denied errors in my audit logs

Post by lmiltchev »

Change this:

Code: Select all

Defaults    requiretty
to this:

Code: Select all

Defaults:nagios !requiretty
in sudoers.

If you are still having issues after that, open a ticket via our support center here:

https://support.nagios.com/tickets/

We may need to schedule a remote session to further troubleshoot your issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked