Hi all,
I am on the last legs of automating the process of adding new hosts into Zabbix by way of PowerShell. The final hurdle I have is whether or not host.create allows the configuring of TLS. I have the following (some things changed) JSON request that is fired off to our Zabbix server and it does in fact create the Host. What it doesn't do is configure encryption. My question here is two fold 1) Can this actually be done? and 2) if it can be done does this request look correct? (ignore the formatting). No error occurs, it's as if the TLS parameters are ignored.
{
"method": "host.create",
"params": {
"host": "MYNEWSERVER",
"groups": {
"groupid": "35"
},
"templates": {
"templateid": "10000"
},
"interfaces": {
"tls_accept": 2,
"type": 1,
"useip": 1,
"ip": "192.168.1.5",
"tls_connect": 2,
"port": 10050,
"main": 1,
"tls_psk_identity": "PSK 001",
"tls_psk": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxx",
"dns": "server.local"
}
},
"id": 2,
"jsonrpc": "2.0",
"auth": "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
}
Thanks in advance
Cheers
Marc
I am on the last legs of automating the process of adding new hosts into Zabbix by way of PowerShell. The final hurdle I have is whether or not host.create allows the configuring of TLS. I have the following (some things changed) JSON request that is fired off to our Zabbix server and it does in fact create the Host. What it doesn't do is configure encryption. My question here is two fold 1) Can this actually be done? and 2) if it can be done does this request look correct? (ignore the formatting). No error occurs, it's as if the TLS parameters are ignored.
{
"method": "host.create",
"params": {
"host": "MYNEWSERVER",
"groups": {
"groupid": "35"
},
"templates": {
"templateid": "10000"
},
"interfaces": {
"tls_accept": 2,
"type": 1,
"useip": 1,
"ip": "192.168.1.5",
"tls_connect": 2,
"port": 10050,
"main": 1,
"tls_psk_identity": "PSK 001",
"tls_psk": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxx",
"dns": "server.local"
}
},
"id": 2,
"jsonrpc": "2.0",
"auth": "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
}
Thanks in advance
Cheers
Marc
Comment