Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Log on via SSH and become the siteuser

  2. Copy the agent to the local structure


    Code Block
    OMD<site>~$:cp ~/lib/python3/cmk/special_agents/<script>.py ~/local/share/check_mk/agents/special/


  3. Make the script executable

    Code Block
    OMD<site>~$:chmod +x ~/local/share/check_mk/agents/special/<script>.py 


  4. Add the following line to the end of the script

    Info

    vim ~/local/share/check_mk/agents/special/<script>.py

    Code Block
    if __name__ == "__main__":
        main()



...