Local check not visible in GUI after scanning

CMK version:2.1.0p26

We have put a check in the local folder but its not visible when we scan the server.
If we manually run the agent on the server it shows up

<<local:sep(0)>>
0 “Check NetworkProfile” OK - Network profile is Domain

Agentlog shows the following

[srv 2740] [Trace] Exec app ‘powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File “C:\ProgramData\checkmk\agent\local\check-network-profile.ps1”’, mode [0]

perf: In [4126] milliseconds process ‘powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File “C:\ProgramData\checkmk\agent\local\check-network-profile.ps1”’ pid:[16708] SUCCEDED - generated [56] bytes of data in [1] blocks

[srv 2740] Local ‘C:\ProgramData\checkmk\agent\local\check-network-profile.ps1’ is sync with age:0 timeout:60 retry:0

Any suggestion what the problem can be?

Best regards
Daniel

This is not valid local check output.
Example

0 "My service" myvalue=73 My output text which may contain spaces

Your output should look like

0 “Check NetworkProfile” - Network profile is Domain

or

0 “Check NetworkProfile” - OK - Network profile is Domain

The one “-” after the service name is important

1 Like

In addition to Andreas reply, details and examples… as usual at the official Documentation

Local Checks

Thank you!

Now it works fine, didnt see that small difference

Br
Daniel

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.