Ad Widget

Collapse

Zabbix_get item value differs from Zabbix interface

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • begs4399
    Junior Member
    • Nov 2017
    • 9

    #1

    Zabbix_get item value differs from Zabbix interface

    I have a simple check like this:

    Name: Tomcat Service Check
    Type: Simple Check
    Key: net.tcp.service[http,,1701]
    Type of information: Numeic (unsigned)
    Show value: Service State

    If I run this check on the Zabbix server:
    #zabbix_get -s 10.26.4.27 -k net.tcp.service[http,,1701]
    it returns:
    1

    In Zabbix web interface, it returns 0 (down)

    I double-checked everything, tried a lot of things on different ports and servers but still the same
    It works on zabbix_get, but not in the GUI!!!

    Anyone can help ???
    Thanks a lot!
  • begs4399
    Junior Member
    • Nov 2017
    • 9

    #2
    UPDATE:
    I have no problem on standard ports (80, 443, 445, 3389) they report well on the GIU

    but MSSQL (port 1433) has the same problem (UP on zabbix_get but DOWN on the web interface)

    I am running Zabbix 5.0.11 on CentOS, tested with agents 5.0.10 and 5.2.5, on Solaris and Windows
    Last edited by begs4399; 21-07-2021, 20:13.

    Comment

    • begs4399
      Junior Member
      • Nov 2017
      • 9

      #3
      Well SELinux on the Zabbix server was blocking this particular port (1701) - It is solved now!

      Comment

      • TheFactor82
        Junior Member
        • Jan 2020
        • 9

        #4
        Well, I'm hitting the same exact problem in my environment...
        Zabbix 5.0.19 on Server and Proxy (both Centos, with Selinux enabled in permissive mode)
        Zabbix 5.0.28 on target host (Ubuntu 22.04).
        When execute a zabbix_get command from proxy that is selected for this host, I receive that the service is up:

        zabbix_get -s trr-git-lp1 -k 'net.tcp.service[https]'
        1

        (also executing zabbix_agentd directly on the host says that the service is up:

        zabbix_agentd -t net.tcp.service[https]
        net.tcp.service[https] [u|1]

        But on the gui, the result is always 0.
        This is not happening with a target host on Ubuntu 20.04

        Any hint?

        Comment

        Working...