...
Please follow this step-by-step guide:
Log on via SSH and become the siteuser
- Copy the special agent to the local structure
Code Block root@serverOMD<site>~$:/home/anastasios# cp /omd/sites/workshop/lib/python3/cmk/special_agents/agent_ibmsvc<script>.py /omd/sites/workshop/local/share/check_mk/agents/special/
Change the permissions of the file to the site userMake the script executable
Code Block root@server:/home/anastasios# cd /omd/sites/workshop/OMD<site>~$:chmod +x local/share/check_mk/agents/special root@server:/omd/sites/workshop/local/share/check_mk/agents/special# chown workshop. agent_ibmsvc.py
Make the script executable
Login as site user and addCode Block root@server:/omd/sites/workshop/local/share/check_mk/agents/special# chmod +x agent_ibmsvc.py
/<script>.py
Add the following line to the end of the script
Info su - mysite
vim ~/local/share/check_mk/agents/special/agent_ibmsvc<script>.pyCode Block if __name__ == "__main__": main()
...