I am trying to debug custom alert that sends a message. First I tried: sendEmail -f [email protected] -t _field1_ -u _field2_ -s smtphub.eur.xxx.com -m _field3_ This command works from command line. But since the alert is fired and I didn't get any mail, I tried to debug it, running a simple script instead: /usr/share/pandora_agent/proba_mail _field1_ _field2_ _field3_ containing: f1=$1 f2=$2 f3=$3 echo >>/home/szczpr/mail.log "par 1 $f1" echo >>/home/szczpr/mail.log "par 2 $f2" echo >>/home/szczpr/mail.log "par 3 $f3" sendEmail >>/home/szczpr/mail.log -f [email protected] -t $f1 -u $f2 -s smtphub.eur.xxx.com -m $f3 (which again works from command line, writing its debug output to /home/szczpr/mail.log) Same thing again - the alert is fired, but mail.log wasn't created, so I guess the script didn't run at all... How can I debug that?
Inicio del debate
