Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Community support Alert “Command” doesn’t get launched?

  • Alert “Command” doesn’t get launched?

    Posted by qus on March 17, 2009 at 07:31

    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?

    qus replied 15 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • manu

    Member
    March 17, 2009 at 11:30
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

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

  • qus

    Member
    March 18, 2009 at 07:09
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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.