mirror of
https://github.com/znilnet/ZabbixEasyTool.git
synced 2025-04-19 19:44:24 +02:00
zbxHostTriggerGet nur noch unacknowlegded + problem
This commit is contained in:
parent
ad2bbd627a
commit
d046234215
@ -197,7 +197,8 @@ Func _zbxHostRemoveMaintenance($__zbxURL, $__zbxSessionId, $__zbxHostId, $__zbxM
|
|||||||
EndFunc
|
EndFunc
|
||||||
|
|
||||||
Func _zbxHostTriggerGet($__zbxURL, $__zbxSessionId, $__zbxHostId)
|
Func _zbxHostTriggerGet($__zbxURL, $__zbxSessionId, $__zbxHostId)
|
||||||
Local $__zbxJSON = '{"jsonrpc": "2.0","method": "trigger.get","params":{"output":["triggerid","description","priority"],' & _
|
; Get only unacknowledged trigger with status problem
|
||||||
|
Local $__zbxJSON = '{"jsonrpc": "2.0","method": "trigger.get","params":{"withUnacknowledgedEvents":1,"output":["triggerid","description","priority"],' & _
|
||||||
'"filter":{"value":1,"hostid":"' & $__zbxHostId & '"},"sortfield":"priority","sortorder":"DESC"},"auth": "' & $__zbxSessionId & '","id":42}'
|
'"filter":{"value":1,"hostid":"' & $__zbxHostId & '"},"sortfield":"priority","sortorder":"DESC"},"auth": "' & $__zbxSessionId & '","id":42}'
|
||||||
Local $__oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
|
Local $__oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
|
||||||
Local $__a_zbxHostTriggers[1][4] ; [0][0] = Anzahl
|
Local $__a_zbxHostTriggers[1][4] ; [0][0] = Anzahl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user