Ad Widget

Collapse

Zabbix Alternate way to notify the alert raised

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vnoc
    Senior Member
    • Sep 2017
    • 115

    #1

    Zabbix Alternate way to notify the alert raised

    Hi I am trying to push the alerts raised in zabbix

    -> Trying to push the alerts through script based using below link but it is not working
    How to set up a Zabbix server to send mail reports to a Gmail address by using the SSMTP, without the need to install any MTA daemon, such as Postfix, Exim, etc



    -> Trying to push the alerts through script based(to create a file in zabbix server itself and push the file to a different) but I am unable to do so. Kindly help me in how to achieve this requirement (creating a file in zabbix server whenever a alert raised by zabbix )

    What I tried
    ->created a file as below in
    /usr/lib/zabbix/alertscripts as below

    #!/bin/bash
    cat $1 $2 $3 >> alarmftp_data.txt

    ->created a mediatype as script (screenshot attached) and added the same in operation as below and made a port down but didn't work and gave me an error as (No media defined for user "Zabbix Administrator (Admin)")
    Send message to users: Admin (Zabbix Administrator) via FTP_Script
    Send message to user groups: Zabbix administrators via FTP_Script
    Immediately Default
    • Edit
    • Remove

    These are the 2 concerns which I am facing . Anyone please help me in fixing this

    Attached Files
  • vnoc
    Senior Member
    • Sep 2017
    • 115

    #2
    2nd concern raised is working fine after changing the script.

    Could you please help me in fixing the 1st concern

    Comment

    • kernbug
      Senior Member
      • Feb 2013
      • 330

      #3
      Originally posted by vnoc

      Could you please help me in fixing the 1st concern
      Hi,

      Code:
      -> Trying to push the alerts through script based using below link but it is not working
      [URL="https://www.tecmint.com/configure-zabbix-to-send-email-alerts-to-gmail/"]https://www.tecmint.com/configure-za...erts-to-gmail/[/URL]
      According to the link you provided, there is a lot of instructions, could you please specify at which step of the configuration you encountered a problem and what does not work for you?

      Comment

      • vnoc
        Senior Member
        • Sep 2017
        • 115

        #4
        I got solution for both the raised concerns.

        Comment

        Working...