Reading info of a mountpoint in a home folder of a user in CheckMK.

I use CheckMK (CMK) for a while now. I find (if you only want to monitor stuff) zabbix and other tools a bit to complicated. With CMK is do an install of SNMPD on an vm, change a couple of values and voila, add the server to CMK and you can check the device.

Now i wanted to monitor my personal pc. Same trick: Install SNMPD, change the snmpd.conf file, add the pc to CMK and done! Well not really. One of my mounted disks wasn’t found. I could see it in snmpwalk, but it didn’t register in CMK.

The reason I added an separate disk below an user folder, was simple: My main root disk is an SSD and a lot of not frequently used data (games, scripts etc) can be run from the HDD.

Well, like I Said, the disk was detected in SNMPwalk, but you didn’t see it in CMK. I thought my issue was in CMK. Not really information was found in CMK. Eventually did a deinstall of SNMPD and did a reainstall with the (debian) package ‘snmp-mibs-downloader’. This package installs a lot of MIB files, so the number system is converted to a more readable entry:

Without MIB:
.1.3.6.1.2.1.25.2.3.1.3.66 = STRING: /home/USER/Data

With MIB:
HOST-RESOURCES-MIB::hrStorageDescr.66 = STRING: /home/USER/Data

With the MIB description I started searching again and found a post on the website barryp.org. Here Barry P (I hope that’s his name) described a bit my issue.

The solution
(!!) Please note, the PC is only used by me, so I’m a bit less stringent in how I solve the issue.

The issue lay in that when i tested it with SNMPWalk i had enough rights to access the path to the mounted mountpoint. The SNMPD service didn’t have this rights, so i had to check the complete path. The /home folder had already the correct mod (0755), my home folder was only accessible by me, so with ‘chmod 0755 /home/USER’ I got that the CMK could detect the folder. After that I did a rescan of the the host in CMK, and it was there!