Ad Widget

Collapse

I am loosing hope

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kqfp31
    Member
    • Apr 2012
    • 48

    #31
    I run this command and nothing happend

    I done this wrong?

    Comment

    • kqfp31
      Member
      • Apr 2012
      • 48

      #32
      Am I doing this wrong?
      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

      Comment

      • Colttt
        Senior Member
        Zabbix Certified Specialist
        • Mar 2009
        • 878

        #33
        Originally posted by Shad0w
        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!
        Debian-User

        Sorry for my bad english

        Comment

        • kqfp31
          Member
          • Apr 2012
          • 48

          #34
          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

          Working...