Antwort: Problems with correct execution Nagios Plugin scheduled

Sascha.Runschke at gfkl.com Sascha.Runschke at gfkl.com
Wed Jun 25 10:39:29 CEST 2008


nagios-users-bounces at lists.sourceforge.net schrieb am 25.06.2008 10:32:54:

> I have one problem very particular on a Nagios check custom. It try 
> to execute one query to Oracle Server.
> When I run my plugin from Linux shell as nagios user, the check 
> returns correct output. But, when Nagios runs the same plugin with 
> the same parameters, the check returns incorrect output.
> The permissions are OK, otherwise Nagios check doesn't returned 
> correct result from shell as nagios user.
> 
> What's wrong? Any ideas?

No Path inside the check environment?

> touch $FILE
[...snip...]
> grep -q Ok $FILE

Won't work without a path. Try using the full path to grep and touch.

Regards
        Sascha

-- 
Sascha Runschke
Netzwerk-  und  Systemmanagement
Telefon : +49 (201) 102-1879 Mobil : +49 (173) 5419665 Fax : +49 (201) 
102-1102105



GFKL Financial Services AG
Vorstand: Dr. Peter Jänsch (Vors.), Jürgen Baltes, Dr. Till Ergenzinger, Dr. Tom Haverkamp
Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma
Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080625/71f2691f/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list