Ad Widget

Collapse

Need help creating a trigger for E-Mail alerts for an external script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ZabbixMan
    Junior Member
    • Jul 2017
    • 4

    #1

    Need help creating a trigger for E-Mail alerts for an external script

    So the script is this one found here: https://github.com/vicendominguez/wowza-zabbix-template

    It works perfectly and reports two numbers when it polls, streams and connections. I would like to make my trigger send e-mails when:

    streams-connections > 6000

    I know how to create Triggers for stuff tracked within Zabbix, but I can't seem to figure out the syntax for using it with an external script. Any help would be greatly appreciated.

    It seems I should use this syntax, but the key for my external script is super long: {<server>:<key>.<function>(<parameter>)}<operator> <constant>


    My key: getWowzaInfo.py["-u","{$WOWUSER}","-p","{$WOWPASS}","-h","{HOST.CONN}","-P","8086","-a","conn"]

    So am I to understand it should be {<server>:getWowzaInfo.py["-u","{$WOWUSER}","-p","{$WOWPASS}","-h","{HOST.CONN}","-P","8086","-a","conn"](<parameter>)}<operator><constant>

    or something like that?
    Last edited by ZabbixMan; 14-07-2017, 14:32.
  • batchenr
    Senior Member
    • Sep 2016
    • 440

    #2
    Originally posted by ZabbixMan
    So the script is this one found here: https://github.com/vicendominguez/wowza-zabbix-template

    It works perfectly and reports two numbers when it polls, streams and connections. I would like to make my trigger send e-mails when:

    streams-connections > 6000

    I know how to create Triggers for stuff tracked within Zabbix, but I can't seem to figure out the syntax for using it with an external script. Any help would be greatly appreciated.

    It seems I should use this syntax, but the key for my external script is super long: {<server>:<key>.<function>(<parameter>)}<operator> <constant>


    My key: getWowzaInfo.py["-u","{$WOWUSER}","-p","{$WOWPASS}","-h","{HOST.CONN}","-P","8086","-a","conn"]

    So am I to understand it should be {<server>:getWowzaInfo.py["-u","{$WOWUSER}","-p","{$WOWPASS}","-h","{HOST.CONN}","-P","8086","-a","conn"](<parameter>)}<operator><constant>

    or something like that?
    supposed to be the same with external script-
    for exsample if this script returns 0 as an error
    you set the trigger last()=0 - what does the script returns ?
    does your item supported?

    Comment

    Working...