[Check_mk (english)] Exception in precompiled check: [Errno 13] Permission denied: '/var/lib/check_mk/persisted/

Hi list…

I’m starting to see errors like this on my hosts (may be, but not sure, related with non working HW/SW inventory):

Output of check plugin:

UNKNOWN - Exception in precompiled check: [Errno 13] Permission denied: ‘/var/lib/check_mk/persisted/somehost.somedomain.com’ (details in long output)

Long output of check plugin (multiline):

Traceback: Traceback (most recent call last):

File “/var/lib/check_mk/precompiled/somehost.somedomain.com”, line 4861, in

File “/var/lib/check_mk/precompiled/somehost.somedomain.com”, line 869, in do_check

!c

by examining /var/lib/check_mk folder I see a mixture of permissions:

root@monitoring:~# ls -l /var/lib/check_mk

total 76

drwxr-xr-x 2 root root 4096 Jul 7 18:11 autochecks

drwxr-xr-x 2 nagios root 12288 Jul 7 18:12 cache

drwxr-xr-x 2 nagios root 4096 Jul 7 18:12 counters

drwxr-xr-x 7 root root 4096 Jun 16 13:49 crashed_checks

drwxrwxr-x 2 nagios nagcmd 4096 Jul 7 18:21 inventory

-rw-r–r-- 1 root root 107 Apr 19 14:04 ipaddresses.cache

drwxrwxr-x 2 nagios nagcmd 4096 Jul 6 16:20 log

drwxr-xr-x 3 nagios root 4096 Jul 6 12:04 logwatch

drwxr-xr-x 3 nagios root 4096 Apr 12 22:04 notify

drwxr-xr-x 2 root root 4096 Apr 8 11:32 packages

drwxr-xr-x 2 root root 4096 Jul 7 18:11 persisted

drwxr-xr-x 2 root root 12288 Jul 7 18:11 precompiled

drwxrwxr-x 2 root nagcmd 4096 Apr 8 11:32 tmp

drwxrwxr-x 6 root nagcmd 4096 Apr 8 11:49 wato

drwxrwxr-x 6 nagios nagcmd 4096 May 6 14:26 web

and by examining the offending folder ‘persisted’ I see the following:

root@monitoring:~# ls -l /var/lib/check_mk/persisted

total 56

-rw-r–r-- 1 root root 56960 Jul 7 18:11 somehost.somedomain.com

Googling about this is not of much help… can anyone help?

Thank you in advance!!!

Best regards.