Ad Widget

Collapse

Zabbix API, alert.get

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • poxin
    Junior Member
    • Nov 2015
    • 14

    #1

    Zabbix API, alert.get

    Hello,

    I'm attempting to print all active unacknowledged alerts from the API with what I believe is correct using the alert.get function.

    Currently in my Zabbix web dashboard I have one active issue to test with which has not been acknowledged.

    The problem seems to be when using alert.get no results are found and the array is blank. I'm not sure what the problem is there? All other API functions seem to be working correctly. Is alert.get special in some regard that I'm missing?

    Any help or pointers would be greatly appreciated!
  • poxin
    Junior Member
    • Nov 2015
    • 14

    #2
    I can print out a specific host which shows the error value:

    Array
    (
    [0] => stdClass Object
    (
    [hostid] => 10109
    [proxy_hostid] => 10107
    [host] => ticket
    [status] => 0
    [disable_until] => 0
    [error] => Get value from agent failed: cannot connect to [[127.0.0.1]:10050]: [111] Connection refused


    It still doesn't appear alert.get is functioning at all.

    Comment

    Working...