Downloading agent on server with wget?

I am on my server and want to download the agent, I exit omd and want to download the agent but something is weird. It feels like I want to download a file on my server from my server, because the URL for agent download has server’s ip (see bellow).
Curl URL doesn’t help either.
Same when I enter omd and run wget and curl, no luck.
wget inside omd:
[1] 20033
Redirecting output to ‘wget-log.2’.

I don’t want to download the agent on my win notebook and move it to debian machine.
It is not a big deal, I can do it but I think it is a better way to download inside terminal from server.

More info:
Check_MK is running on a PC with Debian 10.
I am connected through Putty.
I want to download the Agent to monitor the server.
Right click on icon “Avaible agent configurations - Linux - DEB” copy Link.
I let run the instance and omd status is running, I exit and run
EDIT: I removed “http” because of forum restriction: “New users can only have two links”


Output creates a wget log file:

–2020-02-14 08:43:45--
Connecting to… connected.
HTTP request sent, awaiting response… 302 FOUND
Location: /mysite/check_mk/ [following]
–2020-02-14 08:43:45--
Reusing existing connection to
HTTP request sent, awaiting response… 200 OK
Length: 1769 (1.7K) [text/html]
Saving to: ‘’

^M download_ag 0%[ ] 0 --.-KB/s ^ 100%[============================>] 1.73K --.-KB/s in 0s

2020-02-14 08:43:45 (10.1 MB/s) - ‘’ saved [1769/1769]

With ls I see inside omd and outside the same file:

Did I express myself well enough? Do you understand my problem?

Than you for your time.

Hello @miomate,

In your case it appears to be a auth problem, try to provide --user --password to wget.

I have the demo running in a ct and just right click copy link, wget http://localhost:8080/cmk/check_mk/agents/check-mk-agent_1.5.0p24-1_all.deb and it worked.

He is trying to download the agent from the agent bakery. Unfortunally this is not possible with wget.

You can do a quick and dirty workaround. Download the agent from the bakery and put it to the other (default) agents. I don’t have the path in my mind but that’s a way to distribute agents from the bakery.

I hope this kinda helps.

Thank you guys.
I used WinScp to drag the file to the server.