Ad Widget

Collapse

Trapper data-send fails without explanation

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • michaelNGV
    Junior Member
    • Jul 2022
    • 27

    #1

    Trapper data-send fails without explanation

    I'm trying to send data to a trapper item. The data are:
    Code:
    {"request":"sender data","data":[{"host":"Office Zabbix Proxy","key":"Router.ASSET1509","value":"1","clock":1657584151}]}
    Zabbix replies:
    Code:
    {"response":"success","info":"processed: 0; failed: 1; total: 1; seconds spent: 0.000021"}
    Obviously from the response, Zabbix is recognising and understanding the request, but it fails it. If I send two objects inside "data":[], Zabbix replies
    Code:
    {"response":"success","info":"processed: 0; failed: 2; total: 2; seconds spent: 0.000019"}
    How can I get some information about why Zabbix is failing the request? /var/log/Zabbix does not exist, and journalctl -xe shows nothing relevant.

    There is a host called Office Zabbix Proxy, and it does have a trapper item with key Router.ASSET1509. See attached screen-shots.
    Attached Files
    Last edited by michaelNGV; 12-07-2022, 03:22.
  • Answer selected by michaelNGV at 12-07-2022, 05:59.
    tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    Are you using zabbix_sender to fling the data at your server, or are you generating the JSON manually and then submitting it some other way?

    Are you certain that "Office Zabbix Proxy" is the technical name for the host within Zabbix? It cannot be the display name, it must be the host name.

    I wouldn't expect "journalctl" to show you anything useful, since Zabbix server is running and not experiencing any serious errors.

    I recommend you look at the man page for "zabbix_server", in particular the --runtime-control with log_level_increase. You may be able to identify just a few subsystems that need to have their logging level increased (for example, the trapper, but that alone might not be enough).

    Increasing log level to level 4 and then trying your trapper item, and then decreasing the log level back down may provide you with some insight as to what's going on.

    Comment

    • tim.mooney
      Senior Member
      • Dec 2012
      • 1427

      #2
      Are you using zabbix_sender to fling the data at your server, or are you generating the JSON manually and then submitting it some other way?

      Are you certain that "Office Zabbix Proxy" is the technical name for the host within Zabbix? It cannot be the display name, it must be the host name.

      I wouldn't expect "journalctl" to show you anything useful, since Zabbix server is running and not experiencing any serious errors.

      I recommend you look at the man page for "zabbix_server", in particular the --runtime-control with log_level_increase. You may be able to identify just a few subsystems that need to have their logging level increased (for example, the trapper, but that alone might not be enough).

      Increasing log level to level 4 and then trying your trapper item, and then decreasing the log level back down may provide you with some insight as to what's going on.

      Comment

      • michaelNGV
        Junior Member
        • Jul 2022
        • 27

        #3
        Thank you! I was using the display name. Now I'm using the technical (host) name and it is working.

        Comment

        Working...