<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SNMP</title>
	<atom:link href="https://www.project34.net/category/software/snmp/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.project34.net</link>
	<description></description>
	<lastBuildDate>Sun, 03 Nov 2024 20:12:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Reading info of a mountpoint in a home folder of a user in CheckMK.</title>
		<link>https://www.project34.net/2024/11/03/reading-info-of-a-mountpoint-in-a-home-folder-of-a-user-in-checkmk/</link>
		
		<dc:creator><![CDATA[Maikel]]></dc:creator>
		<pubDate>Sun, 03 Nov 2024 16:50:44 +0000</pubDate>
				<category><![CDATA[CheckMK]]></category>
		<category><![CDATA[SNMP]]></category>
		<category><![CDATA[Software]]></category>
		<guid isPermaLink="false">https://www.project34.net/?p=502</guid>

					<description><![CDATA[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&#8230;]]></description>
										<content:encoded><![CDATA[
<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 vm, change a couple of values and voila, add the server to CMK and you can check the device.</p>



<p>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>



<p>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>



<p>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>



<p>Without MIB:<br>.1.3.6.1.2.1.25.2.3.1.3.66 = STRING: /home/USER/Data</p>



<p>With MIB:<br>HOST-RESOURCES-MIB::hrStorageDescr.66 = STRING: /home/USER/Data</p>



<p>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>



<p><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>



<p>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>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
