If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to REGISTER before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
root@ht-50814ffc17b2c:~# echo "Zabbix testmail script works" >> /tmp/zabbix_mailroot@ht-50814ffc17b2c:~# ls tmp/zabbix_mail ls: cannot access tmp/zabbix_mail: No such file or directory
root@ht-50814ffc17b2c:~# vi tmp/zabbix_mail
root@ht-50814ffc17b2c:~# echo "zext_msmtp.sh" >> /tmp/zabbix_mail root@ht-50814ffc17b2c:~# vi tmp/zabbix_mail
root@ht-50814ffc17b2c:~# ls tmp/zabbix_mail
ls: cannot access tmp/zabbix_mail: No such file or directory
hmmm.. it looks all good..
is there an logfile in you scripts? when no try in the end of you script following:
echo "Zabbix testmail script works" >> /tmp/zabbix_mail
after this do an alert and show if this file create..
please read properly!
in the end of you script you must add this:
echo "Zabbix testmail script works" >> /tmp/zabbix_mail
after this run you script from the zabbix-frontend by a trigger or somthing like that.. and when you run it successfully you can chek if the file /tmp/zabbix_mail exist this script runs, and when you has no mail recived you has an error in you script!
Ok, i done this with every script and I only have something like this:
Zabbix testmail script works
Zabbix testmail script works
Zabbix testmail script works
zext_msmtp.sh
Zabbix testmail script works
Zabbix testmail script works
Zabbix testmail script works
Zabbix testmail script works
In log I have information that script works, but i don't get any information.
Comment