Ad Widget

Collapse

Create simple trigger in Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ColdRaker
    Junior Member
    • Aug 2017
    • 3

    #1

    Create simple trigger in Zabbix

    Hello,

    I'm trying to add a trigger in Zabbix. My script simply checks for some data and returns 1 for errors and 0 if everything is good.

    The Trigger is: {Hostname:Key.last()}=1

    On the Host, by testing the triggerdata via the agent, I get the value 1 back and the powershellscript returns 1 too.

    Now here is the confusing part
    The latest data in the webinterface shows 0 as value

    I already tried to restart the agent and recreated the trigger.
    I checked the script several times. Thats not the problem! (But if you insist I can post it. )

    Did anyone have a similar problem so far? (I use Zabbix 3.2)

    I gladly accept any ideas

    Best Regards
    Cold
  • ColdRaker
    Junior Member
    • Aug 2017
    • 3

    #2
    solved

    I found the problem.

    It was a simple permission issue. The script checks for a file on a VM, but the zabbix service didnt have the rights to access the VM.

    Thats the reason why everything worked fine when running it manually...

    Comment

    Working...