Pandora FMS Community

Alert "Command" doesn't get launched?

qus · 17 mar 2009, 7:31 · 3 mensajes · 51 visitas

  1. Inicio del debate

    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?

  2. It is very likely you didn't configure your MTA in /etc/pandora/pandora_server.conf, did you?

  3. Well, actually it was simplier than this. My mail sending script was installed on client machine, but not on Pandora server. ROTFL. Sorry for confusion.

Entra en tu cuenta para publicar.