sending alerts to a callback server

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf sending alerts to a callback server

  • Creator
    Topic
  • #53799
    Marc Sanson
    Participant

      Hi,

      I try to send alert messages to a tcp server.

      The messages which comes across includes an id like alert00 and a plain message text. I just wondering why the alert type and name is not sent.

      Does anybody knows how that information can be included ?

      Thanks a lot for your support.

      Marc

    Viewing 8 reply threads
    • Author
      Replies
      • #78969
        Peter Heggie
        Participant

          Can you provide some detail on how you are sending the alerts to the tcp server? Do you mean Cloverleaf alerts? do you invoke a tcl proc as the action or do you send an email?

          Pete

          Peter Heggie
          PeterHeggie@crouse.org

        • #78970
          Marc Sanson
          Participant

            Hi Pete thanks for your answer, Yes I’m talking about Cloverleaf alerts see attached screenshot.

            I just send the alert to a callback and configure the callback to my TCP server socket.

          • #78971
            Peter Heggie
            Participant

              Sorry – I have never used this. Will it be used to report to an enterprise monitoring solution?

              I will try this out as well.

              Peter Heggie
              PeterHeggie@crouse.org

            • #78972
              Marc Sanson
              Participant

                Yes in deed, exactly the plan we want to feed Nagios.

                Marc

              • #78973
                Peter Heggie
                Participant

                  I tried to set up the same thing – but my server thread configuration must be different than yours – i used a protocol of tcpip and saw an error message in the process log:

                  Length encoding wrong?; read len of 892697977

                  Then I tried pdl-tcpip, and got these messages:

                  [pdl :PDL :WARN/0:     fr_alert:08/29/2013 08:44:39] match phrase basic-msg rejected

                  [pdl :PDL :ERR /0:     fr_alert:08/29/2013 08:44:39] no-match: no more phrases to try

                  How did you even get the text that you got? Did you use mlp_tcl as the pdl?

                  Peter Heggie
                  PeterHeggie@crouse.org

                • #78974
                  Peter Heggie
                  Participant

                    Is Nagios expensive?

                    Peter Heggie
                    PeterHeggie@crouse.org

                  • #78975
                    Richard Hart
                    Participant

                      We use Nagios to monitor Cloverleaf and many other applications.

                      In our setup (it may be the default) Cloverleaf cannot connect directly. Cloverleaf executes a command ‘send_nsca’ with various parameters.

                    • #78976
                      Marc Sanson
                      Participant

                        Hi Pete,

                        I wondering there you set the protocol in your alert configuration.

                        I just select callback and if the condition which is configured is evaluated to true a message like

                        {alert00 {The percent of disk space used for C: is more than 0, currently 63 }}  is send to the configured socket.

                        as far as i know Nagios is free of charge

                      • #78977
                        Marc Sanson
                        Participant

                          Hi Richard thanks for the answer, could you provide some more details on send_nsca and how you configure that.

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