Antwort: Perl EVENT HANDLER SSH Remote Command Exection
Sascha.Runschke at gfkl.com
Sascha.Runschke at gfkl.com
Wed Nov 26 10:08:46 CET 2008
Jason <daelic at gmail.com> schrieb am 25.11.2008 22:47:38:
> The script works perfectly via the command line when I execute it as
> the nagios user. Unfortunately, if the script doesn't work properly
> when it is executed by nagios in response to a state change. It dies
> before completion.
>
> my $command = "grep check_tacplus /usr/local/nagios/etc/nrpe.commands";
This won't work as far as I am concerned.
Nagios forks its children without profile - therefor you do not have
a $PATH. No $PATH, no grep. Check if you are running more commands
without absolute path.
Regards
Sascha
--
Sascha Runschke
IT-Infrastruktur
fon : +49 (201) / 102-1879
fax : +49 (201) / 102-1102105
mobil : +49 (173) / 5419665
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
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list