Unable to get report with curl - unauthorized

14 views
Skip to first unread message

savv3

unread,
May 23, 2025, 4:02:55 AMMay 23
to Thruk
Hi

I've been using curl to fetch a report using

> curl -u reportuser 'https://[naemon]/thruk/cgi-bin/reports2.cgi?report=1&refreshreport=0'

This has stopped working at some point, and I'm sadly not sure when (which version) as I don't run the report very often.

This is the output I'm getting when running curl:

Error

Date

Fri May 23 09:37:19 EEST 2025 (∞90s)

Version

Thruk 3.22
You are not authorized. It seems like you are not authorized.

So it looks to me that the basic auth works as I get a reply from thruk.
Also logging in with the user and fetching the report directly from the ui, works as expected. Maybe indicating some sort of cookie bug? I'm speculating of course.

Do any of you have any ideas or maybe have face the same problem?

Thanks in advance

Christian


Reply all
Reply to author
Forward
0 new messages