<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Monitoraggio_RAID_Software_con_Nagios</id>
	<title>Monitoraggio RAID Software con Nagios - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Monitoraggio_RAID_Software_con_Nagios"/>
	<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Monitoraggio_RAID_Software_con_Nagios&amp;action=history"/>
	<updated>2026-05-06T17:22:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://kb.rvmgroup.it/index.php?title=Monitoraggio_RAID_Software_con_Nagios&amp;diff=5898&amp;oldid=prev</id>
		<title>Gabriele.vivinetto at 08:38, 14 October 2008</title>
		<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Monitoraggio_RAID_Software_con_Nagios&amp;diff=5898&amp;oldid=prev"/>
		<updated>2008-10-14T08:38:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:38, 14 October 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Creare il file del plugin:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Creare il file del plugin&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, oppure prelevarlo da&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;scp support.rvmgroup.it:/usr/lib/nagios/plugins/check_md /tmp&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sudo mv /tmp/check_md /usr/lib/nagios/plugins/check_md&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sudo chmod +x /usr/lib/nagios/plugins/check_md&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=perl&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=perl&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l130&quot;&gt;Line 130:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 135:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  command[check-md0]=/usr/lib/nagios/plugins/check_md --device=/dev/md0&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  command[check-md0]=/usr/lib/nagios/plugins/check_md --device=/dev/md0&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  command[check-md1]=/usr/lib/nagios/plugins/check_md --device=/dev/md1&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  command[check-md1]=/usr/lib/nagios/plugins/check_md --device=/dev/md1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Riavviare nrpe:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; sudo /etc/init.d/nagios-nrpe-server restart&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Riferimenti==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Riferimenti==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[http://www.logix.cz/michal/devel/nagios/nagios-linux-swraid.pl Lo script originale]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[http://www.logix.cz/michal/devel/nagios/nagios-linux-swraid.pl Lo script originale]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Gabriele.vivinetto</name></author>
	</entry>
	<entry>
		<id>https://kb.rvmgroup.it/index.php?title=Monitoraggio_RAID_Software_con_Nagios&amp;diff=5895&amp;oldid=prev</id>
		<title>Gabriele.vivinetto at 13:24, 10 October 2008</title>
		<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Monitoraggio_RAID_Software_con_Nagios&amp;diff=5895&amp;oldid=prev"/>
		<updated>2008-10-10T13:24:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:24, 10 October 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l124&quot;&gt;Line 124:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 124:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Il plugin è richimabile con l&amp;#039;opzione --device=/dev/mdx per testare un solo device, o senza, per testare tutti i device.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Il plugin è richimabile con l&amp;#039;opzione --device=/dev/mdx per testare un solo device, o senza, per testare tutti i device.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; sudoedit /etc/nagios/nrpe_local.cfg&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; command[check-md0]=/usr/lib/nagios/plugins/check_md --device=/dev/md0&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; command[check-md1]=/usr/lib/nagios/plugins/check_md --device=/dev/md1&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Riferimenti==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Riferimenti==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[http://www.logix.cz/michal/devel/nagios/nagios-linux-swraid.pl Lo script originale]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[http://www.logix.cz/michal/devel/nagios/nagios-linux-swraid.pl Lo script originale]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Gabriele.vivinetto</name></author>
	</entry>
	<entry>
		<id>https://kb.rvmgroup.it/index.php?title=Monitoraggio_RAID_Software_con_Nagios&amp;diff=5890&amp;oldid=prev</id>
		<title>Gabriele.vivinetto: New page: Creare il file del plugin:  &lt;source lang=perl&gt; cat &lt;&lt;&#039;EOFile&#039; | sudo tee /usr/lib/nagios/plugins/check_md #!/usr/bin/env perl  # Get status of Linux software RAID for SNMP / Nagios # Autho...</title>
		<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Monitoraggio_RAID_Software_con_Nagios&amp;diff=5890&amp;oldid=prev"/>
		<updated>2008-10-01T16:03:55Z</updated>

		<summary type="html">&lt;p&gt;New page: Creare il file del plugin:  &amp;lt;source lang=perl&amp;gt; cat &amp;lt;&amp;lt;&amp;#039;EOFile&amp;#039; | sudo tee /usr/lib/nagios/plugins/check_md #!/usr/bin/env perl  # Get status of Linux software RAID for SNMP / Nagios # Autho...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Creare il file del plugin:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=perl&amp;gt;&lt;br /&gt;
cat &amp;lt;&amp;lt;&amp;#039;EOFile&amp;#039; | sudo tee /usr/lib/nagios/plugins/check_md&lt;br /&gt;
#!/usr/bin/env perl&lt;br /&gt;
&lt;br /&gt;
# Get status of Linux software RAID for SNMP / Nagios&lt;br /&gt;
# Author: Michal Ludvig &amp;lt;michal@logix.cz&amp;gt;&lt;br /&gt;
#         http://www.logix.cz/michal/devel/nagios&lt;br /&gt;
# &lt;br /&gt;
# Simple parser for /proc/mdstat that outputs status of all&lt;br /&gt;
# or some RAID devices. Possible results are OK and CRITICAL.&lt;br /&gt;
# It could eventually be extended to output WARNING result in &lt;br /&gt;
# case the array is being rebuilt or if there are still some &lt;br /&gt;
# spares remaining, but for now leave it as it is.&lt;br /&gt;
# &lt;br /&gt;
# To run the script remotely via SNMP daemon (net-snmp) add the&lt;br /&gt;
# following line to /etc/snmpd.conf:&lt;br /&gt;
# &lt;br /&gt;
# extend raid-md0 /root/parse-mdstat.pl --device=md0&lt;br /&gt;
# &lt;br /&gt;
# The script result will be available e.g. with command:&lt;br /&gt;
# &lt;br /&gt;
# snmpwalk -v2c -c public localhost .1.3.6.1.4.1.8072.1.3.2&lt;br /&gt;
&lt;br /&gt;
use strict;&lt;br /&gt;
use Getopt::Long;&lt;br /&gt;
&lt;br /&gt;
# Sample /proc/mdstat output:&lt;br /&gt;
# &lt;br /&gt;
# Personalities : [raid1] [raid5]&lt;br /&gt;
# md0 : active (read-only) raid1 sdc1[1]&lt;br /&gt;
#       2096384 blocks [2/1] [_U]&lt;br /&gt;
# &lt;br /&gt;
# md1 : active raid5 sdb3[2] sdb4[3] sdb2[4](F) sdb1[0] sdb5[5](S)&lt;br /&gt;
#       995712 blocks level 5, 64k chunk, algorithm 2 [3/2] [U_U]&lt;br /&gt;
#       [=================&amp;gt;...]  recovery = 86.0% (429796/497856) finish=0.0min speed=23877K/sec&lt;br /&gt;
# &lt;br /&gt;
# unused devices: &amp;lt;none&amp;gt;&lt;br /&gt;
&lt;br /&gt;
my $file = &amp;quot;/proc/mdstat&amp;quot;;&lt;br /&gt;
my $device = &amp;quot;all&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
# Get command line options.&lt;br /&gt;
GetOptions (&amp;#039;file=s&amp;#039; =&amp;gt; \$file,&lt;br /&gt;
        &amp;#039;device=s&amp;#039; =&amp;gt; \$device,&lt;br /&gt;
        &amp;#039;help&amp;#039; =&amp;gt; sub { &amp;amp;usage() } );&lt;br /&gt;
&lt;br /&gt;
## Strip leading &amp;quot;/dev/&amp;quot; from --device in case it has been given&lt;br /&gt;
$device =~ s/^\/dev\///;&lt;br /&gt;
&lt;br /&gt;
## Return codes for Nagios&lt;br /&gt;
my %ERRORS=(&amp;#039;OK&amp;#039;=&amp;gt;0,&amp;#039;WARNING&amp;#039;=&amp;gt;1,&amp;#039;CRITICAL&amp;#039;=&amp;gt;2,&amp;#039;UNKNOWN&amp;#039;=&amp;gt;3,&amp;#039;DEPENDENT&amp;#039;=&amp;gt;4);&lt;br /&gt;
&lt;br /&gt;
## This is a global return value - set to the worst result we get overall&lt;br /&gt;
my $retval = 0;&lt;br /&gt;
&lt;br /&gt;
my (%active_devs, %failed_devs, %spare_devs);&lt;br /&gt;
&lt;br /&gt;
open FILE, &amp;quot;&amp;lt; $file&amp;quot; or die &amp;quot;Can&amp;#039;t open $file : $!&amp;quot;;&lt;br /&gt;
while (&amp;lt;FILE&amp;gt;) {&lt;br /&gt;
        next if ! /^(md\d+)+\s*:/;&lt;br /&gt;
        next if $device ne &amp;quot;all&amp;quot; and $device ne $1;&lt;br /&gt;
        my $dev = $1;&lt;br /&gt;
&lt;br /&gt;
        my @array = split(/ /);&lt;br /&gt;
        for $_ (@array) {&lt;br /&gt;
                next if ! /(\w+)\[\d+\](\(.\))*/;&lt;br /&gt;
                if ($2 eq &amp;quot;(F)&amp;quot;) {&lt;br /&gt;
                        $failed_devs{$dev} .= &amp;quot;$1,&amp;quot;;&lt;br /&gt;
                }&lt;br /&gt;
                elsif ($2 eq &amp;quot;(S)&amp;quot;) {&lt;br /&gt;
                        $spare_devs{$dev} .= &amp;quot;$1,&amp;quot;;&lt;br /&gt;
                }&lt;br /&gt;
                else {&lt;br /&gt;
                        $active_devs{$dev} .= &amp;quot;$1,&amp;quot;;&lt;br /&gt;
                }&lt;br /&gt;
        }&lt;br /&gt;
        if (! defined($active_devs{$dev})) { $active_devs{$dev} = &amp;quot;none&amp;quot;; }&lt;br /&gt;
                else { $active_devs{$dev} =~ s/,$//; }&lt;br /&gt;
        if (! defined($spare_devs{$dev}))  { $spare_devs{$dev}  = &amp;quot;none&amp;quot;; }&lt;br /&gt;
                else { $spare_devs{$dev} =~ s/,$//; }&lt;br /&gt;
        if (! defined($failed_devs{$dev})) { $failed_devs{$dev} = &amp;quot;none&amp;quot;; }&lt;br /&gt;
                else { $failed_devs{$dev} =~ s/,$//; }&lt;br /&gt;
&lt;br /&gt;
        $_ = &amp;lt;FILE&amp;gt;;&lt;br /&gt;
        /\[(\d+)\/(\d+)\]\s+\[(.*)\]$/;&lt;br /&gt;
        my $devs_total = $1;&lt;br /&gt;
        my $devs_up = $2;&lt;br /&gt;
        my $stat = $3;&lt;br /&gt;
        my $result = &amp;quot;OK&amp;quot;;&lt;br /&gt;
        if ($devs_total &amp;gt; $devs_up or $failed_devs{$dev} ne &amp;quot;none&amp;quot;) {&lt;br /&gt;
                $result = &amp;quot;CRITICAL&amp;quot;;&lt;br /&gt;
                $retval = $ERRORS{&amp;quot;CRITICAL&amp;quot;};&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        print &amp;quot;$result - $dev [$stat] has $devs_up of $devs_total devices active (active=$active_devs{$dev} failed=$failed_devs{$dev} spare=$spare_devs{$dev})\n&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
close FILE;&lt;br /&gt;
exit $retval;&lt;br /&gt;
&lt;br /&gt;
# =====&lt;br /&gt;
sub usage()&lt;br /&gt;
{&lt;br /&gt;
        printf(&amp;quot;&lt;br /&gt;
Check status of Linux SW RAID&lt;br /&gt;
&lt;br /&gt;
Author: Michal Ludvig &amp;lt;michal\@logix.cz&amp;gt; (c) 2006&lt;br /&gt;
        http://www.logix.cz/michal/devel/nagios&lt;br /&gt;
&lt;br /&gt;
Usage: mdstat-parser.pl [options]&lt;br /&gt;
&lt;br /&gt;
  --file=&amp;lt;filename&amp;gt;    Name of file to parse. Default is /proc/mdstat&lt;br /&gt;
  --device=&amp;lt;device&amp;gt;    Name of MD device, e.g. md0. Default is \&amp;quot;all\&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;);&lt;br /&gt;
        exit(1);&lt;br /&gt;
}&lt;br /&gt;
EOFile&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Renderlo eseguibile:&lt;br /&gt;
 sudo chmod +x /usr/lib/nagios/plugins/check_md&lt;br /&gt;
&lt;br /&gt;
Il plugin è richimabile con l&amp;#039;opzione --device=/dev/mdx per testare un solo device, o senza, per testare tutti i device.&lt;br /&gt;
&lt;br /&gt;
==Riferimenti==&lt;br /&gt;
*[http://www.logix.cz/michal/devel/nagios/nagios-linux-swraid.pl Lo script originale]&lt;/div&gt;</summary>
		<author><name>Gabriele.vivinetto</name></author>
	</entry>
</feed>