...
Copy the special agent to the local structure
Code Block root@klappanasroot@server:/home/anastasios# cp /omd/sites/workshop/lib/python3/cmk/special_agents/agent_ibmsvc.py /omd/sites/workshop/local/share/check_mk/agents/special/
Change the permissions of the file to the site user
Code Block root@klappanasroot@server:/home/anastasios# cd /omd/sites/workshop/local/share/check_mk/agents/special root@klappanasroot@server:/omd/sites/workshop/local/share/check_mk/agents/special# chown workshop. agent_ibmsvc.py
Make the script executable
Code Block root@klappanasroot@server:/omd/sites/workshop/local/share/check_mk/agents/special# chmod +x agent_ibmsvc.py
Login as site user and add the following line to the end of the script
Info su - workshop mysite
vi ~/local/share/check_mk/agents/special/agent_ibmsvc.pyCode Block if __name__ == "__main__": main()
...