Ad Widget

Collapse

The keys net.tcp.port and tcp,port using what commands to perform the check?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jrprado
    Junior Member
    • Sep 2010
    • 28

    #1

    The keys net.tcp.port and tcp,port using what commands to perform the check?

    The keys net.tcp.port and tcp,port using what commands to perform the check? I searched in the sourcers and not found. I need that much of this information.

    Appreciate the help!
  • jrprado
    Junior Member
    • Sep 2010
    • 28

    #2
    Nobody knows the command?

    The key net.tcp.listen know using the netstat command.

    What is to net.tcp.port? and tcp,port?

    Can anyone help me? Nobody knows the command?

    Comment

    • untergeek
      Senior Member
      Zabbix Certified Specialist
      • Jun 2009
      • 512

      #3
      I know this isn't an answer, but what if it isn't a unix command but a call to a kernel value or some such thing in /proc?

      Comment

      • jrprado
        Junior Member
        • Sep 2010
        • 28

        #4
        Please i really need a answer!

        Comment

        • untergeek
          Senior Member
          Zabbix Certified Specialist
          • Jun 2009
          • 512

          #5
          You could go through the C code. I'm pretty sure they don't use a unix command to do the check, but perform the checks by way of libraries with functions similar to unix binaries.

          Repeated differently: Unix binaries reference libraries to do these TCP checks. So does Zabbix. In other words the zabbix_agentd process is what is making the call, by using the linked libraries.

          Code:
          $ strings /usr/local/sbin/zabbix_agentd | grep tcp
          /proc/net/tcp
          zbx_tcp_listen() Fatal error: unable to serve on any address. [[%s]:%hu]
          net.tcp.listen
          net.tcp.dns
          net.tcp.dns.query
          net.tcp.port
          net.tcp.service
          net.tcp.service.perf
          Like I said in my previous post, it seems that it can and does get some information from the /proc filesystem. Otherwise it's doing TCP calls directly using the aforementioned libraries.

          Comment

          • jrprado
            Junior Member
            • Sep 2010
            • 28

            #6
            untergeek, thank you very much!

            It is a way! I will do some research about it.

            Comment

            Working...