<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
"How can I make sure the user and group nagios have access to the
particular<br>
<pre wrap="">file?"
su to your nagios user then execute the command exactly as you have it in your nrpe.cfg. Copy and paste to be sure.
/usr/lib64/nagios/plugins/check_file_age -w 60 -c 300 -f /home/player/path/Control/Monitor_PS_Enable.status
Jamie Learmonth
</pre>
Bryan Bond wrote:
<blockquote cite="mid004401c73dce$058afaa0$10a0efe0$@com" type="cite">
<pre wrap="">Root has access and I made it so all users would have access to the file,
can I run NRPE as root?
I tried changing the user and group in nrpe to root, and it looks like it
would not start if I did that.
How can I make sure the user and group nagios have access to the particular
file?
-----Original Message-----
From: Jason Martin [<a class="moz-txt-link-freetext" href="mailto:jhmartin@toger.us">mailto:jhmartin@toger.us</a>]
Sent: Sunday, January 21, 2007 6:27 PM
To: Bryan Bond
Cc: <a class="moz-txt-link-abbreviated" href="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</a>
Subject: Re: [Nagiosplug-help] Problems with NRPE and Check_file_age
On Sun, Jan 21, 2007 at 06:23:22PM -0800, Bryan Bond wrote:
</pre>
<blockquote type="cite">
<pre wrap="">It works just fine if I execute the command line on the local machine
just as it appears in the nrpe.cfg file, but when I run it remotely, I
get an error of file not found.
Anyone have any insight on this?
</pre>
</blockquote>
<pre wrap=""><!---->Root would definetly have access to that file. Does the user under which
NRPE runs have access to the file / directory?
-Jason Martin
--
Floggings will continue until morale improves.
This message is PGP/MIME signed.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
<a class="moz-txt-link-freetext" href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a>
_______________________________________________
Nagiosplug-help mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a>
::: Please include plugins version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
</pre>
</blockquote>
<br>
</body>
</html>