PDA

View Full Version : not sending email alerts


c0mputernick
20-08-2009, 20:39
Hello All,

I have a fresh install of ubuntu 9.04 with zabbix lastest version. its been running for a couple days now and i can send mail via mail from the command line using postfix as the MTA. but for some reason its not alerting me to failures. ive added one win2003 machine, installed the agent and added it to zabbix, and it says all is well. i went into the machine and turned off "pop" on the exchange server and zabbix pop monitor went red for the "EXNG: Service State - POP3" but it didnt send an email. nothing in the mail.log file and nothing in the zabbix-server.log file.
i have the email media types setup as:
smtp server - localhost
smtp helo - localhost
smtp email - monitor@mydomain.com - who the email is from?

ive set the admin account to get email for everything, info,high,warning etc. and i put the email address i want the alerts to go to for the admin account (me)

and like i said, i can send email via postfix using mail and the logs show it goes through and i get the email in my inbox.

sorry if this has been addressed, but ive spent all day on google and the forum and cant seem to find a solution to my problem. im pretty sure its something ive overlooked, but cant seem to figure out what it is.

thanks.

troffasky
24-08-2009, 15:08
Go to Monitoring > Events. What do you see in the Actions column?

c0mputernick
24-08-2009, 15:53
there is nothing in the actions column. what now?

troffasky
24-08-2009, 16:08
Are there any events listed? If you don't think there have been any events, you might need to go back a few days to find some.

c0mputernick
27-08-2009, 21:19
well ive been getting alot of memory pages per sec alarms. and i havnt gotten an email once, and ive got it setup to email anything info to error.

smekla
04-09-2009, 14:45
i have a similar issue - i've set email and jabber settings (i know they're good - i've used them some time ago and they worked), but there is nothing in the (Monitoring ->) Actions page. I have many events, but get no notification at all. Where can be the problem?

pietux
04-10-2009, 00:58
This looks like exactly the problem I'm having as well.
Zabbix version 1.6.6, postfix, CentOS 5.3 ("mail" function from local host command line verified working as well)

I have set up very basic monitoring in order to test triggers and alerts and no alert e-mails are being sent out. I enabled full debug logs, and while there are lots of stuff there, none of it seem to have anything about sending alerts.

From the events and graphs, I can see the monitored item is being monitored correctly. I have set the severity high for my test item. Alerts so that there are no conditions on one of the alerts, and "severity = high" on the other. Neither gets executed.

I also tried to set up my own PHP script to be executed to get some feedback from the system, but I have not yet figured out how to do it. I can see in the zabbix_server.conf file a line which determines the location for my own alert scripts, but I have not yet found a way to execute it via Zabbix configuration.

The user which should receive alerts is in the group "Zabbix administrators", and has read-write privileges to all hosts.

regards,
Petri

NOB
05-10-2009, 11:10
Hi

how about addding an action, based on a trigger ?

HTH,

Norbert.

pietux
05-10-2009, 20:54
I'm not 100% sure what was asked to do as I'm new to Zabbix.
Here is a screen region of the actions I currently have, and in theory 2 of them are based on the triggers.

http://avatarmocap.com/tmp/Zabbix_actions.png

If for some reason this is not what was asked, then please provide the steps to create one.

Regards,
Petri

smekla
06-10-2009, 07:58
do you find any records in Monitoring -> Actions page?

did you tried to set any other notification way (e.g. jabber) just to see if it works?

pietux
06-10-2009, 17:16
Such page does not seem to exist. Or at least I can't find the link for it....
I have seen references to this location previously, but I thought it was information for the older version of Zabbix.

Under "Monitoring" I have links only to these pages.
- Dashboard
- Overview
- Web
- Latest data
- Triggers
- Events
- Graphs
- Screens
- Maps
- Discovery
- IT services

I have not set up any other notifications.... I tried to set up PHP script which would send an SMS message via my own server, but did not succeed to find a way to do it yet. (I see no need to create jabber account + needed binaries are not installed/included to my Zabbix compilation)

Regards,
Petri