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 Help setting up an Alert

  • Help setting up an Alert

    Posted by kram on May 16, 2007 at 00:53

    Hi,
    Currently I am monitoring the StarTeam service using the Pandora Agent for windows. It seems to working fine, since I get to see the Green bulb(if its running) or the Red Bulb(When th service is down). Im trying to get the Pandora Agent to fire an alert(email me) whenever the service is down. When I go to the “Manage Alerts” section through my webconsole, I see that the email is set as: echo _field3_ | sendmail -s _field2_ _field1_

    Can somebody tell me as to what settings I should change to achieve what I want?

    sillyPandora replied 17 years, 9 months ago 4 Members · 8 Replies
  • 8 Replies
  • Sancho

    Administrator
    May 16, 2007 at 03:24
    2309 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi,
    Currently I am monitoring the StarTeam service using the Pandora Agent for windows. It seems to working fine, since I get to see the Green bulb(if its running) or the Red Bulb(When th service is down). Im trying to get the Pandora Agent to fire an alert(email me) whenever the service is down. When I go to the “Manage Alerts” section through my webconsole, I see that the email is set as: echo _field3_ | sendmail -s _field2_ _field1_

    Can somebody tell me as to what settings I should change to achieve what I want?

    Alerts are sended by the pandora server who process agent data (whatever it was a pandora data server or a pandora network server), so they simply execute shell commands, in this case, using mail command to build a simple mail using “mail” command. Depends on your linux system, you could need to use another command or modify something in command provided, test in on command line and make necessary changes to work in your enviroment.

    _field1_ and and _field2_ are the macros for data you entered in Field1 and Field2 fields in alert definition.

  • sillyPandora

    Member
    May 18, 2007 at 22:22
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    hey Nil,
    I have the same problem. I entered a hotmail address in Field #1 (Alias, name) on the agent manager page. The alert was successfully triggered and fired 4 times. But I did not receive any emails.

    Is there anyway to configure which SMTP server to use? I am running the VMware version I downloaded from you guys. The debian server.

  • kram

    Member
    May 18, 2007 at 22:29
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Did you check if the same sendmail command works if you tpye it manually in your command prompt?(I figured that is the reason why mine isnt). Most probably it is because sendmail has not been setup in your system. so try these in your command prompt:

    echo “test message”|sendmail -s “subject field” [email protected]
    or
    echo “test message”|mail -s “subject field” [email protected]

  • sillyPandora

    Member
    May 18, 2007 at 22:37
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    hey Kram
    I did test it like the way you typed, and it returned no error messages and I received no emails 😯

    pandora-fms:/# find / -name smtp
    pandora-fms:/# echo “test message”|mail -s “subject field” [email protected]
    pandora-fms:/# echo “test” | mail -s “bill” [email protected]
    pandora-fms:/# echo “test” | mail -s -v “bill” [email protected]
    pandora-fms:/#

    no error messages at all. I am wondering how does it send the emails.

  • raul

    Member
    May 21, 2007 at 12:28
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Have you set up your Mail Server?

  • sillyPandora

    Member
    May 21, 2007 at 19:10
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    No, is there a way to use an external SMTP server on the same subnet, or do I have to setup a mail server on Debian? I am not familier with it. 😳 😥

  • sillyPandora

    Member
    May 21, 2007 at 19:20
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    The VMware version I downloaded, does it have mail server setup?

  • sillyPandora

    Member
    May 22, 2007 at 01:51
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I installed Sendmail to the debian VM instance replaying Exim4, now the mail is working using this,

    echo “test message”|mail -s “subject field” [email protected]

    Thanks.