Ad Widget

Collapse

Creating an Action

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chutchins
    Junior Member
    • Apr 2010
    • 25

    #1

    Creating an Action

    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.
    Attached Files
    Last edited by chutchins; 27-04-2010, 20:52.
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    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.

    Comment

    • chutchins
      Junior Member
      • Apr 2010
      • 25

      #3
      Originally posted by tchjts1
      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.
      Attached Files
      Last edited by chutchins; 28-04-2010, 00:23.

      Comment

      • tchjts1
        Senior Member
        • May 2008
        • 1605

        #4
        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*
        Attached Files

        Comment

        • chutchins
          Junior Member
          • Apr 2010
          • 25

          #5
          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.
          Attached Files

          Comment

          • tchjts1
            Senior Member
            • May 2008
            • 1605

            #6
            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.
            Last edited by tchjts1; 28-04-2010, 04:54.

            Comment

            • chutchins
              Junior Member
              • Apr 2010
              • 25

              #7
              You nailed it I hadnt given the right permissions. Once I reset the server group permissions it worked flawlessly

              Comment

              • chutchins
                Junior Member
                • Apr 2010
                • 25

                #8
                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.

                Comment

                • tchjts1
                  Senior Member
                  • May 2008
                  • 1605

                  #9
                  Is it enabled? if it is not, it will show as no media defined
                  Attached Files

                  Comment

                  • chutchins
                    Junior Member
                    • Apr 2010
                    • 25

                    #10
                    Originally posted by tchjts1
                    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.

                    Comment

                    • tchjts1
                      Senior Member
                      • May 2008
                      • 1605

                      #11
                      Originally posted by chutchins
                      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.

                      Comment

                      • chutchins
                        Junior Member
                        • Apr 2010
                        • 25

                        #12
                        Originally posted by tchjts1
                        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.

                        Comment

                        Working...