CMK version: 2.3.0p6
OS version: Ubuntu 24.04 (system running the agent)
Error message: State: Hanging
Output of “cmk --debug -vvn hostname”: Guess it won’t help but…
Command 'cmk' not found, but can be installed with:
snap install cloudmonkey
Output of check_mk_agent --debug -vvn hostname is huge… is there any way to insert this in a good fashion?
I have looked into this for a while now and i am hitting dead ends everywhere as there are similar issues, but no results in this forum here (and many places more) match exactly what is the issue here.
We have two volumes mounted via CIFS. Everything else works as expected (as in: filesystem access, directory listing etc.)
I have tried around with some options documented in the mount.cifs man page, but nothing changed. Mounting automatically with systemd or manually also did not change anything.
One of the volumes can be checked with stat -f /path/to/mount and the result looks good:
root@servername:~# stat -f /path/to/mount1/
File: "/path/to/mount1/"
ID: .... Namelen: 255 Type: smb2
Block size: 4096 Fundamental block size: 4096
Blocks: Total: 671055355 Free: 39602688 Available: 39602688
Inodes: Total: 0 Free: 0
While the other volume - when checked - just returns:
root@servername:~# stat -f /path/to/mount2/
stat: cannot read file system information for '/path/to/mount2/': Permission denied
There is a noticable size difference in the directory size, but permissions should be fine otherwise:
root@servername:/path/to# ls -l
total 4424
drwxr-xr-x 2 root root 655360 Feb 18 12:00 mount1
drwxr-xr-x 2 root root 3874816 Feb 18 00:35 mount2
I guess it might come down to some CIFS / SMB specifics, probably depending on the remote server version and settings, but this would raise the question, if the CIFS check could be optimized to support more all scenarios.