PDA

View Full Version : Creating an Action


chutchins
27-04-2010, 20:43
I don't know if this is an email issue or an improperly configured action.
I shut a monitored server down and it kicks off a disaster level warning in he console.

I have the
Action set with the following condtions
Host group - windows servers
trigger severity = disaster
and I use the and clause as I would want it to fit both.

I have i set with 2 actions to mail 2 different email addresses I have configured with a user and the condition is event acknowledged-not ack
the server is down and not acknowledged and nothing

I have tried 2 smtp servers and I get no luck with either and I know one is our production server and the other smtp server was working but appears to be having issues atm.


I have now tested both SMTP servers from another system I use to monitor our websites which uses no authentication and it passed through with no issues. I know the Zabbix ip address is address as an authorized server for pass through as well. I watched the SMTP server and it didnt even look like it was touched with a connection. I have used both ip and DNS name for the servers.

tchjts1
28-04-2010, 00:13
Just at a basic glance, you say you have that trigger set as "disaster", but in your configuration for the conditions, you have it set to trigger on severity "high".

Two different things.

chutchins
28-04-2010, 00:16
Just at a basic glance, you say you have that trigger set as "disaster", but in your configuration for the conditions, you have it set to trigger on severity "high".

Two different things.

Yeah I though ti copied the disaster, but I coped the high one instead...

I have an action for both as high level and disaster we want notifications from.

I am not getting notifications from either.

tchjts1
28-04-2010, 00:54
What does it say under Administration --> Audit --> dropdown box "Actions"?

Also, do you have any alerts that are being sent? Just to verify you have your e-mail settings correct for media.

Something you may want to try is adding a third condition of trigger value = problem. I use that setup successfully. There are those who will argue it is not needed, but I have seen others not use it and have problems. When they included it, the alerts then worked for them. *shrug*

chutchins
28-04-2010, 01:02
The audit log shows no media defined for user
I verified and there is media defined and it is al kicking to my account rather than the support account.

None of the emails are being received currently.
here are the media Settings

Add the third and put it as an and right?

thx loads for the help.

I have tested the SMTP settings form other computers and they work correctly. I have also tried an open relay server and nothing goes out. I would honestly prefer to use gmail servers, but it requires authentication which is not an option that I see.

tchjts1
28-04-2010, 01:07
You can add trigger value=problem as an "and"... it will not hurt anything. that trigger is going to fire when it is a "problem" anyway.

But it seems that you have some sort of issue surrounding the configuration of your user's media if the audit logs indicates "no media defined for user".

Does your "support" user have at least read access to the group "Windows servers"?

(Edit) As an afterthought, you may want to temporarily disable escalations for testing and see if the alert fires correctly. If it does, then you know the issue surrounds the esclation portion of the setup.

If that does not produce results, I would go with a new, very basic test trigger setup to both of those users. Maybe something like a low free disk space alert and set the threshold high ( < 100% free) so it intentionally trips a flase alert. Start with the very basics and then work your way up to the trigger that is not working, since it has some complexity to it. You can start ruling out the simple things that way.

chutchins
28-04-2010, 16:13
You nailed it I hadnt given the right permissions. Once I reset the server group permissions it worked flawlessly

chutchins
28-04-2010, 16:56
So now I know one email address is working, but the next is not.

Any idea wh I would get this error:
No media defined for user

I have double checked and the media is defined same as the other except the email is going to an external email address.

tchjts1
28-04-2010, 17:06
Is it enabled? if it is not, it will show as no media defined

chutchins
28-04-2010, 17:23
Is it enabled? if it is not, it will show as no media defined

I think i figured it out when I made the changes to it it removed the media from the alert and had to add it back in..

I have one last question I am sure is easy, how can I adjust my timestamps. I am guessing they are set to GMT as they are about 5 hours ahead of ours.

tchjts1
28-04-2010, 18:07
I have one last question I am sure is easy, how can I adjust my timestamps. I am guessing they are set to GMT as they are about 5 hours ahead of ours.

Timestamps on what... the actual e-mails?

I'm not certain where Zabbix grabs that from. I would make certain that all my Zabbix servers were set the same, however. You can check the setting through an SSH session and typing "date".

If you are running Zabbix on multiple machines (App/DB/proxies), it is also important that they are time synched. Use NTP for that.

If the timestamps come from the mail server... then you would need to engage the admin of that system.

Lastly, you should have the correct date.timezone defined in php.ini on the App server.

chutchins
28-04-2010, 18:12
Timestamps on what... the actual e-mails?

I'm not certain where Zabbix grabs that from. I would make certain that all my Zabbix servers were set the same, however. You can check the setting through an SSH session and typing "date".

If you are running Zabbix on multiple machines (App/DB/proxies), it is also important that they are time synched. Use NTP for that.

If the timestamps come from the mail server... then you would need to engage the admin of that system.

Lastly, you should have the correct date.timezone defined in php.ini on the App server.

Yeah it is a single server, and the timestamps I was lookign at are on the server, when I was looking through the logs Trying to find the errors it got confusing.