tgriep wrote: ↑Fri Jan 19, 2024 10:08 am
I suspect it could be a permission issue for the folders.
Make sure the nagios user can read and write to the 2 folders shown in the errors.
Else it may be that the inodes on the drive is filled up. Rhu the following as root and post the output.
Code: Select all
df -i
df -h
ls -al /
ls -al /usr/local/nagios/var/spool
And, if the /usr/local/nagios/var/spool/checkresults folder is full of files, that could be another cause so delete the files in the /usr/local/nagios/var/spool/checkresults folder.
Thank You.
How can I check if the nagios user has read and write access to the 2 mentioned folders?
Hereby the results of the requested commands. There are no files in the checkresults folder.
root@RSB-VWA-T-MON:/home/ubuntu# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
tmpfs 999426 1486 997940 1% /run
/dev/mmcblk0p2 3754080 3754080 0 100% /
tmpfs 999426 1 999425 1% /dev/shm
tmpfs 999426 4 999422 1% /run/lock
/dev/mmcblk0p1 0 0 0 - /boot/firmware
tmpfs 199885 25 199860 1% /run/user/1000
root@RSB-VWA-T-MON:/home/ubuntu# df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 781M 20M 762M 3% /run
/dev/mmcblk0p2 59G 46G 10G 83% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/mmcblk0p1 253M 122M 131M 49% /boot/firmware
tmpfs 781M 4.0K 781M 1% /run/user/1000
root@RSB-VWA-T-MON:/home/ubuntu# ls -al /
total 10756
drwxr-xr-x 20 root root 4096 Jan 22 11:12 .
drwxr-xr-x 20 root root 4096 Jan 22 11:12 ..
drwxr-xr-x 2 root root 4096 Jul 31 2020 .disk
lrwxrwxrwx 1 root root 7 Jul 31 2020 bin -> usr/bin
drwxr-xr-x 4 root root 4096 Jan 16 07:01 boot
-rw------- 1 root root 10928128 Oct 11 2022 core
drwxr-xr-x 17 root root 14020 Jan 22 11:12 dev
drwxr-xr-x 122 root root 12288 Jan 16 06:55 etc
drwxr-xr-x 5 root root 4096 Jun 8 2021 home
lrwxrwxrwx 1 root root 7 Jul 31 2020 lib -> usr/lib
drwx------ 2 root root 16384 Jul 31 2020 lost+found
drwxr-xr-x 2 root root 4096 Jul 31 2020 media
drwxr-xr-x 2 root root 4096 Jul 31 2020 mnt
drwxr-xr-x 3 root root 4096 Feb 7 2022 opt
dr-xr-xr-x 656 root root 0 Jan 1 1970 proc
drwx------ 6 root root 4096 May 10 2023 root
drwxr-xr-x 32 root root 980 Jan 22 11:15 run
lrwxrwxrwx 1 root root 8 Jul 31 2020 sbin -> usr/sbin
drwxr-xr-x 7 root root 4096 Sep 15 2021 snap
drwxr-xr-x 3 root root 4096 Oct 27 2020 srv
dr-xr-xr-x 12 root root 0 Jan 1 1970 sys
-rw-r--r-- 1 root root 0 Jun 10 2021 syslog
drwxrwxrwt 10 root root 4096 Jan 22 11:12 tmp
drwxr-xr-x 11 root root 4096 Feb 4 2022 usr
drwxr-xr-x 14 root root 4096 Oct 20 2020 var
root@RSB-VWA-T-MON:/home/ubuntu# ls -al /usr/local/nagios/var/spool
total 169080
drwxr-xr-x 4 nagios nagios 4096 Feb 7 2022 .
drwxr-xr-x 5 nagios nagios 4096 Jan 22 11:12 ..
drwxrwxr-x 2 nagios nagcmd 4096 Jan 22 11:12 checkresults
drwxr-xr-x 2 nagios nagios 173113344 Jan 22 11:12 nagfluxperfdata
root@RSB-VWA-T-MON:/home/ubuntu# cd /usr/local/nagios/var/spool/checkresults
root@RSB-VWA-T-MON:/usr/local/nagios/var/spool/checkresults# ls -ls
total 0