CheckMK RAW try to use vCenter credentials to connect a windows agent

CMK version: 2.1.0
OS version: Ubuntu 22.04

Error message: Agent exited with code 1: HTTPSConnectionPool(host=‘orvosilo-win’, port=443): Max retries exceeded with url: /sdk (Caused by NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0x7f7a07ac6730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’))

Output of “cmk --debug -vvn hostname”:
OMD[monitoring]:~$ cmk --debug -vvn orvosilo-win
Checkmk version 2.1.0
Try license usage history update.
Trying to acquire lock on /omd/sites/monitoring/var/check_mk/license_usage/next_run
Got lock on /omd/sites/monitoring/var/check_mk/license_usage/next_run
Trying to acquire lock on /omd/sites/monitoring/var/check_mk/license_usage/history.json
Got lock on /omd/sites/monitoring/var/check_mk/license_usage/history.json
Next run time has not been reached yet. Abort.
Releasing lock on /omd/sites/monitoring/var/check_mk/license_usage/history.json
Released lock on /omd/sites/monitoring/var/check_mk/license_usage/history.json
Releasing lock on /omd/sites/monitoring/var/check_mk/license_usage/next_run
Released lock on /omd/sites/monitoring/var/check_mk/license_usage/next_run

  • FETCHING DATA
    Source: SourceType.HOST/FetcherType.PROGRAM
    [cpu_tracking] Start [7fd55d5387c0]
    [ProgramFetcher] Fetch with cache settings: DefaultAgentFileCache(orvosilo-win, base_path=/omd/sites/monitoring/tmp/check_mk/data_source_cache/special_vsphere, max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=False, use_outdated=False, simulation=False)
    Not using cache (Does not exist)
    [ProgramFetcher] Execute data source
    Calling: /omd/sites/monitoring/share/check_mk/agents/special/agent_vsphere ‘-p’ ‘443’ ‘-u’ ‘*******@vsphere.local’ ‘-s=*****’ ‘-i’ ‘hostsystem,virtualmachine,datastore,counters’ ‘-P’ ‘–spaces’ ‘underscore’ ‘orvosilo-win’
    [cpu_tracking] Stop [7fd55d5387c0 - Snapshot(process=posix.times_result(user=0.0, system=0.010000000000000009, children_user=0.26, children_system=0.02, elapsed=0.30000000074505806))]
    Source: SourceType.HOST/FetcherType.PIGGYBACK
    [cpu_tracking] Start [7fd55d538130]
    [PiggybackFetcher] Fetch with cache settings: NoCache(orvosilo-win, base_path=/omd/sites/monitoring/tmp/check_mk/data_source_cache/piggyback, max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=True, use_outdated=False, simulation=False)
    Not using cache (Cache usage disabled)
    [PiggybackFetcher] Execute data source
    No piggyback files for ‘orvosilo-win’. Skip processing.
    No piggyback files for ‘x.y.z.78’. Skip processing.
    Not using cache (Cache usage disabled)
    [cpu_tracking] Stop [7fd55d538130 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.0))]
  • PARSE FETCHER RESULTS
    Source: SourceType.HOST/FetcherType.PROGRAM
    → Not adding sections: Agent exited with code 1: HTTPSConnectionPool(host=‘orvosilo-win’, port=443): Max retries exceeded with url: /sdk (Caused by NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0x7f801a77b310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’))
    Source: SourceType.HOST/FetcherType.PIGGYBACK
    No persisted sections
    → Add sections: []
    Received no piggyback data
    Received no piggyback data
    [cpu_tracking] Start [7fd55d538430]
    value store: synchronizing
    Trying to acquire lock on /omd/sites/monitoring/tmp/check_mk/counters/orvosilo-win
    Got lock on /omd/sites/monitoring/tmp/check_mk/counters/orvosilo-win
    value store: loading from disk
    Releasing lock on /omd/sites/monitoring/tmp/check_mk/counters/orvosilo-win
    Released lock on /omd/sites/monitoring/tmp/check_mk/counters/orvosilo-win
    No piggyback files for ‘orvosilo-win’. Skip processing.
    No piggyback files for ‘x.y.z.78’. Skip processing.
    [cpu_tracking] Stop [7fd55d538430 - Snapshot(process=posix.times_result(user=0.010000000000000009, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.009999997913837433))]
    [special_vsphere] Agent exited with code 1: HTTPSConnectionPool(host=‘orvosilo-win’, port=443): Max retries exceeded with url: /sdk (Caused by NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0x7f801a77b310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’))(!!), execution time 0.3 sec | execution_time=0.310 user_time=0.010 system_time=0.010 children_user_time=0.260 children_system_time=0.020 cmk_time_ds=0.010 cmk_time_agent=0.000
    OMD[monitoring]:~$

As soon an I delete the vcenter credential, it starts working while the vcenter monitoring stops.

Hallo,
often this is caused by missing or wrong rules.
The special agent for vsphere should have a rule based on tags or should be configured by adding the hostname of the vpshere center.
Ralf

2 Likes

You’re right, now it works. Thank you!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.