Ad Widget

Collapse

Problem with active Check not reading

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hak1
    Junior Member
    • Oct 2012
    • 1

    #1

    Problem with active Check not reading

    I have an active check that executes a perl script.
    the problem is that it won't read into zabbix.
    I turned on the debug and here's what the log looks like:

    32641:20121017:140441.357 JSON before sending [{
    "request":"agent data",
    "data":[
    {
    "host":"server1",
    "key":"deliver.rate",
    "value":"8.89",
    "clock":1350497080}],
    "clock":1350497081}]
    32641:20121017:140441.358 JSON back [{
    "response":"success",
    "info":"Processed 0 Failed 1 Total 1 Seconds spent 0.000030"}]
    32641:20121017:140441.358 In check_response({
    "response":"success",
    "info":"Processed 0 Failed 1 Total 1 Seconds spent 0.000030"})
    32641:20121017:140441.358 Info from server: Processed 0 Failed 1 Total 1 Seconds spent 0.000030

    You can see it ran okay and tried to send to the server. but it's not accepting for some reason why do you think that is?

    in the host on the zabbix server i have:
    key: deliver.rate
    type of info: numeric (float)
    Type: zabbix agent (active)
    status: active
    Units: blank
    update interval: 60 seconds

    any help is greatly appreciated.
  • heaje
    Senior Member
    Zabbix Certified Specialist
    • Sep 2009
    • 325

    #2
    The only types of items that can be submitted in this way are "Zabbix Trapper" items. Based on what you said, it sounds like you have this set to "Zabbix Agent (active)".

    Because of that, you won't be able to do this check with a single item. Here's what I would do:

    1. Create a "Zabbix Agent (active)" item that runs the script you want.
    2. Create a separate "Zabbix Trapper" item that receives the data that the script from #1 sends in.

    Comment

    Working...