Ad Widget

Collapse

zabbix-alert-smtp.py

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jluvs2ride
    Member
    • Jul 2015
    • 85

    #1

    zabbix-alert-smtp.py

    Hey Y'all. New Zabbix user here.

    I am trying to set up a zabbix box for network monitoring and I've already been able to accomnplish more in just a couple if days with Zabbix than I was with about a month working with OpenNMS.

    I'm wanting to use a gmail account for notifications and found the script zabbix-alert-smtp.py

    I can test it in a terminal session using python zabbix-alert-smtp.py [email protected] Test Test. And I get the appropriate email. I have a media type set up as script and zabbix-alert-smtp.py. Notifications are enabled and I have an action to send email to Zabbix Administrators.

    If however I force the trigger into an error condition, the error shows on the Monitor Page and tells me that emails are in progress. Unfortunately after a period of time it switches to email not sent and I do not get any emails.

    So, the script works if I run it from the terminal console but not from Zabbix itself.

    Any ideas?
    Last edited by jluvs2ride; 30-07-2015, 01:44.
  • jluvs2ride
    Member
    • Jul 2015
    • 85

    #2
    Permissions?

    Well, I thought it could a permissions issue and I'm not an expert on UNIX/LINUX permissions. When I created the script I was logged in as root, so I added zabbix to the root group but that didn't help.

    BTW, I;m running 2.0.14 on Debian Wheezy.

    Any Ideas? There were a lot of really positive comments about this script so I'm just not sure what's wrong.

    Comment

    • jluvs2ride
      Member
      • Jul 2015
      • 85

      #3
      No ideas?

      Is there a better/different way to do what I'm trying to do?

      Essentially I just want to use a gmail account to send alerts. This script works from the command line when I supply the variables, just not when I trigger an event.

      Comment

      Working...