Hello,
I am a bit stuck. i cant seem to find a way to create a database monitor item via the API.
I have working ODBC checks but i would like to automate the createtion with the API
This is the json code i am trying to use but no luck. i am just getting "data=incorrect arguements" message (i am using powershell to convert the json, so error might be different for you)
{ "jsonrpc": "2.0", "method": "item.create", "params": { "name": "SQL Check", "key_": "db.obdc.select[testapi,sqlserver]", "hostid": "30074", "username": name, "password": pass, "type": "11", "delay": "30s" "param": "SQL query" }, "auth": "", "id": 1 } Thank you in advance
I am a bit stuck. i cant seem to find a way to create a database monitor item via the API.
I have working ODBC checks but i would like to automate the createtion with the API
This is the json code i am trying to use but no luck. i am just getting "data=incorrect arguements" message (i am using powershell to convert the json, so error might be different for you)
{ "jsonrpc": "2.0", "method": "item.create", "params": { "name": "SQL Check", "key_": "db.obdc.select[testapi,sqlserver]", "hostid": "30074", "username": name, "password": pass, "type": "11", "delay": "30s" "param": "SQL query" }, "auth": "", "id": 1 } Thank you in advance
Comment