No video

Execute Python Script on Remote Linux Host with Zabbix Agent 4.2

Zabbix 5 Course : sbcode.net/zabbix/
Coupons : sbcode.net/coupons
I create a python script on my remote Linux host that prints a random number. I create a new item for the host and select the system.run option for the key and enter the python command needed to run the new py file on the remote host.
Remember, it's important that there is a line `EnableRemoteCommands=1` in your zabbix-agentd.conf file, and you need to restart the agent for it to take effect.
#zabbix
#zabbix5
#zabbixCourse
#zabbixTutorial

Пікірлер: 11

  • @maxi1kian0
    @maxi1kian03 жыл бұрын

    Hello, what if this script in python executes more tha 30seconds. Zabbix cancel de execution? What if it configures whith nowait? I want to skip the 30 seconds restriction. Thanks.

  • @thaiphamminh2180
    @thaiphamminh2180 Жыл бұрын

    i did but getting error is python3: can't open file '/home/thai/pyproject/readtext.py': [Errno 13] Permission denied. Please help me.Thanks

  • @sambatiomero
    @sambatiomero3 жыл бұрын

    Hi sir. Can i find the 2coin.org website ??? Thank you so much. it's important for me for my research and studies

  • @sbcode

    @sbcode

    3 жыл бұрын

    I took it offline. Tell me what you want from it and i can make a course for it

  • @rohithmurthy7494
    @rohithmurthy74943 жыл бұрын

    Sean : Can you make one video for installing agent for Ubuntu host ? one more one video for Mongo-DB monitoring from Zabbix.

  • @sbcode

    @sbcode

    3 жыл бұрын

    there are several factors to consider when installing an agent and whether the zabbix server will be able to access it and vice versa. But start at sbcode.net/zabbix/agent-same-network/ For mongodb install a template after you installed a zabbix agent on your server share.zabbix.com/search?searchword=mongodb&search_cat=1

  • @rohithmurthy7494

    @rohithmurthy7494

    3 жыл бұрын

    @@sbcode for me still mongo-db monitoring is a nightmare, which is the best template among them i can retry.

  • @zabbixstudent8041
    @zabbixstudent8041 Жыл бұрын

    Zabbix Scripts "Start Services" How do I start services on a server , using Zabbix scripts?

  • @sbcode

    @sbcode

    Жыл бұрын

    Just give it a try. You will figure it out sbcode.net/zabbix/administration-scripts/

  • @zabbixstudent8041

    @zabbixstudent8041

    Жыл бұрын

    @@sbcode I saw this, But this seems like you have to create a script for every services that you want to start or stop. Is that right? I would like to click on the host in zabbix in the problem section. Then run the script . like the "ping" and "Traceroute" That shows up when you click on a host in the problem section

  • @sbcode

    @sbcode

    Жыл бұрын

    Keep searching for the answer that you want. When you find it, come back to my documentation that I linked above, and read it again. Good luck.