Ad Widget

Collapse

[1.7.2-8393] simple check is designed for checking the port opened only?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • j-luo
    Junior Member
    • Nov 2009
    • 7

    #1

    [1.7.2-8393] simple check is designed for checking the port opened only?

    when i use simple check like "pop,995" to check the pop3s, i found that even i set the simple check with "pop,25" to monitor the smtp port, it returns the unexpected "1"

    with the "CHECK_SERVICE" function in "libs/zbxsysinfo/simple/simple.c", i found that "tcp_expect" function is used to get the result,with most simple check like "http"/"smtp"/"pop"... the third param(request) is set to be NULL, and in this situation the "tcp_expect" function return 1 when the connection is success with zbx_tcp_connect.

    is it designed for not checking the "expect" param when the "request" param is NULL? so the simple check of "pop"/"http"... is only like "tcp" , without checking the protocol?
Working...