qk4l / zabbix-cachet

Python script which sync Zabbix IT Services with Cachet
MIT License
80 stars 32 forks source link

Zabbix: 403 Client Error #58

Closed jonathon2nd closed 4 years ago

jonathon2nd commented 4 years ago

Started seeing this suddenly. At first thought it was because the password expired, which it did. However after updating it started to get these error messaged.

zabbix-cachet     | 2020-03-23 20:56:18  INFO: (MainThread) Zabbix Cachet v.1.3.6 started
zabbix-cachet     | 2020-03-23 20:56:18  INFO: (MainThread) JSON-RPC Server Endpoint: https://monitoring.example.com/api_jsonrpc.php
zabbix-cachet     | 2020-03-23 20:56:18  DEBUG: (MainThread) Sending: {
zabbix-cachet     |     "jsonrpc": "2.0",
zabbix-cachet     |     "params": {
zabbix-cachet     |         "password": "password",
zabbix-cachet     |         "user": "zabbix-cachet"
zabbix-cachet     |     },
zabbix-cachet     |     "method": "user.login",
zabbix-cachet     |     "id": 0
zabbix-cachet     | }
zabbix-cachet     | 2020-03-23 20:56:18  INFO: (MainThread) Starting new HTTPS connection (1): monitoring.example.com
zabbix-cachet     | 2020-03-23 20:56:18  DEBUG: (MainThread) "POST /api_jsonrpc.php HTTP/1.1" 403 None
zabbix-cachet     | 2020-03-23 20:56:18  DEBUG: (MainThread) Response Code: 403
zabbix-cachet     | 2020-03-23 20:56:18  ERROR: (MainThread) 403 Client Error: Forbidden for url: https://monitoring.example.com/api_jsonrpc.php

Seeing these types of logs in the Zabbix server, but I don't think it is directly related.

item "status-test.example.com:net.if.in[<veth* or br-*>]" became not supported: Cannot find information for this network interface in /proc/net/dev.

status-test.example.com is the server where the cachet stack is, including zabbix-cachet.

I have been troubleshooting this on and off for a couple days and have not figured out what is happening. Any help would be appreciated, I am sure I am missing something obvious.

jonathon2nd commented 4 years ago

Pulling from master and building from there also produces the same result.

jonathon2nd commented 4 years ago

Looks like it is something with the ZabbixAPI python module. I've tried giving all the permissions to the user to no avail. Not sure what the problem is yet.

jonathon2nd commented 4 years ago

It was cloudflare blocking the IP.