Hi, hope someone could help to fix this issue
**CMK version:**2.1.0p19 cre
**OS version:**Ubuntu 22.04.2 LTS
Plugin from CMK-Exchange: Checkmk Exchange
Special Agent to read M365 service health from MS Graph API
Error message:
Started at: 10:18:09. Finished at: 10:18:13.
Error running automation call restart (exit code 5), error:
Error precompiling checks for host MS365-SERVICE: Cannot find check file agent_m365_service_health needed for check type agent_m365_service_health
Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)
Checkmk version 2.1.0p19
Try license usage history update.
Trying to acquire lock on /omd/sites/mysite/var/check_mk/license_usage/next_run
Got lock on /omd/sites/mysite/var/check_mk/license_usage/next_run
Trying to acquire lock on /omd/sites/mysite/var/check_mk/license_usage/history.json
Got lock on /omd/sites/mysite/var/check_mk/license_usage/history.json
Next run time has not been reached yet. Abort.
Releasing lock on /omd/sites/mysite/var/check_mk/license_usage/history.json
Released lock on /omd/sites/mysite/var/check_mk/license_usage/history.json
Releasing lock on /omd/sites/mysite/var/check_mk/license_usage/next_run
Released lock on /omd/sites/mysite/var/check_mk/license_usage/next_run
+ FETCHING DATA
Source: SourceType.HOST/FetcherType.PROGRAM
[cpu_tracking] Start [7fdf48e0bb50]
[ProgramFetcher] Fetch with cache settings: DefaultAgentFileCache(MS365-SERVICE, base_path=/omd/sites/mysite/tmp/check_mk/data_source_cache/special_m365_service_health, max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=False, use_outdated=False, simulation=False)
Not using cache (Too old. Age is 16003 sec, allowed is 0 sec)
[ProgramFetcher] Execute data source
Calling: /omd/sites/mysite/local/share/check_mk/agents/special/agent_m365_service_health '--tenant' 'XXXXXXXXXXXXXXX' '--client' 'XXXXXXXXXXXXXXXX' '--issue_days' 0 '--secret=XXXXXXXXXXXXXXXXXXXXXXXXXXXX
Write data to cache file /omd/sites/mysite/tmp/check_mk/data_source_cache/special_m365_service_health/MS365-SERVICE
Trying to acquire lock on /omd/sites/mysite/tmp/check_mk/data_source_cache/special_m365_service_health/MS365-SERVICE
Got lock on /omd/sites/mysite/tmp/check_mk/data_source_cache/special_m365_service_health/MS365-SERVICE
Releasing lock on /omd/sites/mysite/tmp/check_mk/data_source_cache/special_m365_service_health/MS365-SERVICE
Released lock on /omd/sites/mysite/tmp/check_mk/data_source_cache/special_m365_service_health/MS365-SERVICE
[cpu_tracking] Stop [7fdf48e0bb50 - Snapshot(process=posix.times_result(user=0.0, system=0.010000000000000009, children_user=0.44, children_system=0.06, elapsed=1.2399999983608723))]
Source: SourceType.HOST/FetcherType.PIGGYBACK
[cpu_tracking] Start [7fdf48d56a60]
[PiggybackFetcher] Fetch with cache settings: NoCache(MS365-SERVICE, base_path=/omd/sites/mysite/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 'MS365-SERVICE'. Skip processing.
Not using cache (Cache usage disabled)
[cpu_tracking] Stop [7fdf48d56a60 - 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
<<<m365_service_health:sep(0)>>> / Transition NOOPParser -> HostSectionParser
No persisted sections
-> Add sections: ['m365_service_health']
Source: SourceType.HOST/FetcherType.PIGGYBACK
No persisted sections
-> Add sections: []
Received no piggyback data
Received no piggyback data
[cpu_tracking] Start [7fdf48dbe2e0]
value store: synchronizing
Trying to acquire lock on /omd/sites/mysite/tmp/check_mk/counters/MS365-SERVICE
Got lock on /omd/sites/mysite/tmp/check_mk/counters/MS365-SERVICE
value store: loading from disk
Releasing lock on /omd/sites/mysite/tmp/check_mk/counters/MS365-SERVICE
Released lock on /omd/sites/mysite/tmp/check_mk/counters/MS365-SERVICE
Microsoft Azure Information Protection Service is in state: serviceOperational
Microsoft Dynamics 365 Apps Service is in state: serviceOperational
Microsoft Exchange Online Service is in state: serviceDegradation
Microsoft Microsoft 365 Defender Service is in state: extendedRecovery
Microsoft Microsoft 365 apps Service is in state: serviceOperational
Microsoft Microsoft 365 for the web Service is in state: serviceOperational
Microsoft Microsoft 365 suite Service is in state: serviceDegradation
Microsoft Microsoft Bookings Service is in state: serviceOperational
Microsoft Microsoft Dataverse Service is in state: serviceOperational
Microsoft Microsoft Defender for Cloud Apps Service is in state: serviceOperational
Microsoft Microsoft Entra Service is in state: serviceOperational
Microsoft Microsoft Forms Service is in state: serviceOperational
Microsoft Microsoft Intune Service is in state: serviceOperational
Microsoft Microsoft Kaizala Service is in state: serviceOperational
Microsoft Microsoft Managed Desktop Service is in state: serviceDegradation
Microsoft Microsoft Power Automate Service is in state: serviceOperational
Microsoft Microsoft Power Automate in Microsoft 365 Service is in state: serviceOperational
Microsoft Microsoft Stream Service is in state: serviceOperational
Microsoft Microsoft Teams Service is in state: serviceDegradation
Microsoft Microsoft Viva Service is in state: serviceOperational
Microsoft Mobile Device Management for Office 365 Service is in state: serviceOperational
Microsoft OneDrive for Business Service is in state: serviceDegradation
Microsoft Planner Service is in state: serviceOperational
Microsoft Power Apps Service is in state: serviceOperational
Microsoft Power Apps in Microsoft 365 Service is in state: serviceOperational
Microsoft Power BI Service is in state: serviceOperational
Microsoft Power Platform Service is in state: serviceOperational
Microsoft Privileged Access Service is in state: serviceOperational
Microsoft Project for the web Service is in state: serviceOperational
Microsoft SharePoint Online Service is in state: serviceDegradation
Microsoft Skype for Business Service is in state: serviceOperational
Microsoft Sway Service is in state: serviceOperational
Microsoft Universal Print Service is in state: serviceOperational
Microsoft Windows Autopatch Service is in state: serviceDegradation
Microsoft Yammer Enterprise Service is in state: serviceOperational
No piggyback files for 'MS365-SERVICE'. Skip processing.
[cpu_tracking] Stop [7fdf48dbe2e0 - Snapshot(process=posix.times_result(user=0.0, system=0.010000000000000009, children_user=0.0, children_system=0.0, elapsed=0.010000001639127731))]
[special_m365_service_health] Success, execution time 1.2 sec | execution_time=1.250 user_time=0.000 system_time=0.020 children_user_time=0.440 children_system_time=0.060 cmk_time_ds=0.730 cmk_time_agent=0.000