-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Issue] I got error 401 and required status code 200 #4
Comments
@Trikke76 Let me know if you have an idea ;) |
check if host macros are correct best way to check is to open de log file on the zabbix server as webmonitoring is done from the zabbix server. Maybe increase the logging for web monitoring. |
@Trikke76 Message from xxx.xxx.xxx.xxx is missing header. Message ignored. Zabbix agentr can be joined by zabbix, but papercut script doesn't work since zabbix was not able to "contact" papercut I think |
thats probably the issue |
@Trikke76 wget what? You mean update the zabbix server? |
wget http://xxx.xxx.xxx.xxx:9191/api/health?Authorization=R79SAqDpstNwlxxxxxxxxxxxOtwIlIWrIYb |
@Trikke76 |
The 401 error means it isn’t authorised (wrong or no credentials) make sure you have changed the authorisation macro and set the key to yours that should get you up and running. |
@maxlehot1234 |
@maxlehot1234 I just took a look on my setup and the template is wrong, The web status check uses the Authorization Macro but expects you to put in Authorization:YOUR_API_KEY which isn't how the web check URL works. Go to your host and change the Macro to Authorization=YOUR_API_KEY instead and you should be all good. |
I already try with = and same problem
Do I need = only in the template or in the host too?
Thanks again for your time
Envoyé par myMail pour iOS
lundi 3 décembre 2018 03:47 -0500 de notifications@github.com <notifications@github.com>:
…
@maxlehot1234 I just took a look on my setup and the template is wrong, The web status check uses the Authorization Macro but expects you to put in Authorization:YOUR_API_KEY which isn't how the web check URL works.
Go to your host and change the Macro to Authorization=YOUR_API_KEY instead and you should be all good.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub , or mute the thread .
|
@maxlehot1234 If you add it to your macro on the host it should take care of it for you. |
@Trikke76 I just change it in the macro of the host and I get the same error :( I just change it in the template to and I switch from = to : and same error occured |
Do you get the same error or is it a 500 this time? |
Same error.
I will test your template later today to see if it fixed the problem I have
Envoyé par myMail pour iOS
lundi 3 décembre 2018 08:14 -0500 de notifications@github.com <notifications@github.com>:
…Do you get the same error or is it a 500 this time?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub , or mute the thread .
|
Is the problem fixed with this template @maxlehot1234 |
@Trikke76 you should be able to use demo.papercut.com to test the http status or grab a free trial |
Good Morning! |
i dont use papercut i made this as a test case |
In my case wget works normally |
using wget or curl it is connecting normally, at least that's what it looks like |
@cawolkart I will check one of my test instances in the morning for you. I did an install for a customer of ours a few weeks back and it seemed to work. |
I will be very grateful for the help, thank you! |
are you sure that both macros are correctly set as described in the guide ?https://www.papercut.com/kb/Main/SystemHealthZabbix#step-6-configure-papercut-ng-or-mf-host-macros since curl works from the zabbix server it should work as zabbix basically does the same |
Done a bit of testing it seems to be ok with 20.1.2, 20.1.3 and the soon to be released 21.0. It looks like it could be a config error somewhere, it has been a while since I have had to troubleshoot Zabbix but does it have a log somewhere that might contain something useful? |
Hi, After following the guide and everything, I got this error in zabbix:
response code "401" did not match any of the required status codes "200"
It was able to reach the papercut server, but it returned this error.
If I test the
http://xxx.xxx.xxx.xxx:9191/api/health?Authorization=R79SAqDpstNwlxxxxxxxxxxxOtwIlIWrIYb
on a web browser, it works great.
If you have an idea, let me know.
Thanks again and have a nice day/night
The text was updated successfully, but these errors were encountered: