How to solve the "Cannot fetch deployment URL via curl" error in check_mk

Source: Internet
Author: User

How to solve the "Cannot fetch deployment URL via curl" error in check_mk

This article explains "ERROR Cannot fetch deployment URL via curl: Couldn't resolve host. The given remote host was not resolved ." Causes and solutions.

check_mkIs a tool that helps you configure the nagios monitoring server. Then, when configuring one of the machines, I encountered the following error:

  1. ERROR Cannot fetch deployment URL via curl:Couldn't resolve host。The given remote host was not resolved。

This error occurs when I use the following command to register the machine to the monitoring server:

  1. root@kerneltalks# /usr/bin/cmk-update-agent register-s monitor.kerneltalks.com -i master -H `hostname`-p http -U omdadmin -S ASFKWEFUNSHEFKG -v

Where:

  • -sSpecify Monitoring Server
  • -iName of the Check_MK site on the server
  • -HHost Name of the agent
  • -pProtocol, which can be http or https (https by default)
  • -UUser ID of the agent that can be downloaded
  • -SPassword. User's automatic operation password (when it is an automatic user)

It can be seen from the error that the command cannot resolve the DNS name of the Monitoring Servermonitor.kerneltalks.com.

 

Solution:

Super simple. Check/etc/resolv.confMake sure that your DNS configuration is correct. If the problem persists, you can directly specify its IP address in/etc/hosts.

  1. root@kerneltalks#cat/etc/hosts
  2. 10.0.10.9 monitor.kerneltalks.com

This is done. You can register now.

  1. root@kerneltalks # /usr/bin/cmk-update-agent register-s monitor.kerneltalks.com -i master -H `hostname`-p http -U omdadmin -S ASFKWEFUNSHEFKG -v
  2. Going to register agent at deployment server
  3. Successfully registered agent for deployment.
  4. You can now update your agent by running 'cmk-update-agent -v'
  5. Saved your registration settings to /etc/cmk-update-agent.state.

In addition, you can-sSimply specifying an IP address does not matter!

Via: https://kerneltalks.com/troubleshooting/check_mk-register-cannot-fetch-deployment-url-via-curl-error/

Author: kerneltalks Translator: lujun9972 Proofreader: wxy

This article was originally compiled by LCTT and launched with the honor of Linux in China

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.