Update README.md

This commit is contained in:
2025-05-09 20:28:53 +02:00
parent 5a45dd8569
commit 238cb8052d

View File

@ -18,8 +18,10 @@ Create a python script that:
reqs: pyzabbix (pip install pyzabbix), json, requests, logging
1- Get the bearer from your web/api endpoint using 'requests' python package.
2- create a function to update the item by:
```
zapi = ZabbixAPI("https://127.0.0.1")
zapi.login("<zabbix api user>","zabbix api password")
@ -27,4 +29,4 @@ jsontoken = {
'Authorization': 'Bearer '+ token
}
zapi.item.update(itemid='<your item ID>', headers=jsontoken)
```