Integrating Graylog

Hi,

I am trying to integrate Graylog into checkmk monitoring but I am not able to discover any services.
What am I missing? can someone help me? should I need to enable any options inside Graylog to enable access from checkmk?
Please find the rule-created gray log.

image

Thank you,

I would double-check the permissions of the user used, although that seems like it is a high-privilege user (which is a bad idea for production but okay-ish for testing).
Also, maybe Checkmk cannot verify the certificate of the Graylog server?
Both wild guesses, but maybe they point you into the right direction.

1 Like

Hey,

I would verify that the Protocoll is correct/working as I’ve seen some graylog installations with HTTP only.

Regards,
Thomas

1 Like

how can I debug this?

Hi,
you can use the CLI for this: Switch into the directory share/check_mk/agents/special on your Checkmk site. There you find the special agent:

./agent_graylog -h

Karl

1 Like

I am getting an error like below while manually running from cli,
(Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1129)’))

Hi,
I don’t know if this works - but you can change linenumber 150 in the file lib/check_mk/special_agents/agent_graylog.py to this:

response = requests.get(url, auth=(args.user, args.password),verify=False)

Karl

Thank you for the update and support.
We tested this modification and it resolved the issue.
Later we reverted the changes and resolved the issue by installing a trusted certificate.

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.