<div dir="ltr"><div>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.<br><br></div>Ralph Mitchell<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 4, 2017 at 10:42 AM, Scot Kreienkamp <span dir="ltr"><<a href="mailto:Scot.Kreienkamp@la-z-boy.com" target="_blank">Scot.Kreienkamp@la-z-boy.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="#0563C1" vlink="#954F72" lang="EN-US">
<div class="m_-2096774336561854437WordSection1">
<p class="MsoNormal">Hi everyone,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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?<u></u><u></u></p>
</div>
<p style="FONT-FAMILY:'Arial Narrow';LINE-HEIGHT:14px" id="m_-2096774336561854437c1-id-6"><strong id="m_-2096774336561854437c1-id-7"><span style="FONT-SIZE:9pt" id="m_-2096774336561854437c1-id-8">Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate</span></strong><br id="m_-2096774336561854437c1-id-9">
<span style="font-family:Calibri" id="m_-2096774336561854437c1-id-10"><span style="FONT-SIZE:8pt" id="m_-2096774336561854437c1-id-11">One La-Z-Boy Drive | Monroe, Michigan 48162  |<span style="FONT-SIZE:10pt" id="m_-2096774336561854437c1-id-12"><span style="FONT-SIZE:8pt" id="m_-2096774336561854437c1-id-13"></span> </span></span><span style="FONT-SIZE:8pt" id="m_-2096774336561854437c1-id-14"><span style="FONT-SIZE:10pt" id="m_-2096774336561854437c1-id-15"><span style="FONT-SIZE:10pt;FONT-FAMILY:Wingdings;COLOR:black" id="m_-2096774336561854437c1-id-16">(</span></span><span style="FONT-SIZE:10pt" id="m_-2096774336561854437c1-id-17"> <a href="tel:(734)%20384-6403" value="+17343846403" target="_blank">734-384-6403</a></span></span><span style="FONT-SIZE:8pt" id="m_-2096774336561854437c1-id-18"><span style="FONT-SIZE:10pt" id="m_-2096774336561854437c1-id-19"><span style="FONT-SIZE:8pt" id="m_-2096774336561854437c1-id-20"></span>
 | <font id="m_-2096774336561854437c1-id-21" face="Tahoma">|</font><span style="FONT-SIZE:8pt" id="m_-2096774336561854437c1-id-22"><span style="FONT-FAMILY:Calibri" id="m_-2096774336561854437c1-id-23"></span></span><font id="m_-2096774336561854437c1-id-24" face="Tahoma">
</font><span style="FONT-SIZE:9pt;FONT-FAMILY:Wingdings;COLOR:black" id="m_-2096774336561854437c1-id-25">)</span><span style="FONT-SIZE:8pt" id="m_-2096774336561854437c1-id-26"> <span style="FONT-SIZE:9pt" id="m_-2096774336561854437c1-id-27"><a href="tel:(734)%20915-1444" value="+17349151444" target="_blank">7349151444</a></span></span><span style="FONT-SIZE:8pt" id="m_-2096774336561854437c1-id-28"></span></span></span></span><span style="FONT-SIZE:8pt" id="m_-2096774336561854437c1-id-29"><span style="font-family:Calibri" id="m_-2096774336561854437c1-id-30"> </span>| <span style="FONT-FAMILY:Calibri" id="m_-2096774336561854437c1-id-31"><span style="FONT-SIZE:10pt;FONT-FAMILY:Wingdings;COLOR:black" id="m_-2096774336561854437c1-id-32">*</span></span>  </span><span style="FONT-SIZE:8pt;FONT-FAMILY:Calibri" id="m_-2096774336561854437c1-id-33"><a href="mailto:%7BE-mail%7D" id="m_-2096774336561854437c1-id-34" target="_blank">Scot.<wbr>Kreienkamp@la-z-boy.com</a><br id="m_-2096774336561854437c1-id-35">
</span><span style="FONT-SIZE:8pt" id="m_-2096774336561854437c1-id-36"><a href="http://www.la-z-boy.com/" id="m_-2096774336561854437c1-id-37" target="_blank">www</a></span><span style="FONT-FAMILY:Calibri" id="m_-2096774336561854437c1-id-38"><span style="FONT-SIZE:8pt;FONT-FAMILY:'Arial Narrow'" id="m_-2096774336561854437c1-id-39"><a href="http://www.la-z-boy.com/" id="m_-2096774336561854437c1-id-40" target="_blank">.la-z-boy.com</a>
 | <a href="https://www.facebook.com/lazboy" id="m_-2096774336561854437c1-id-41" target="_blank">facebook.</a></span></span><span style="FONT-SIZE:8pt" id="m_-2096774336561854437c1-id-42"><a href="https://www.facebook.com/lazboy" id="m_-2096774336561854437c1-id-43" target="_blank">com</a></span><span style="FONT-FAMILY:Calibri" id="m_-2096774336561854437c1-id-44"><span style="FONT-SIZE:8pt;FONT-FAMILY:'Arial Narrow'" id="m_-2096774336561854437c1-id-45"><a href="https://www.facebook.com/lazboy" id="m_-2096774336561854437c1-id-46" target="_blank">/</a></span><span style="FONT-SIZE:8pt" id="m_-2096774336561854437c1-id-47"><a href="http://facebook.com/lazboy" id="m_-2096774336561854437c1-id-48" target="_blank">lazboy</a></span><span style="FONT-SIZE:8pt;FONT-FAMILY:'Arial Narrow'" id="m_-2096774336561854437c1-id-49"> | </span><span style="FONT-SIZE:8pt" id="m_-2096774336561854437c1-id-50"><a href="https://twitter.com/lazboy" id="m_-2096774336561854437c1-id-51" target="_blank">twitter.<wbr>com/lazboy</a>
 | <a href="https://www.youtube.com/user/lazboy" id="m_-2096774336561854437c1-id-52" target="_blank">youtube.com/</a></span><span style="FONT-SIZE:8pt" id="m_-2096774336561854437c1-id-53"><a href="https://www.youtube.com/user/lazboy" id="m_-2096774336561854437c1-id-54" target="_blank">lazboy</a><br id="m_-2096774336561854437c1-id-55">
