hi Dirk,
That I wonder as well but for discovery it worked. For example the result from
curl https://silly-debug.monitoring.svc.cluster.local:5000/status
[{"CMKStatusCode":0,"Description":"","RequestDuration":0.09732,"Service":"app1","State":"RUNNING","Status":"OK"},{"CMKStatusCode":1,"Description":"","RequestDuration":0.021372,"Service":"app2","State":"RUNNING","Status":"DEGRADED"},{"CMKStatusCode":0,"Description":"","RequestDuration":0.195038,"Service":"app3","State":"RUNNING","Status":"OK"},{"CMKStatusCode":2,"Description":"check-mk-agent - Returned HTTP Error 503 Server Error: Service Temporarily Unavailable for url: http://localhost/internal/status ","RequestDuration":0.0,"Service":"app4","State":"","Status":"ERROR"}]
And for the special agent, when I ran:
cmk --debug -vvII localhost
Discovering services and host labels on: localhost
localhost:
+ FETCHING DATA
Source: SourceInfo(hostname='localhost', ipaddress=None, ident='special_my_services', fetcher_type=<FetcherType.SPECIAL_AGENT: 6>, source_type=<SourceType.HOST: 1>)
[cpu_tracking] Start [7f434de09f50]
Read from cache: AgentFileCache(localhost, path_template=/omd/sites/la/tmp/check_mk/data_source_cache/special_my_services/{hostname}, max_age=MaxAge(checking=0, discovery=90.0, inventory=90.0), simulation=False, use_only_cache=False, file_cache_mode=1)
[ProgramFetcher] Execute data source
Calling: /omd/sites/la/share/check_mk/agents/special/agent_my_services --protocol https --user anonymouse --password '******' --services services --port 5000 --instance silly-debug.monitoring.svc.cluster.local/status --environment dev --site la
[cpu_tracking] Stop [7f434de09f50 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.33, children_system=0.13, elapsed=0.8899999996647239))]
Source: SourceInfo(hostname='localhost', ipaddress=None, ident='piggyback', fetcher_type=<FetcherType.PIGGYBACK: 4>, source_type=<SourceType.HOST: 1>)
[cpu_tracking] Start [7f434de08090]
Read from cache: NoCache(localhost, 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)
[PiggybackFetcher] Execute data source
No piggyback files for 'localhost'. Skip processing.
[cpu_tracking] Stop [7f434de08090 - 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
<<<my_services:sep(0)>>> / Transition NOOPParser -> HostSectionParser
Transition HostSectionParser -> NOOPParser
HostKey(hostname='localhost', source_type=<SourceType.HOST: 1>) -> Add sections: ['my_services']
HostKey(hostname='localhost', source_type=<SourceType.HOST: 1>) -> Add sections: []
Received no piggyback data
+ ANALYSE DISCOVERED HOST LABELS
Trying host label discovery with: my_services
Trying host label discovery with:
SUCCESS - Found no host labels
+ ANALYSE DISCOVERED SERVICES
+ EXECUTING DISCOVERY PLUGINS (1)
Trying discovery with: my_services
4 my_services
SUCCESS - Found 4 services
And the check
cmk --debug -vv localhost
Checkmk version 2.2.0p27
+ FETCHING DATA
Source: SourceInfo(hostname='localhost', ipaddress=None, ident='special_my_services', fetcher_type=<FetcherType.SPECIAL_AGENT: 6>, source_type=<SourceType.HOST: 1>)
[cpu_tracking] Start [7f8b95dde210]
Read from cache: AgentFileCache(localhost, path_template=/omd/sites/la/tmp/check_mk/data_source_cache/special_my_services/{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 (Too old. Age is 58 sec, allowed is 0 sec)
[ProgramFetcher] Execute data source
Calling: /omd/sites/la/share/check_mk/agents/special/agent_my_services --protocol https --user anonymouse --services services --port 5000 --instance silly-debug.monitoring.svc.cluster.local/status --environment dev --site la
Write data to cache file /omd/sites/la/tmp/check_mk/data_source_cache/special_my_services/localhost
Trying to acquire lock on /omd/sites/la/tmp/check_mk/data_source_cache/special_my_services/localhost
Got lock on /omd/sites/la/tmp/check_mk/data_source_cache/special_my_services/localhost
Releasing lock on /omd/sites/la/tmp/check_mk/data_source_cache/special_my_services/localhost
Released lock on /omd/sites/la/tmp/check_mk/data_source_cache/special_my_services/localhost
[cpu_tracking] Stop [7f8b95dde210 - Snapshot(process=posix.times_result(user=0.009999999999999787, system=0.0, children_user=0.36, children_system=0.11, elapsed=1.0299999993294477))]
Source: SourceInfo(hostname='localhost', ipaddress=None, ident='piggyback', fetcher_type=<FetcherType.PIGGYBACK: 4>, source_type=<SourceType.HOST: 1>)
[cpu_tracking] Start [7f8b9530b390]
Read from cache: NoCache(localhost, 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)
[PiggybackFetcher] Execute data source
No piggyback files for 'localhost'. Skip processing.
[cpu_tracking] Stop [7f8b9530b390 - 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
<<<my_services:sep(0)>>> / Transition NOOPParser -> HostSectionParser
Transition HostSectionParser -> NOOPParser
HostKey(hostname='localhost', source_type=<SourceType.HOST: 1>) -> Add sections: ['my_services']
HostKey(hostname='localhost', source_type=<SourceType.HOST: 1>) -> Add sections: []
Received no piggyback data
[cpu_tracking] Start [7f8b95bc8090]
value store: synchronizing
Trying to acquire lock on /omd/sites/la/tmp/check_mk/counters/localhost
Got lock on /omd/sites/la/tmp/check_mk/counters/localhost
value store: loading from disk
Releasing lock on /omd/sites/la/tmp/check_mk/counters/localhost
Released lock on /omd/sites/la/tmp/check_mk/counters/localhost
value store: synchronizing
Trying to acquire lock on /omd/sites/la/tmp/check_mk/counters/localhost
Got lock on /omd/sites/la/tmp/check_mk/counters/localhost
value store: already loaded
Releasing lock on /omd/sites/la/tmp/check_mk/counters/localhost
Released lock on /omd/sites/la/tmp/check_mk/counters/localhost
app1 The APP is OK
app2 Status DEGRADED(!), State RUNNING
app3 The APP is OK
app4 check-mk-agent - Returned HTTP Error 503 Server Error: Service Temporarily Unavailable for url: http://localhost/internal/status(!!), Status ERROR(!!)
No piggyback files for 'localhost'. Skip processing.
[cpu_tracking] Stop [7f8b95bc8090 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.010000000707805157))]
[special_my_services] Success, [piggyback] Success (but no data found for this host), execution time 1.0 sec | execution_time=1.040 user_time=0.010 system_time=0.000 children_user_time=0.360 children_system_time=0.110 cmk_time_ds=0.550 cmk_time_agent=0.000