Ad Widget

Collapse

How check custom port ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ad@kbc-clearing.com
    Member
    • Sep 2005
    • 77

    #16
    The tcp,port simple check is really very important for us, and works fine in 1.1b2.
    We are really looking forward to move to a newer release, with so many nice new features.
    Hopefully, someone can make a patch for this nasty bug.

    Comment

    • koko
      Junior Member
      • Apr 2006
      • 3

      #17
      Hello Cybaspace,

      do you test the patch or do you change the common.c file manualy?
      In any case you have to rebuild an restart zabbix!

      Koko

      Comment

      • globe
        Member
        • Apr 2006
        • 40

        #18
        hi koko,

        i tried to modify the common.c but simple cheks for my ports fail
        i have to monitor if our ICA-farm is up and runnig therefore i have to check if tcp-port 1494 and 2512 is accepting connections. error still the same: Simple check [net.tcp.service[ica,icatestserver]] is not supported

        Comment

        • cybaspace
          Member
          • Jul 2005
          • 43

          #19
          Originally posted by koko
          Hello Cybaspace,

          do you test the patch or do you change the common.c file manualy?
          In any case you have to rebuild an restart zabbix!

          Koko
          I didn't use the workaround you described, because we monitor a lot of ports, so that would be a lot of work to put them in manually ;-0

          I used the patch that was posted at the beginning of this thread.

          I have used the pach and checked if the changes where made in the source. Recompiled and reinstalled the binaries. After that we restarted everything, but no luck...
          Last edited by cybaspace; 27-04-2006, 08:27.

          Comment

          • koko
            Junior Member
            • Apr 2006
            • 3

            #20
            Originally posted by globe
            hi koko,

            i tried to modify the common.c but simple cheks for my ports fail
            i have to monitor if our ICA-farm is up and runnig therefore i have to check if tcp-port 1494 and 2512 is accepting connections. error still the same: Simple check [net.tcp.service[ica,icatestserver]] is not supported
            Hi Globe,

            what did you do? Can you show your mods of common.c-file here? I think it looks like this:

            ...
            else if(strcmp(service,"ica1494") == 0)
            {
            if(port == 0) port=1494;
            ret=tcp_expect(ip,port,NULL,NULL,"",&value_int);
            }
            else if(strcmp(service,"ica2512") == 0)
            {
            if(port == 0) port=2512;
            ret=tcp_expect(ip,port,NULL,NULL,"",&value_int);
            }
            ..

            This should be twice in your common.c! Remember to reconfigure, remake and restart zabbix!

            Then create two elements, one with the key "ica1494" and one with the key "ica2512".

            Koko

            Comment

            • globe
              Member
              • Apr 2006
              • 40

              #21
              thx koko, found the mistake, did no configure, just make the binaries

              Comment

              • Alexei
                Founder, CEO
                Zabbix Certified Trainer
                Zabbix Certified SpecialistZabbix Certified Professional
                • Sep 2004
                • 5654

                #22
                The issue with incorrect processing of simple checks will be fixed in 1.1beta10.
                Alexei Vladishev
                Creator of Zabbix, Product manager
                New York | Tokyo | Riga
                My Twitter

                Comment

                • cybaspace
                  Member
                  • Jul 2005
                  • 43

                  #23
                  Till then, won't there be a patch or is the release of beta10 just a matter of days?

                  Comment

                  • Alexei
                    Founder, CEO
                    Zabbix Certified Trainer
                    Zabbix Certified SpecialistZabbix Certified Professional
                    • Sep 2004
                    • 5654

                    #24
                    The 1.1beta10 will be released this week. Please wait.
                    Alexei Vladishev
                    Creator of Zabbix, Product manager
                    New York | Tokyo | Riga
                    My Twitter

                    Comment

                    • ruckus37
                      Member
                      • Oct 2004
                      • 57

                      #25
                      yes nice one

                      Comment

                      Working...