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