Last Message ID for a Thread

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Last Message ID for a Thread

  • Creator
    Topic
  • #50523
    John Zalesak
    Participant

      Is there an easy way to find out the last message ID on the input side for a particular thread?

      I am working on a last received alert and I am trying to find an easy to determine if there was a message since the last alert trigger.  I know I can get some info from msiGetStatSample but we reset stats every 12 hours and I did not want this to mess us up.

      Any help would be greatly appreciated!

    Viewing 1 reply thread
    • Author
      Replies
      • #66465
        Russ Ross
        Participant

          I use a very simple approach that indirectly has accomplished to our satisfaction what I think you are trying to accomplish.

          We have cron touch the $HCISITEDIR/Alerts/default.alrt file once an hour to update the time stamp on the file.

          This will reset any alerts that fired off in the last hour such as a last received alert.

          That means our alerts will continue to notify us each hour until the problem is resolved.

          Russ Ross
          RussRoss318@gmail.com

        • #66466
          John Zalesak
          Participant

            Thanks for your reply.

            That is close to where we are but not exactly.

            We bounce the connection on the a last received alert.   This resets the alert so we keep getting them.

            Here is what we are trying to do.  We would like for the system to try and fix it self first and then if it does not work, then notify someone.  In practice, what we are trying to set up is:

            1) When the last recvd alert goes off, bounce the connection and send an email to our regular email address (currently in place)

            2) If you have bounced 3 or 4 times and no messages have come through, send a special email to our regular email address and send an email to our blackberry to wake someone up after hours.

            The best Idea I can come up with is to use counters.  Every time a message comes in reset the counter to 1 (more overhead than I like for every message).  Every time the alert goes off, increment the counter.  Also in the alert, check the counter, if over a threshold, send the special alert.  I am concerned about resetting he counter for every msg.  I am looking for a way around this.

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