Ad Widget

Collapse

Zabbix problem with new Media types

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mislav-eu
    Member
    • May 2016
    • 30

    #1

    Zabbix problem with new Media types

    Hi.

    I've a weird problem with new media types - they're not working at all.

    Here is the scenario:
    - I have few custom/old scripts and they're working flawlessly
    - I add new media type with new custom script
    - I configure new or modify existing Actions
    - I change trigger to reproduce alert/problem
    - it does not work

    Script is working when I execute it manually, it has correct permissions and I also tried to write into file - it's working.

    If I add that same content of new script to old script, change that same action to use old media type - it's working. If I change it back to new media type/script - it doesn't work.

    Any idea what could cause this? Why new media types are not working and only old ones are? I'm running zabbix 2.4..

    EDIT:
    - found a problem - it seems like I forgot to add this new media type to a user itself!
    Last edited by mislav-eu; 13-10-2016, 11:32. Reason: problem found
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Do you have the required environment variable is set for execute the script?
    If you run manually, you may be able to execute by the user-specific environment variable.

    Do you have the authority(access and execute) to zabbix user?

    Comment

    • mislav-eu
      Member
      • May 2016
      • 30

      #3
      Hi.

      Text file I was echo-ing into was chowned with zabbix user/group with proper chmod permissions.

      Anyway, I found a problem - it seems like I forgot to add this new media type to a user itself

      Comment

      Working...