It may be necessary to modify a special agent shipped with Checkmk. Please don't modify the original files. You will lose any modifications after an upgrade.
LAST TESTED ON CHECKMK 2.1.0P1
Step-by-step guide
Log on via SSH and become the siteuser
root@linux# su mysite
Copy the agent to the local structure
OMD[mysite]~$:cp ~/lib/python3/cmk/special_agents/<script>.py ~/local/share/check_mk/agents/special/
Make the script executable
OMD[mysite]~$:chmod +x ~/local/share/check_mk/agents/special/<script>.py
Append the following line to the end of the script using Vim.
OMD[mysite]~$: vim ~/local/share/check_mk/agents/special/<script>.py
if __name__ == "__main__": main()
Related articles