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:53Hi,
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
-
::
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.
-
::
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.
-
::
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] -
::
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.
-
-
-
-
::
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.