{"id":502,"date":"2024-11-03T17:50:44","date_gmt":"2024-11-03T16:50:44","guid":{"rendered":"https:\/\/www.project34.net\/?p=502"},"modified":"2024-11-03T21:12:27","modified_gmt":"2024-11-03T20:12:27","slug":"reading-info-of-a-mountpoint-in-a-home-folder-of-a-user-in-checkmk","status":"publish","type":"post","link":"https:\/\/www.project34.net\/index.php\/2024\/11\/03\/reading-info-of-a-mountpoint-in-a-home-folder-of-a-user-in-checkmk\/","title":{"rendered":"Reading info of a mountpoint in a home folder of a user in CheckMK."},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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&#8217;t found. I could see it in snmpwalk, but it didn&#8217;t register in CMK. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Well, like I Said, the disk was detected in SNMPwalk, but you didn&#8217;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 &#8216;snmp-mibs-downloader&#8217;. This package installs a lot of MIB files, so the number system is converted to a more readable entry:<br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Without MIB:<br>.1.3.6.1.2.1.25.2.3.1.3.66 = STRING: \/home\/USER\/Data<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With MIB:<br>HOST-RESOURCES-MIB::hrStorageDescr.66 = STRING: \/home\/USER\/Data<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With the MIB description I started searching again and found a post on the website <a href=\"https:\/\/barryp.org\/blog\/entries\/snmp-server-not-reporting-disk-size\" data-type=\"link\" data-id=\"https:\/\/barryp.org\/blog\/entries\/snmp-server-not-reporting-disk-size\">barryp.org<\/a>. Here Barry P (I hope that&#8217;s his name) described a bit my issue. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The solution<\/strong><br>(!!) Please note, the PC is only used by me, so I&#8217;m a bit less stringent in how I solve the issue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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&#8217;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 &#8216;chmod 0755 \/home\/USER&#8217; 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!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58,57,33],"tags":[],"class_list":["post-502","post","type-post","status-publish","format-standard","hentry","category-checkmk","category-snmp","category-software"],"_links":{"self":[{"href":"https:\/\/www.project34.net\/index.php\/wp-json\/wp\/v2\/posts\/502","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.project34.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.project34.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.project34.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.project34.net\/index.php\/wp-json\/wp\/v2\/comments?post=502"}],"version-history":[{"count":1,"href":"https:\/\/www.project34.net\/index.php\/wp-json\/wp\/v2\/posts\/502\/revisions"}],"predecessor-version":[{"id":503,"href":"https:\/\/www.project34.net\/index.php\/wp-json\/wp\/v2\/posts\/502\/revisions\/503"}],"wp:attachment":[{"href":"https:\/\/www.project34.net\/index.php\/wp-json\/wp\/v2\/media?parent=502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.project34.net\/index.php\/wp-json\/wp\/v2\/categories?post=502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.project34.net\/index.php\/wp-json\/wp\/v2\/tags?post=502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}