Xymon Mailing List Archive search

Disk not being reported

list Ralph Mitchell
Wed, 4 Jan 2017 11:08:50 -0500
Message-Id: <CAAEjoCXvK=user-769843a63622@xymon.invalid>

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.

Ralph Mitchell


On Wed, Jan 4, 2017 at 10:42 AM, Scot Kreienkamp <
user-9678697f1438@xymon.invalid> wrote:
Hi everyone,


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?

*Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate*
One La-Z-Boy Drive | Monroe, Michigan 48162  | ( XXX-XXX-XXXX
<(734)%20384-6403> | | ) 7349151444 <(734)%20915-1444> | *  Scot.
user-eece5ef8b6f8@xymon.invalid <%7BE-mail%7D>
www <http://www.la-z-boy.com/>.la-z-boy.com <http://www.la-z-boy.com/>; |
facebook. <https://www.facebook.com/lazboy>com
<https://www.facebook.com/lazboy>/ <https://www.facebook.com/lazboy>lazboy
<http://facebook.com/lazboy>; | twitter.com/lazboy | youtube.com/
<https://www.youtube.com/user/lazboy>lazboy
<https://www.youtube.com/user/lazboy>;


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.

Attachments (1)