Ad Widget

Collapse

trigger.get shows problems that don't show with the GUI - Data cleanup

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • klabarre
    Junior Member
    • Mar 2011
    • 6

    #1

    trigger.get shows problems that don't show with the GUI - Data cleanup

    I need to do some data cleanup to recover from a messy migration. API calls using trigger.get to retrieve a list of triggers in problem state returns several whereas the Zabbix frontend does not. The API in my case is erroneous. How does trigger.get determine whether a trigger is in problem state? If I had the SQL query that's executed this might be fairly easy. Anyone have any guidance for me?

    {
    "jsonrpc": "2.0",
    "method": "trigger.get",
    "params": {
    "output": [
    "triggerid",
    "description",
    "priority"
    ],
    "filter": {
    "value": 1
    },
    "sortfield": "priority",
    "sortorder": "DESC"
    },
    "auth": "038e1d7b1735c6a5436ee9eae095879e",
    "id": 1
    }

    -Kevin
Working...