Ad Widget

Collapse

How is working check net.tcp.service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Patjomkin
    Member
    • Nov 2012
    • 50

    #1

    How is working check net.tcp.service

    Hi all.

    I have mail server (zimbra) on ubuntu.
    Don't working net.tcp.service[imap] or net.tcp.service[imap,"ip my server", 143].
    But working net.tcp.port[,143] or net.tcp.port[ip my server,143].

    II can connect to mail server telnet "ip my server" 143
    externel:
    telnet mail.my.com 143
    Trying "ip my server" ...
    Connected to mail.my.com.
    Escape character is '^]'.

    local:
    telnet localhost 143
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.

    How is working net.tcp.service for imap (for pop3 it's working)?
  • Bernd Hohmann
    Member
    • Mar 2013
    • 46

    #2
    Originally posted by Patjomkin
    Don't working net.tcp.service[imap] or net.tcp.service[imap,"ip my server", 143].
    But working net.tcp.port[,143] or net.tcp.port[ip my server,143].
    I don't think it makes a difference if you use "[imap]" or "[,143]" Maybe the "imap" Parameter is broken - you may fill in a bug report.

    Bernd

    Comment

    • Patjomkin
      Member
      • Nov 2012
      • 50

      #3
      Originally posted by Bernd Hohmann
      I don't think it makes a difference if you use "[imap]" or "[,143]" Maybe the "imap" Parameter is broken - you may fill in a bug report.

      Bernd
      What is the difference between net.tcp.service[imap] and net.tcp.port[,143] ?
      I'm sorry, but i don't understand how work net.tcp.service[imap].
      Please, help me.
      Last edited by Patjomkin; 25-03-2013, 15:46.

      Comment

      • Bernd Hohmann
        Member
        • Mar 2013
        • 46

        #4
        Sorry for the delay, I was out of the office for a while.

        Originally posted by Patjomkin
        What is the difference between net.tcp.service[imap] and net.tcp.port[,143] ?
        As far as I understand: there is no difference. pop/imap/smtp.. and so on are just presets for the port. Not a very good construction in my opinion because everyone thinks that "imap" will do some kind of "real" service check.

        Bernd

        Comment

        • Patjomkin
          Member
          • Nov 2012
          • 50

          #5
          Originally posted by Bernd Hohmann
          Sorry for the delay, I was out of the office for a while.
          As far as I understand: there is no difference. pop/imap/smtp.. and so on are just presets for the port. Not a very good construction in my opinion because everyone thinks that "imap" will do some kind of "real" service check.

          Bernd
          Thank you very much for the answer.
          May be you can say me how work net.tcp.service? It's really checking port? Then why do we net.tcp.service if we have net.tcp.port?
          Last edited by Patjomkin; 26-03-2013, 11:04.

          Comment

          • Bernd Hohmann
            Member
            • Mar 2013
            • 46

            #6
            Originally posted by Patjomkin
            May be you can say me how work net.tcp.service? It's really checking port? Then why do we net.tcp.service if we have net.tcp.port?
            I *think* "net.tcp.service" and "net.tcp.service.perf" simply open a socket and wait until some text is returned. There may be protocol specific stuff (eg. "http" sends a "GET" request first to get a response), but the result is not validated. I read somewhere that using "ssh" on port 110 (pop3) will return a positive result so I guess Zabbix will only check "something was returned".

            net.tcp.port will only open the socket on the given port and return if the socket connection can be established.

            Bernd

            Comment

            • Patjomkin
              Member
              • Nov 2012
              • 50

              #7
              Originally posted by Bernd Hohmann
              I *think* "net.tcp.service" and "net.tcp.service.perf" simply open a socket and wait until some text is returned. There may be protocol specific stuff (eg. "http" sends a "GET" request first to get a response), but the result is not validated. I read somewhere that using "ssh" on port 110 (pop3) will return a positive result so I guess Zabbix will only check "something was returned".

              net.tcp.port will only open the socket on the given port and return if the socket connection can be established.

              Bernd
              Thank you very much

              Comment

              Working...