Тёмный

Execute Python Script on Remote Linux Host with Zabbix Agent 4.2 

SBCODE
Подписаться 23 тыс.
Просмотров 11 тыс.
50% 1

Zabbix 5 Course : sbcode.net/zab...
Coupons : sbcode.net/cou...
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

Опубликовано:

 

19 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 11   
@maxi1kian0
@maxi1kian0 3 года назад
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
@sambatiomero 4 года назад
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 4 года назад
I took it offline. Tell me what you want from it and i can make a course for it
@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.
@rohithmurthy7494
@rohithmurthy7494 3 года назад
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.
Далее
Using the 'Zabbix Get' 4.2 Command
5:11
Просмотров 1 тыс.
Zabbix API Explained
45:48
Просмотров 40 тыс.
UserParameters in Zabbix, with Examples
14:43
Просмотров 8 тыс.
The most important Python script I ever wrote
19:58
Просмотров 196 тыс.
BASH scripting will change your life
14:18
Просмотров 1 млн
Beginner's Guide to the Bash Terminal
1:14:37
Просмотров 2,3 млн
Linux from Scratch
2:35:42
Просмотров 174 тыс.
Convert SNMPWALK to Zabbix Template
10:02
Просмотров 12 тыс.
Monitoring SSL Certificate Expiry Using Zabbix
10:43
Просмотров 18 тыс.