...
Log on via SSH and become the siteuser
Code Block language bash theme RDark root@linux# su mysite
Copy the agent to the local structure
Code Block language bash theme RDark OMD[mysite]~$:cp ~/lib/python3/cmk/special_agents/<script>.py ~/local/share/check_mk/agents/special/
Make the script executable
Code Block language bash theme RDark OMD[mysite]~$:chmod +x ~/local/share/check_mk/agents/special/<script>.py
Append the following line to the end of the script using Vim.
Code Block language bash theme RDark OMD[mysite]~$: vim ~/local/share/check_mk/agents/special/<script>.py
Code Block language bash theme RDark if __name__ == "__main__": main()
Tip |
---|
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...