<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Arial Narrow";
        panose-1:2 11 6 6 2 2 2 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">David/Ralph,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">The solution I finally settled on was very simple… for the xymon client user, the first location in the PATH environment variable is /usr/libexec/xymon-client. 
 So I put a script called df in that directory with the sudo df command in it.  Since it’s first in the path for the xymon user and not in anyone else’s path that fixes my problem for xymon while not affecting anyone else on the system.  It is also minimally
 invasive, easily repeatable on all my other systems via puppet, and requires no future maintenance as I’m not changing any files that can be overwritten later.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> Xymon [mailto:xymon-bounces@xymon.com]
<b>On Behalf Of </b>Ralph Mitchell<br>
<b>Sent:</b> Wednesday, January 4, 2017 11:09 AM<br>
<b>To:</b> Scot Kreienkamp<br>
<b>Cc:</b> xymon@xymon.com<br>
<b>Subject:</b> Re: [Xymon] Disk not being reported<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in">
You could copy the df/inode fragments from the original client script and make up a script for root to run from cron every 5 minutes.  Drop the output into a file that the Xymon client can read and just alter the client script to cat the file content.  You
 won't need to give sudo to xymon for that.<o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in">
Ralph Mitchell<br>
<br>
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-left:.5in">On Wed, Jan 4, 2017 at 10:42 AM, Scot Kreienkamp <<a href="mailto:Scot.Kreienkamp@la-z-boy.com" target="_blank">Scot.Kreienkamp@la-z-boy.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in">
Hi everyone,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in">
 <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in">
I am having a problem with some of my disk reporting.  Postgres requires 700 permissions on its data directory, which in my case is also a mount.  That causes non-root users (xymon) to get a permission denied error when running checks like inode and df.  I
 can’t change the permissions on the directory or postgres won’t start so the only other options I can come up with are to make xymon run as root (not a good idea), or have it use sudo to run its disk tests somehow.  Anyone run into this before?  Any words
 of wisdom on if it’s possible to use sudo to run the df/inode tests in xymon?<o:p></o:p></p>
</div>
<p style="margin-left:.5in;line-height:10.5pt" id="m_-2096774336561854437c1-id-6">
<strong id="m_-2096774336561854437c1-id-7"><span style="font-size:9.0pt;font-family:"Arial Narrow","sans-serif"">Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate</span></strong><span style="font-family:"Arial Narrow","sans-serif""><br id="m_-2096774336561854437c1-id-9">
</span><span style="font-size:8.0pt;font-family:"Calibri","sans-serif"">One La-Z-Boy Drive | Monroe, Michigan 48162  |</span><span style="font-size:10.0pt;font-family:"Calibri","sans-serif""> </span><span style="font-size:10.0pt;font-family:Wingdings;color:black">(</span><span style="font-size:10.0pt;font-family:"Calibri","sans-serif""> <a href="tel:(734)%20384-6403" target="_blank">734-384-6403</a>
 | </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">| </span>
<span style="font-size:9.0pt;font-family:Wingdings;color:black">)</span><span style="font-size:8.0pt;font-family:"Calibri","sans-serif""> </span><span style="font-size:9.0pt;font-family:"Calibri","sans-serif""><a href="tel:(734)%20915-1444" target="_blank">7349151444</a></span><span style="font-size:8.0pt;font-family:"Calibri","sans-serif""> </span><span style="font-size:8.0pt;font-family:"Arial Narrow","sans-serif"">| </span><span style="font-size:10.0pt;font-family:Wingdings;color:black">*</span><span style="font-size:8.0pt;font-family:"Arial Narrow","sans-serif"">  </span><span style="font-size:8.0pt;font-family:"Calibri","sans-serif""><a href="mailto:%7BE-mail%7D" target="_blank" id="m_-2096774336561854437c1-id-34">Scot.Kreienkamp@la-z-boy.com</a><br id="m_-2096774336561854437c1-id-35">
</span><span style="font-size:8.0pt;font-family:"Arial Narrow","sans-serif""><a href="http://www.la-z-boy.com/" target="_blank" id="m_-2096774336561854437c1-id-37">www</a><a href="http://www.la-z-boy.com/" target="_blank" id="m_-2096774336561854437c1-id-40">.la-z-boy.com</a>
 | <a href="https://www.facebook.com/lazboy" target="_blank" id="m_-2096774336561854437c1-id-41">
facebook.</a><a href="https://www.facebook.com/lazboy" target="_blank" id="m_-2096774336561854437c1-id-43">com</a><a href="https://www.facebook.com/lazboy" target="_blank" id="m_-2096774336561854437c1-id-46">/</a></span><span style="font-size:8.0pt;font-family:"Calibri","sans-serif""><a href="http://facebook.com/lazboy" target="_blank" id="m_-2096774336561854437c1-id-48">lazboy</a></span><span style="font-size:8.0pt;font-family:"Arial Narrow","sans-serif""> | </span><span style="font-size:8.0pt;font-family:"Calibri","sans-serif""><a href="https://twitter.com/lazboy" target="_blank" id="m_-2096774336561854437c1-id-51">twitter.com/lazboy</a>
 | <a href="https://www.youtube.com/user/lazboy" target="_blank" id="m_-2096774336561854437c1-id-52">
youtube.com/</a><a href="https://www.youtube.com/user/lazboy" target="_blank" id="m_-2096774336561854437c1-id-54">lazboy</a><br id="m_-2096774336561854437c1-id-55">
<br id="m_-2096774336561854437c1-id-56">
</span><span style="font-family:"Arial Narrow","sans-serif""><img border="0" width="192" height="45" id="m_-2096774336561854437c1-id-57" src="cid:image001.jpg@01D2667F.59049D00"> 
<o:p></o:p></span></p>
<p style="margin-left:.5in;mso-line-height-alt:10.5pt" id="m_-2096774336561854437c1-id-58">
<span style="font-family:"Arial Narrow","sans-serif""> <o:p></o:p></span></p>
<p style="margin-left:.5in;line-height:10.5pt" id="m_-2096774336561854437c1-id-58">
<span style="font-size:8.0pt;font-family:"Arial Narrow","sans-serif"">This message is intended only for the individual or entity to which it is addressed.  It may contain privileged, confidential information which is exempt from disclosure under applicable
 laws.  If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information.  If you have received this communication in error, please notify
 us immediately by e-mail or by telephone at the above number. Thank you.</span><span style="font-family:"Arial Narrow","sans-serif""><o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in">
<br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
</div>
<p id="c1-id-6" style="FONT-FAMILY: Arial"><span id="c1-id-7" style="FONT-SIZE: 8pt; FONT-FAMILY: Calibri; LETTER-SPACING: normal"><strong id="c1-id-39"><span id="c1-id-41" style="font-size:9pt">Scot Kreienkamp  | Senior Systems Engineer | La-Z-Boy Corporate</span></strong><br id="c1-id-8">
</span><span id="c1-id-9" style="FONT-SIZE: 8pt; FONT-FAMILY: Calibri; LETTER-SPACING: normal">One La-Z-Boy Drive | Monroe, Michigan 48162 | Office: 734-384-6403 | | Mobile: 7349151444 | Email: Scot.Kreienkamp@la-z-boy.com</span></p>
</body>
</html>