Hi All,
I am trying to learning about Zabbix API and I need some help.
I am reading the documentation https://www.zabbix.com/documentation/4.0/manual/api and I am literally stuck at the very start.
I am not a json expert.
For instance, this block of code
POST http://127.0.0.1/zabbix/api_jsonrpc.php HTTP/1.1
Content-Type: application/json-rpc
{"jsonrpc":"2.0","method":"apiinfo.version","id ":1 ,"auth":null,"params":{}}
Do I need to create a file and past the content of it and give execute permission to it?
I am trying to copy and past the first line into my bash and as soon as I paste this POST http://127.0.0.1/zabbix/api_jsonrpc.php HTTP/1.1 and hit enter I get stuck, no matter what I try to paste after nothing happens so I need to kill the input by control+c.
How is the best way to learn Zabbix API? Any book that might help me? Can anyone help me with the first steps?
Cheers, Peter Franca
I am trying to learning about Zabbix API and I need some help.
I am reading the documentation https://www.zabbix.com/documentation/4.0/manual/api and I am literally stuck at the very start.
I am not a json expert.
For instance, this block of code
POST http://127.0.0.1/zabbix/api_jsonrpc.php HTTP/1.1
Content-Type: application/json-rpc
{"jsonrpc":"2.0","method":"apiinfo.version","id ":1 ,"auth":null,"params":{}}
Do I need to create a file and past the content of it and give execute permission to it?
I am trying to copy and past the first line into my bash and as soon as I paste this POST http://127.0.0.1/zabbix/api_jsonrpc.php HTTP/1.1 and hit enter I get stuck, no matter what I try to paste after nothing happens so I need to kill the input by control+c.
How is the best way to learn Zabbix API? Any book that might help me? Can anyone help me with the first steps?
Cheers, Peter Franca
Comment