Monit purges the environment and only sets a spartan PATH when it
execute a script/program. The program therefor, most likely are
missing some environment variables when executed from monit, which you
have available when run manually. See also this thread from two days
back,
http://lists.gnu.org/archive/html/monit-general/2008-01/msg00035.html
On 23. jan.. 2008, at 12.33, Arturo Díaz Almagro wrote:
Hello all,
I am using 'monit' to test a mysql port to detect possible failures
and exec an script when the failure happens. The script runs
properly except the invocation of the command snmptrap (it also
occurred with nsupdate command), so the trap to inform is not sent.
If I run the script manually it sends the trap properly. I gave the
script SUID permissions just in case it is the problem, but nothing
to do... does anybody know why this happens?
Thanks.
--
Arturo Díaz
Contact me on
FWD: 870436
Skype: arturo.diaz.almagro --
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general