Local Checks - Not Working as in Guide

Hi,
I have been following a Guide to test Local Checks.

However My Local Check is not displayed as a service as it is in the Guide.


Would appreciate any help with this , thanks.

Hi @ronald_sp

Have you tried to rediscover services on the host you’re running the local checks on?

Regards,
Thomas

Hi,
I Have run multiple rescans, but the same output.

If some other script writes output that should just be concatenated, use the spool directory. In your case, you wrote the output in the script. If you run it with ./mylocalcheck you get an error.

1 Like

The file in /usr/lib/check_mk_agent/local has to be a shellscript/executable. I don’t see the shebang (#!/bin/bash) in the first line. Can you please add that and try again?

Edit: The output has to be echo’d/cat’d/printf’d/…

What happens when you just execute “./ronaldcheck”?

1 Like

Thanks to both of you, now its working.
I should have copied both line as in the document.
Thanks a lot

I might have some more questions , rather than opening a new topic.
I have looked in the guide regarding showing the values.
However I think my value is not being displayed.

Performance data/graphs are not shown in the “Edit services” view. After “Accept all” and waiting for at least 2 check intervals the graphs should be generated.

If i remember correctly, metrics are only shown if you use the P state. See chapter 3.1.

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.