{"id":302,"date":"2018-05-10T19:05:44","date_gmt":"2018-05-10T17:05:44","guid":{"rendered":"https:\/\/blog.gerst-it.com\/?p=302"},"modified":"2018-07-19T07:22:33","modified_gmt":"2018-07-19T05:22:33","slug":"monitoring-software-raid-on-xenserver","status":"publish","type":"post","link":"https:\/\/blog.gerst-it.com\/?p=302","title":{"rendered":"Monitoring Software Raid on XenServer"},"content":{"rendered":"<p><strong>1.<\/strong> Sync disks<\/p>\n<pre><code>mdadm --detail \/dev\/md0<\/code> <strong> \r\n\r\n2.<\/strong> activate monitoring and create config file<\/pre>\n<pre><code>mdadm --verbose --detail --scan &gt;&gt; \/etc\/mdadm.conf<\/code><\/pre>\n<p><strong>3.<\/strong> Setup mail connection \/etc\/ssmtp\/ssmtp.conf<br \/>\n<code><br \/>\nroot=your_mail@gmail.com<br \/>\nmailhub=smtp.gmail.com:587<br \/>\nHostname=your_hostname.yourdomain.sth<br \/>\nUseTLS=YES<br \/>\nTLS_CA_File=\/etc\/pki\/tls\/certs\/ca-bundle.crt<br \/>\nUseSTARTTLS=YES<br \/>\nAuthUser=your_mail@gmail.com<br \/>\nAuthPass=your_password<br \/>\nFromLineOverride=YES<br \/>\n<\/code><\/p>\n<div><\/div>\n<div><strong>4.<\/strong> Append mail address in \/etc\/mdadm.conf<\/div>\n<pre>...\r\nMAILADDR\u00a0destination_mail@provider.sth\r\nMAILFROM your_mail@gmail.com\r\n<\/pre>\n<p>&nbsp;<\/p>\n<div><\/div>\n<div><strong>5.<\/strong> Test mail monitoring<\/div>\n<p><code>mdadm --monitor --scan --test --oneshot<\/code><\/p>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>1. Sync disks mdadm &#8211;detail \/dev\/md0 2. activate monitoring and create config file mdadm &#8211;verbose &#8211;detail &#8211;scan &gt;&gt; \/etc\/mdadm.conf 3. Setup mail connection \/etc\/ssmtp\/ssmtp.conf root=your_mail@gmail.com mailhub=smtp.gmail.com:587 Hostname=your_hostname.yourdomain.sth UseTLS=YES TLS_CA_File=\/etc\/pki\/tls\/certs\/ca-bundle.crt UseSTARTTLS=YES AuthUser=your_mail@gmail.com AuthPass=your_password FromLineOverride=YES 4. Append mail address in \/etc\/mdadm.conf &#8230; MAILADDR\u00a0destination_mail@provider.sth MAILFROM your_mail@gmail.com &nbsp; 5. Test mail monitoring mdadm &#8211;monitor &#8211;scan &#8211;test &#8211;oneshot<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,3],"tags":[],"class_list":["post-302","post","type-post","status-publish","format-standard","hentry","category-allgemein","category-xen"],"_links":{"self":[{"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=\/wp\/v2\/posts\/302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=302"}],"version-history":[{"count":6,"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=\/wp\/v2\/posts\/302\/revisions"}],"predecessor-version":[{"id":313,"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=\/wp\/v2\/posts\/302\/revisions\/313"}],"wp:attachment":[{"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}