I have an issue with the special agent for Nutanix Prism (see below).
The Nutanix cluster is a brand new setup with only one non-system VM.
I managed to get the agent to probe one of the CVM’s successfully. But I figured that is not intended implementation.
I have the special agent running successfully against a the Prism of a demo appliance deployed on VMware. So it the issue might be related to the version or configuration of the Nutanix cluster I guess.
Can anyone point me in a direction to get the agent working against the PrismCentral server?
Information of the setup that fails:
Nutanix versions:
Version pc.2024.1.0.2
NCC Version: 5.0.1
LCM Version: 3.0.1.1
CMK version: Cloud Edition 2.3.0p15
OS version: virt1-1.7.2
Error message: [special_prism] Agent exited with code 1: ERROR 2024-09-25 09:11:38 agent_prism: HTTP error: 412 Client Error: PRECONDITION FAILED for url: https://[HOST_IP]:9440/PrismGateway/services/rest/v2.0/protection_domains(!!)
Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)
Checkmk version 2.3.0p15
+ FETCHING DATA
Source: SourceInfo(hostname='PrismCentral', ipaddress='[HOST_IP]', ident='special_prism', fetcher_type=<FetcherType.SPECIAL_AGENT: 6>, source_type=<SourceType.HOST: 1>)
[cpu_tracking] Start [7f2b8fc84560]
Read from cache: AgentFileCache(PrismCentral, path_template=/omd/sites/[SITE_ID]/tmp/check_mk/data_source_cache/special_prism/{hostname}, max_age=MaxAge(checking=0, discovery=90.0, inventory=90.0), simulation=False, use_only_cache=False, file_cache_mode=6)
Not using cache (does not exist)
Calling: /omd/sites/[SITE_ID]/share/check_mk/agents/special/agent_prism --pwstore=6@0@/omd/sites/[SITE_ID]/var/check_mk/passwords_merged@uuidef242cbb-b88f-4144-a90f-65d369e59ec9 --server [HOST_IP] --username admin --password '[PASSWROD]' --no-cert-check
Get data from program
[cpu_tracking] Stop [7f2b8fc84560 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.3, children_system=0.04, elapsed=0.8799999989569187))]
Source: SourceInfo(hostname='PrismCentral', ipaddress='[HOST_IP]', ident='piggyback', fetcher_type=<FetcherType.PIGGYBACK: 4>, source_type=<SourceType.HOST: 1>)
[cpu_tracking] Start [7f2b8fde3a10]
Read from cache: NoCache(PrismCentral, path_template=/dev/null, max_age=MaxAge(checking=0.0, discovery=0.0, inventory=0.0), simulation=False, use_only_cache=False, file_cache_mode=1)
Piggyback file '/omd/sites/[SITE_ID]/tmp/check_mk/piggyback/PrismCentral/[NUTANIX_CVM]': Successfully processed from source '[NUTANIX_CVM]'
No piggyback files for '[HOST_IP]'. Skip processing.
Get piggybacked data
[cpu_tracking] Stop [7f2b8fde3a10 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.0))]
[cpu_tracking] Start [7f2b90731400]
+ PARSE FETCHER RESULTS
<<<prism_vm:cached(1727248247,90):sep(0)>>> / Transition NOOPParser -> HostSectionParser
<<<labels:sep(0)>>> / Transition HostSectionParser -> HostSectionParser
HostKey(hostname='PrismCentral', source_type=<SourceType.HOST: 1>) -> Add sections: ['labels', 'prism_vm']
Received no piggyback data
Piggyback file '/omd/sites/[SITE_ID]/tmp/check_mk/piggyback/PrismCentral/[NUTANIX_CVM]': Successfully processed from source '[NUTANIX_CVM]'
No piggyback files for '[HOST_IP]'. Skip processing.
[cpu_tracking] Stop [7f2b90731400 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.0))]
[special_prism] Agent exited with code 1: ERROR 2024-09-25 09:11:38 agent_prism: HTTP error: 412 Client Error: PRECONDITION FAILED for url: https://[HOST_IP]:9440/PrismGateway/services/rest/v2.0/protection_domains(!!), [piggyback] Successfully processed from source '[NUTANIX_CVM]', execution time 0.9 sec | execution_time=0.880 user_time=0.000 system_time=0.000 children_user_time=0.300 children_system_time=0.040 cmk_time_ds=0.540 cmk_time_agent=0.000


