Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Check_mk_agent: Command not found

    Scheduled Pinned Locked Moved pfSense Packages
    2 Posts 2 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      ApolloDS
      last edited by

      Hello,
      I have a fresh install of 2.2-RELEASE-pfSense and added check_mk_agent over the package manager in the GUI.
      Then I get an error from the monitoring that the check_mk_agent cannot be started on the pfSense.

      I did some troubleshooting:

      1. Manual start check_mk_agent:

      # check_mk_agent
      check_mk_agent: Command not found.
      
      

      -> It seems that check_mk_agent is looking for /bin/bash but this is not installed on pfSense.
      I installed bash:

      # pkg
      The package management tool is not yet installed on your system.
      Do you want to fetch and install it now? [y/N]: y
      .
      .
      .
      
      # pkg update
      Updating FreeBSD repository catalogue...
      Fetching meta.txz: 100%   944 B   0.9k/s    00:01
      Fetching packagesite.txz: 100%    5 MB 755.5k/s    00:07
      Processing entries: 100%
      FreeBSD repository update completed. 23812 packages processed
      
      # pkg install bash
      .
      .
      .
      

      But bash is now at /usr/local/bin/bash.
      When I changed check_mk_agent from #!/bin/bash to #!/usr/local/bin/bash check_mk_agent is working then.

      So can please the maintainer of check_mk_agent upgrade the package that it is working again with 2.2-RELEASE?
      Bug is here: https://redmine.pfsense.org/issues/4084

      Many thanks!

      Best regards,
      Peter

      1 Reply Last reply Reply Quote 0
      • M
        mikesamo
        last edited by

        Hello,

        same issue here please fix :)

        Thanks,

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.