<br><tt><font size=2>nagios-users-bounces@lists.sourceforge.net schrieb
am 25.06.2008 10:32:54:<br>
<br>
> I have one problem very particular on a Nagios check custom. It try
<br>
> to execute one query to Oracle Server.<br>
> When I run my plugin from Linux shell as nagios user, the check <br>
> returns correct output. But, when Nagios runs the same plugin with
<br>
> the same parameters, the check returns incorrect output.<br>
> The permissions are OK, otherwise Nagios check doesn't returned <br>
> correct result from shell as nagios user.<br>
> <br>
> What's wrong? Any ideas?<br>
</font></tt>
<br><tt><font size=2>No Path inside the check environment?</font></tt>
<br>
<br><tt><font size=2>> touch $FILE</font></tt>
<br><tt><font size=2>[...snip...]</font></tt>
<br><tt><font size=2>> grep -q Ok $FILE<br>
</font></tt>
<br><tt><font size=2>Won't work without a path. Try using the full path
to grep and touch.</font></tt>
<br>
<br><tt><font size=2>Regards</font></tt>
<br><tt><font size=2> Sascha</font></tt>
<br>
<br><font size=2 face="sans-serif">-- <br>
Sascha Runschke<br>
Netzwerk- und Systemmanagement<br>
Telefon : +49 (201) 102-1879 Mobil : +49 (173) 5419665 Fax : +49 (201)
102-1102105</font>
<br>
<br>
<br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">GFKL Financial Services AG</span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">Vorstand: Dr. Peter Jänsch (Vors.), Jürgen Baltes, Dr. Till Ergenzinger, Dr. Tom Haverkamp</span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma</span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522</span>