Ad Widget

Collapse

SNMP icon green and getting results, but zabbix_get connection refused

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • philthynz
    Junior Member
    • Jun 2016
    • 27

    #1

    SNMP icon green and getting results, but zabbix_get connection refused

    I have an issue trying to get results with zabbix_get.

    I have an SNMPv1 printer, that's setup in zabbix with:

    hostname: print1
    snmp interface: 192.168.1.250:161

    I used a HP template, and just the "public" string in the templates macro. The icon is SNMP green, and monitoring --> latest data is returning results.

    However, using Zabbix Get from the zabbix server, with "zabbix_get -s 192.168.1.250 -p 161 -k sysName" returns "Get value error: cannot connect to [[192.168.1.250]:161]: [111] Connection refused".

    And "telnet 192.168.1.250 161" is returning "Unable to connect to remote host: Connection refused"

    And snmpwalk is working with "snmpwalk -v 1 -c public 192.168.1.250"

    And netcat is working with "nc -vz -u 192.168.1.250 161" with "Connection to 192.168.1.250 161 port [udp/snmp] succeeded!"

    How can Zabbx Get not be working when Zabbix is actually getting results in the UI, and snmp walk is working fine? Any idea how to fix this?
    Last edited by philthynz; 03-08-2017, 18:36.
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    The zabbix_get command is used to obtain a value from a Zabbix agent.
    It is not possible to obtain a value from the SNMP device.

    Please use snmpwalk or snmpget to get the value from the SNMP device.

    Comment

    • philthynz
      Junior Member
      • Jun 2016
      • 27

      #3
      Thanks @Atsushi. Thanks makes sense. I was looking for a way to test snmp host keys in Zabbix, without having to wait for Zabbix to retry.

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        There is no function that instantly obtains the value of the item set on the Zabbix server by operation.
        It is about to temporarily shorten the refresh interval of items and get the value.

        There is an additional request for a function to acquire a value by pressing a button.
        However, it seems that it is not yet decided which version will be implemented.

        ZBXNEXT-473
        Ability to Check Now a specific passive item

        Comment

        • Semiadmin
          Senior Member
          • Oct 2014
          • 1625

          #5
          Originally posted by Atsushi
          It is about to temporarily shorten the refresh interval of items and get the value.
          Also you may use a scheduling custom interval.

          Comment

          Working...