Ad Widget

Collapse

Cannot create host: the requested URL was rejected

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Wim Allegaert
    Junior Member
    • Feb 2017
    • 2

    #1

    Cannot create host: the requested URL was rejected

    Hi,

    Trying to create a host in Zabbix 5.0 by API but got stuck on following gneral error:

    <html><head><title>Request Rejected</title></head><body>The requested URL was rejected. Please consult with your administrator.<br><br>Your support ID is: 226700228002720725<br><br><a href='javascript:history.back();'>[Go Back]</a></body></html>

    Here is my JSON code:

    {
    "method": "host.create",
    "params": {
    "host": "test002",
    "groups": [
    {
    "groupid": "18"
    }
    ],
    "interfaces": [
    {
    "port": "10050",
    "dns": "test002.somefqdn.com",
    "ip": "",
    "useip": 0,
    "type": 1,
    "main": 1
    }
    ]
    },
    "id": 1,
    "jsonrpc": "2.0",
    "auth": "<key>"
    }

    Other JSON objects work (like listing all users). So this means it is not an authentication or connection issue, so it must be the JSON. But as far as I can read, I have respected the rules in this document: https://www.zabbix.com/documentation...ce/host/create
  • Wim Allegaert
    Junior Member
    • Feb 2017
    • 2

    #2
    I close my own topic, this was caused by a security filter on the reverse proxy server.

    Comment

    Working...