CMK version: 2.1.0p3
OS version: Debian
Error message:
I can’t get Lambda services created with special agent AWS in 2.1.0p3,
First, I have add an host with ‘no-Ip’ in Ip adress family, then i configured the “Amazon Web services” agent with these parameters:
- The access key ID
- The Secret Acces Key
- the region “EU (Ireland)” (where are my lambda)
- Lambda with “Gather all service instances and restrict by averall AWS tags”
- And in condition Explicit Hosts => “INFRA3”
When i launch auto-discovery in this Host, i only get “AWS Exceptions”, and not my lambda :
but in command line in cache file a see all my lambda data :
OMD[aws]:~$ ls -lh /opt/omd/sites/aws/tmp/check_mk/agents/agent_aws/eu-west-1/INFRA3
total 56K
-rw-rw---- 1 aws aws 35K Jun 27 20:45 lambda.cache
-rw-rw---- 1 aws aws 2.0K Jun 27 20:45 lambda_cloudwatch_insights.cache
-rw-rw---- 1 aws aws 1.1K Jun 27 20:45 lambda_provisioned_concurrency.cache
-rw-rw---- 1 aws aws 9.7K Jun 27 20:45 lambda_summary.cache
And i also have data in “/omd/sites/aws/tmp/check_mk/data_source_cache/special_aws/INFRA3”
Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)
OMD[aws]:~$ cmk --debug -vvn INFRA3
Checkmk version 2.1.0p3
Try license usage history update.
Trying to acquire lock on /omd/sites/aws/var/check_mk/license_usage/next_run
Got lock on /omd/sites/aws/var/check_mk/license_usage/next_run
Trying to acquire lock on /omd/sites/aws/var/check_mk/license_usage/history.json
Got lock on /omd/sites/aws/var/check_mk/license_usage/history.json
Next run time has not been reached yet. Abort.
Releasing lock on /omd/sites/aws/var/check_mk/license_usage/history.json
Released lock on /omd/sites/aws/var/check_mk/license_usage/history.json
Releasing lock on /omd/sites/aws/var/check_mk/license_usage/next_run
Released lock on /omd/sites/aws/var/check_mk/license_usage/next_run
+ FETCHING DATA
Source: SourceType.HOST/FetcherType.PROGRAM
[cpu_tracking] Start [7f6c988b6520]
[ProgramFetcher] Fetch with cache settings: DefaultAgentFileCache(INFRA3, base_path=/omd/sites/aws/tmp/check_mk/data_source_cache/special_aws, max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=False, use_outdated=False, simulation=False)
Not using cache (Too old. Age is 32 sec, allowed is 0 sec)
[ProgramFetcher] Execute data source
Calling: /omd/sites/aws/share/check_mk/agents/special/agent_aws '--regions' 'eu-west-1' '--services' 'lambda' '--hostname' 'INFRA3'
STDIN (first 30 bytes): {"access_key_id": "AKIASLRNQ6M... (total 106 bytes)
Write data to cache file /omd/sites/aws/tmp/check_mk/data_source_cache/special_aws/INFRA3
Trying to acquire lock on /omd/sites/aws/tmp/check_mk/data_source_cache/special_aws/INFRA3
Got lock on /omd/sites/aws/tmp/check_mk/data_source_cache/special_aws/INFRA3
Releasing lock on /omd/sites/aws/tmp/check_mk/data_source_cache/special_aws/INFRA3
Released lock on /omd/sites/aws/tmp/check_mk/data_source_cache/special_aws/INFRA3
[cpu_tracking] Stop [7f6c988b6520 - Snapshot(process=posix.times_result(user=0.0, system=0.009999999999999953, children_user=0.68, children_system=0.08, elapsed=0.7899999991059303))]
Source: SourceType.HOST/FetcherType.PIGGYBACK
[cpu_tracking] Start [7f6c988b6130]
[PiggybackFetcher] Fetch with cache settings: NoCache(INFRA3, base_path=/omd/sites/aws/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 'INFRA3'. Skip processing.
Not using cache (Cache usage disabled)
[cpu_tracking] Stop [7f6c988b6130 - 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
<<<aws_exceptions>>> / Transition NOOPParser -> HostSectionParser
<<<aws_lambda_summary:cached(1656355514,360)>>> / Transition HostSectionParser -> HostSectionParser
<<<aws_lambda_provisioned_concurrency:cached(1656355515,360)>>> / Transition HostSectionParser -> HostSectionParser
<<<aws_lambda:cached(1656355515,360)>>> / Transition HostSectionParser -> HostSectionParser
<<<aws_lambda_cloudwatch_insights:cached(1656355553,360)>>> / Transition HostSectionParser -> HostSectionParser
No persisted sections
-> Add sections: ['aws_exceptions', 'aws_lambda', 'aws_lambda_cloudwatch_insights', 'aws_lambda_provisioned_concurrency', 'aws_lambda_summary']
Source: SourceType.HOST/FetcherType.PIGGYBACK
No persisted sections
-> Add sections: []
Received no piggyback data
Received no piggyback data
[cpu_tracking] Start [7f6c98884460]
value store: synchronizing
Trying to acquire lock on /omd/sites/aws/tmp/check_mk/counters/INFRA3
Got lock on /omd/sites/aws/tmp/check_mk/counters/INFRA3
value store: loading from disk
Releasing lock on /omd/sites/aws/tmp/check_mk/counters/INFRA3
Released lock on /omd/sites/aws/tmp/check_mk/counters/INFRA3
AWS Exceptions AWSSectionsGeneric: No exceptions
No piggyback files for 'INFRA3'. Skip processing.
[cpu_tracking] Stop [7f6c98884460 - Snapshot(process=posix.times_result(user=0.0, system=0.010000000000000009, children_user=0.0, children_system=0.0, elapsed=0.0))]
[special_aws] Success, execution time 0.8 sec | execution_time=0.790 user_time=0.000 system_time=0.020 children_user_time=0.680 children_system_time=0.080 cmk_time_ds=0.020 cmk_time_agent=0.000
The same configuration is working with CMK version 2.1.0b8, but not in 2.1.0p3, i don’t know what i’m doing wrong.
Thanks for your help.