Hi,
I am writing code with zabbix api, and I came to a problem, I first wrote an host.massadd rpc call:
Which worked perfectly, than I wanted to do something similar with host.massremove:
This failed, the documentation https://www.zabbix.com/documentation...ost/massremove did use other parameters 'hostids' and 'groupids', but it did used 'hosts' in the example. So I was confused and guessed this would work.
First, if someone has an answer to my problem, that would be very nice
.
But my real question is, how can I turn on debugging or find logging from the zabbix api calls I do? So I can see what has gone wrong, and what is expected?
Thank you
I am writing code with zabbix api, and I came to a problem, I first wrote an host.massadd rpc call:
Code:
method => "host.massadd",
params => {
hosts => [
{
hostid => $hostID
}
],
groups => [
{
groupid => $hostgroupID
}
]
},
Code:
method => "host.massremove",
params => {
hosts => [
{
hostid => $hostID
}
],
groups => [
{
groupid => $hostgroupID
}
]
},
First, if someone has an answer to my problem, that would be very nice
.But my real question is, how can I turn on debugging or find logging from the zabbix api calls I do? So I can see what has gone wrong, and what is expected?
Thank you
Comment