Email Alert for Oncall Person

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Email Alert for Oncall Person

  • Creator
    Topic
  • #49583
    Ariba Jones
    Participant

      I need to setup an alert to email our oncall person when an interface is down, ob messages are queued for so long, etc.  I have setup a test alert in the Alert Configurator to have Cloverleaf email my email address when a thread is down.  I receive that email when the scenario is true.  I have then tried to get Cloverleaf to email the oncall pager when the same thread is down, but it isn’t working. I can see an error message in the error log that says the following….

       


      The following addresses had permanent fatal errors


      oncalladdress@provider.net

         (reason: 550 5.7.1 Unable to relay for oncalladdress@provider.net)

       


      Transcript of session follows


      >>> RCPT To:<oncalladdress@provider.net>

      <<< 550 5.7.1 Unable to relay for oncalladdress@provider.net

      550 5.1.1 oncalladdress@provider.net… User unknown

      451 4.0.0 hash map “Alias0”: unsafe map file /etc/aliases.db: A file or directory in the path name does not exist.

      Does anyone have any idea what is wrong here?  This is what my alert looks like:

      {VALUE status} {SOURCE cerner_adt_ser_out} {MODE actual} {WITH -1} {COMP {== down}} {FOR {nmin 5}} {WINDOW {* * * * * *}} {HOS

      T {}} {ACTION {{exec {mail -s “%A” oncalladdress@provider.net < "%F"}}}} We use Cloverleaf version 5.2 on AIX. Thanks in advance for your help. Ariba Jones

    Viewing 11 reply threads
    • Author
      Replies
      • #62579
        Nate Kruse
        Participant

          A quick workaround is to set up a rule in your email inbox that if you get an email from clover to auto forward that on to your pager.

          On a second note, we noticed when we wanted to text our on-call phone that the text address wasn’t just the phone number, it was our phone number plus @vtext.com (or something like that).

        • #62580
          Ariba Jones
          Participant

            Thanks, Nate.

            I will look into this.  I really would like to get this working directly from Cloverleaf to the pager.  I’ll keep trying.

            Ariba

          • #62581
            Ariba Jones
            Participant

              Nate,

              Thanks so much for your response to this. I tried your suggestion and it worked.  I also got with one of our network guys and he was able to resolve the issue with Cloverleaf communicating directly to the oncall pager.  Our exchange server was not allowing the relay.  That works now.

              Thanks again.

              Ariba Jones

            • #62582
              David Garcia
              Participant

                Ariba,

                You need to create an alias in your UNIX box.  You have to login as root to do this task.

                Edit /etc/mail/aliases.  Add a line with your pager.  Please see example below.

                intface_page    : 5109999999@myairmail.com

                After edit this aliases file, you then need to run

              • #62583
                Ariba Jones
                Participant

                  David,

                  How would I identify the alias in the Alert Configurator?  I am not familiar with setting up alerts using aliases.  I am not quite sure where I would identify the alias…on the Action tab, but where?  Do I put it where I currently have the email address of the pager?

                  Ariba

                • #62584
                  Huy Tran
                  Participant

                    Ariba,

                    Correct, under the Action tab ==> Alert Action select “exec” from the pull down list.

                    You’d want to put this line in your Command box:

                    mailx -s “%A” intface_page

                    Hope this helps!

                    P.S. Sorry I was using my co-worker login (David) to post reply earlier, I haven’t been here for awhile and forgot the login.  Thanks Rob Abbot for resetting my login.

                  • #62585
                    Ariba Jones
                    Participant

                      Thanks, Huy.

                      I will try this and see if it works.

                      Ariba

                    • #62586
                      Daniel Chibaya
                      Participant

                        Cant seem to get this to work.  I can mail successfully from the command line though. Is  there any process that I need to start to get the alerts going?

                        Here is what I have:

                        {VALUE status} {SOURCE bedctrl_out} {MODE actual} {WITH -1} {COMP {== down}} {FOR {nsec 5}} {WINDOW {* * * * * *}} {HOST {}} {ACTION {{exec {mail -s “%A” dchibaya@myemail.org}}}}

                      • #62587
                        James Cobane
                        Participant

                          Daniel,

                          I think you need to include the alert text file (%F) for the body of the message for the email.  Change your mail command in the alert to:

                          {mail -s “%A” dchibaya@myemail.org < "%F"} and give that a try. Hope this helps. Jim Cobane Henry Ford Health

                        • #62588
                          Daniel Chibaya
                          Participant

                            Thanks, that helped.  Please help me understand these alerts a little bit better.  Is my interpretatation of the following (see image) correct?

                            I set this up for a test and here is how what I think this means.

                            If its been longer than or equal to 60 seconds since the last message is received, and that condition persists for 5 seconds, then fire the alert.  Is that correct?

                            Also, is there a way to change the message that gets emailed?

                            Thanks again,

                            Daniel

                          • #62589
                            James Cobane
                            Participant

                              Daniel,

                              You are correct; if any one of the threads (in the source) has the condition (last receive >= 60) for 5 seconds, the alert will trigger.

                              If you want to change the text of the message, you could create a file that contains the verbiage you want (i.e. /tmp/myAlert.txt ) and simply change the %F to /tmp/myAlert.txt.

                            • #62590
                              Daniel Chibaya
                              Participant

                                Thanks Jim – you were a great help.

                            Viewing 11 reply threads
                            • The forum ‘Cloverleaf’ is closed to new topics and replies.