<br id="m_-2096774336561854437c1-id-56">
</span></span><img alt="" src="cid:lzbVertical_hres.jpg" id="m_-2096774336561854437c1-id-57">  </p>
<p style="FONT-FAMILY:'Arial Narrow';LINE-HEIGHT:14px" id="m_-2096774336561854437c1-id-58"> </p>
<p id="m_-2096774336561854437c1-id-58" style="FONT-FAMILY:'Arial Narrow';LINE-HEIGHT:14px"><span id="m_-2096774336561854437c1-id-59" style="FONT-SIZE:8pt;FONT-FAMILY:'Arial Narrow'"><span id="m_-2096774336561854437c1-id-60" style="FONT-SIZE:8pt;FONT-FAMILY:'Arial Narrow'">This
</span></span><span id="m_-2096774336561854437c1-id-61" style="FONT-SIZE:8pt"><span id="m_-2096774336561854437c1-id-62" style="FONT-SIZE:8pt">message</span><span id="m_-2096774336561854437c1-id-63" style="FONT-SIZE:8pt"> is intended
</span></span><span id="m_-2096774336561854437c1-id-64" style="FONT-SIZE:8pt"><span id="m_-2096774336561854437c1-id-65" style="FONT-SIZE:8pt">only</span></span><span id="m_-2096774336561854437c1-id-66" style="FONT-SIZE:8pt"><span id="m_-2096774336561854437c1-id-67" style="FONT-SIZE:8pt"> for t</span></span><span id="m_-2096774336561854437c1-id-68" style="FONT-SIZE:8pt;FONT-FAMILY:'Arial Narrow'"><span id="m_-2096774336561854437c1-id-69" style="FONT-SIZE:8pt;FONT-FAMILY:'Arial Narrow'">he
 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></p>
</div>

<br>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.xymon.com/<wbr>mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>