Ad Widget

Collapse

Help send email

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mcanelada
    Junior Member
    • Jun 2016
    • 15

    #1

    Help send email

    Good morning everyone ,
    I'm trying to send alert e-mail through the Zabbix however unsuccessfully , this error appears to me

    /usr/lib/zabbix/alertscripts/zabbix-sendemail: [2] No such file or directory

    How can i fix this ?

    Thanks
  • zabx_ks
    Member
    • May 2016
    • 48

    #2
    Originally posted by mcanelada
    Good morning everyone ,
    I'm trying to send alert e-mail through the Zabbix however unsuccessfully , this error appears to me

    /usr/lib/zabbix/alertscripts/zabbix-sendemail: [2] No such file or directory

    How can i fix this ?

    Thanks
    Hi mcanelada,

    Looks like you are using media type "script" not "email".
    Please show screenshot of your User profile - media

    p.s
    More about how to use Custom alertscripts:


    And more about how to use e-mail notifications:



    zabx_ks

    Comment

    • mcanelada
      Junior Member
      • Jun 2016
      • 15

      #3
      Follow the img

      Click image for larger version

Name:	Captura de tela de 2016-06-09 11:17:15.png
Views:	1
Size:	72.4 KB
ID:	313314

      Comment

      • zabx_ks
        Member
        • May 2016
        • 48

        #4
        mcanelada,

        Type should be "e-mail"



        zabx_ks

        Comment

        • mcanelada
          Junior Member
          • Jun 2016
          • 15

          #5
          But i Use an script

          Its right ? Or i need change to email to ?

          Comment

          • zabx_ks
            Member
            • May 2016
            • 48

            #6
            Originally posted by mcanelada
            But i Use an script

            Its right ? Or i need change to email to ?
            Can you please give me more detailed info about what you are planing to do in this case?

            p.s.
            based on:
            Code:
            /usr/lib/zabbix/alertscripts/zabbix-sendemail: [2] No such file or directory
            Have you put your "zabbix-sendemail" script file in /usr/lib/zabbix/alertscripts/ directory?

            zabx_ks

            Comment

            • mcanelada
              Junior Member
              • Jun 2016
              • 15

              #7
              I would like to use the snmp actions where is the part that shows me the% of free space on the server's disks and according to the level sending email with this alert .


              I checked and the file are on this folder

              Comment

              • zabx_ks
                Member
                • May 2016
                • 48

                #8
                Originally posted by mcanelada
                I would like to use the snmp actions where is the part that shows me the% of free space on the server's disks and according to the level sending email with this alert .


                I checked and the file are on this folder
                mcanelada,

                I hope I understand you correctly...

                To do that, there are 3 steps:

                1) make snmp item
                2) make trigger
                3) make email notification

                have you made at least 1st and 2nd step?

                p.s.
                Check if zabbix user have permissions to execute that file:

                Code:
                ls -lah /usr/lib/zabbix/alertscripts/

                zabx_ks

                Comment

                • mcanelada
                  Junior Member
                  • Jun 2016
                  • 15

                  #9
                  Good morning ,

                  I made the first and third step further did not understand how the part to assemble trigger

                  Comment

                  • zabx_ks
                    Member
                    • May 2016
                    • 48

                    #10
                    Hello mcanelada,

                    Please show me a screenshot of your item configuration.

                    zabx_ks

                    Comment

                    • mcanelada
                      Junior Member
                      • Jun 2016
                      • 15

                      #11






                      This item ?
                      Attached Files

                      Comment

                      • zabx_ks
                        Member
                        • May 2016
                        • 48

                        #12
                        mcanelada,

                        No, this is a "action".
                        I mean Configuration - hosts - "your host" - item.
                        That item which you are using at step " 1) make snmp item"

                        example my item:


                        zabx_ks
                        Last edited by zabx_ks; 10-06-2016, 15:28.

                        Comment

                        • mcanelada
                          Junior Member
                          • Jun 2016
                          • 15

                          #13


                          I got this

                          Comment

                          • zabx_ks
                            Member
                            • May 2016
                            • 48

                            #14
                            Originally posted by mcanelada
                            Dear mcanelad

                            Overall my recommendation to you would be:
                            1) install zabbix agent on that host which you want to monitor.
                            2) then add it as new host in frontend
                            3) make item for that host which shows free disk space (example like in my screenshot)
                            4) then you will be able to make trigger which fires alert when your disk space is lower than example ~10% or whatever how much %
                            5) and in the end you will be able to configure action with mail notification which would send you a e-mail if trigger will fire.


                            zabx_ks

                            Comment

                            • mcanelada
                              Junior Member
                              • Jun 2016
                              • 15

                              #15
                              Hey zabx_ks,

                              One last question,

                              How i make triggers can u help me on this task ?

                              BR

                              Comment

                              Working...