How to install Check_MK Agent for OpenWRT?

Hi,
please can someone advise how to install Check_MK Agent for OpenWRT?
Thanks for any guidance.

Best regards,
olo

Hi,

With the instructions below you should be able to set it up:

  1. Enable ssh access on your OpenWRT router
  2. From your check_mk server copy /opt/omd/versions/default/share/check_mk/agents/check_mk_agent.openwrt to your OpenWRT router. Place it in /usr/bin.
  3. Make it executable: chmod +x /usr/bin/check_mk_agent
  4. Add the ssh public key from your check_mk site user to your OpenWRT router
  5. From your check_mk server, check if it works: ssh root@openwrt /usr/bin/check_mk
  6. Assuming you got the right output there, in check_mk create a rule for your OpenWRT router to use an individual program call instead of agent access. Command line to execute is “ssh root@$HOSTNAME$ /usr/bin/check_mk_agent” and make sure you set it to use “Explicit hosts” and fill in your OpenWRT router there.

That should get it going.
Good luck,
Louis

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.