Ad Widget

Collapse

Create a new Trigger for a Windows Service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RO-nIn
    Junior Member
    • Jan 2020
    • 6

    #1

    Create a new Trigger for a Windows Service

    Hi,

    I wanted to create a trigger to detect if a certain service is running so I can send a restart command through an action. Most servers I added as hosts automatically got triggers for their services through Windows Service Discovery, but the server I wanted to add this trigger to didn't, so I wanted to create one manually. I tried copying the expressions from other hosts but I only get an error "Cannot add trigger Incorrect item key "service.info[vfreader,state]" provided for trigger expression on "APPLIKATION11".". I guess the problem is that this expressions comes with the Windows Service Discovery but that didn't work on this server for some reason. Is there a way to force the service discovery or create the trigger manually? I'm using the same templates and they are in the same group, everything except the hostname and IP should be similar...

    Thanks!
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    If I understand it correctly the problem in your case is that there is no such item.
    A trigger in Zabbix must reference one or more items. So in order to have a trigger you must create an item it references first.

    Comment

    • RO-nIn
      Junior Member
      • Jan 2020
      • 6

      #3
      Thanks, I worked it out by creating a service discovery in the template, works now

      Comment

      Working...