Ad Widget

Collapse

Zabbix 1.8.11 to 2.0 problem in windows service restart

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alderaan
    Junior Member
    • Aug 2011
    • 14

    #1

    Zabbix 1.8.11 to 2.0 problem in windows service restart

    Hi with zabbix 1.8.11 in action i can restart a windows service with

    {HOSTNAME}: sc stop windows_service
    {HOSTNAME}: sc start windows_service

    but now with 2.0 it doesn't work. Has anyone idea of what is different? How can i restart a windows service.
    I do a check with item:

    service_state[service] and trigger:

    {server:service_state[service].last(0)}#0

    Thanks
    Alderaan
  • alderaan
    Junior Member
    • Aug 2011
    • 14

    #2
    Originally posted by alderaan
    Hi with zabbix 1.8.11 in action i can restart a windows service with

    {HOSTNAME}: sc stop windows_service
    {HOSTNAME}: sc start windows_service

    but now with 2.0 it doesn't work. Has anyone idea of what is different? How can i restart a windows service.
    I do a check with item:

    service_state[service] and trigger:

    {server:service_state[service].last(0)}#0

    Thanks
    Alderaan

    No ideas about this problem?

    Comment

    • richlv
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2005
      • 3112

      #3
      syntax for remote commands has changed - you don't specify host in the command itself anymore, you just select them and the command is just that - w/o host specification prefix
      Zabbix 3.0 Network Monitoring book

      Comment

      • alderaan
        Junior Member
        • Aug 2011
        • 14

        #4
        Originally posted by richlv
        syntax for remote commands has changed - you don't specify host in the command itself anymore, you just select them and the command is just that - w/o host specification prefix
        Hi, same problem. Followind my conf:


        Commands:

        sc stop FortiExplorerDaemon
        sc start FortiExplorerDaemon


        Comment

        • alderaan
          Junior Member
          • Aug 2011
          • 14

          #5
          Solved

          [QUOTE=alderaan;103114]Hi, same problem. Followind my conf:


          Commands:

          sc stop FortiExplorerDaemon
          sc start FortiExplorerDaemon

          Problem solved. Need to specify full path:

          c:\windows\system32\sc.exe stop service
          c:\windows\system32\sc.exe start service

          Comment

          Working...