I am getting alarms from zabbix an export it to another tool in almost real time
I do this by polling the zabbix api every minute
this is the cmd i use in the api
payload = {
"jsonrpc" : "2.0",
"method" : "trigger.get",
"params": {
"output": "extend",
"monitored": "1",
"selectHosts": "extend",
"lastChangeSince": before,
"sortfield":"lastchange"
},
"auth" : self.auth,
"id" : 2,
}
headers = {
'content-type': 'application/json',
}
This is the example of the description with an error:
"Disk I/O is overloaded on {HOST.NAME}"
Instead of the {host.name} it should have been the name of the host
is this a bug?
Somthing wrong in the way i send my cmd?
Thanks in advance for any help
I do this by polling the zabbix api every minute
this is the cmd i use in the api
payload = {
"jsonrpc" : "2.0",
"method" : "trigger.get",
"params": {
"output": "extend",
"monitored": "1",
"selectHosts": "extend",
"lastChangeSince": before,
"sortfield":"lastchange"
},
"auth" : self.auth,
"id" : 2,
}
headers = {
'content-type': 'application/json',
}
This is the example of the description with an error:
"Disk I/O is overloaded on {HOST.NAME}"
Instead of the {host.name} it should have been the name of the host
is this a bug?
Somthing wrong in the way i send my cmd?
Thanks in advance for any help
Comment