TclAlert Type

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf TclAlert Type

  • Creator
    Topic
  • #53535
    Jerry Tilsley
    Participant

      All,

      I’m working on a couple new alerts that are based off TCL.  I can get them to fire initially, but how do you get them to reset so they will fire again?  Do they have to be passed with a value of 0 to reset?

      Thanks,

      Jerry

    Viewing 1 reply thread
    • Author
      Replies
      • #78045
        Robert Kersemakers
        Participant

          Hi Jerry,

          You can have the alerts reset by doing a ‘touch’ (we are on HP-UX) of the alert-file (default.alrt for example). That way all alerts are loaded again and will fire again according to the configuration.

          Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

        • #78046
          Jerry Tilsley
          Participant

            Robert, I appreciate your reply it was helpful.

            All, I also spoke with Support yesterday in regards to this issue and we found out my main issue was with the TCL Alert script I had created.  

            With the TCL Alerts, you can specify how often you want the script executed; such as every 6 polling passes (a polling pass is 5 seconds).  So with my script which passes return values of 0,1,2, or 3; if I define a an alert around this and say I want an e-mail if the value is equal to 3, then the first time it is a 3 I get an e-mail but I will not get another e-mail until the script returns another value other than 3 first which in effect resets this alert.

            So on the first pass if the value is 3 I get an e-mail, but if the very next pass is also a 3 I do not.  If the third pass is anything but 3(because my alert is defined to be equal 3), then I will receive an e-mail on the next occurrence of value 3.

            This comes in handy when you want to monitor the Error DB without setting up a bunch of alerts that may fire if the monitor daemon is restarted.  I can provide my TCL Alert file if anyone else wants to venture into this craziness.  Though I do see a lot of potential here.

            Jerry

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