Hello
I wanted to create simple alert script which when cpu load is over 10% gets executed and send top result to email
I got everything up and running but i can not find why zabbix does not pass argvs to my script so i do not have access to needed arguments when zabbix launch my script i created action , And added media type and created user media




No matter what i do zabbix does not send any arguments to my script when executing it any idea what to do ?
Script is simple mail script :
I wanted to create simple alert script which when cpu load is over 10% gets executed and send top result to email
I got everything up and running but i can not find why zabbix does not pass argvs to my script so i do not have access to needed arguments when zabbix launch my script i created action , And added media type and created user media




No matter what i do zabbix does not send any arguments to my script when executing it any idea what to do ?
Script is simple mail script :
Code:
#!/bin/bash zabbix_get -s $2 -p 10050 -k cpu.tasks | mail -s "Task List from $2"
Comment