Ad Widget

Collapse

Having problem when restarting zimbra services through remote commands

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sheshman
    Junior Member
    • Apr 2023
    • 6

    #1

    Having problem when restarting zimbra services through remote commands

    Hi,

    Started to use Zabbix few days ago, it's going amazing so far, the only problem i have is restarting zimbra services when it's down.

    Using ;
    HTML Code:
    zabbix_server (Zabbix) 6.0.15
    Revision 287da69c170 31 March 2023, compilation time: Mar 31 2023 11:54:32
    
    Copyright (C) 2023 Zabbix SIA
    License GPLv2+: GNU GPL version 2 or later <https://www.gnu.org/licenses/>.
    This is free software: you are free to change and redistribute it according to
    the license. There is NO WARRANTY, to the extent permitted by law.
    
    This product includes software developed by the OpenSSL Project
    for use in the OpenSSL Toolkit (http://www.openssl.org/).
    
    Compiled with OpenSSL 1.1.1f  31 Mar 2020
    Running with OpenSSL 1.1.1f  31 Mar 2020
    ​
    and Zimbra;
    HTML Code:
    Release 8.8.15.GA.3869.UBUNTU18.64 UBUNTU18_64 FOSS edition, Patch 8.8.15_P37.
    I've created action through Configuration->Actions->Restart zimbra when stops(screenshots as attached)


    My script is;

    HTML Code:
    sudo -u zimbra /opt/zimbra/bin/zmcontrol restart
    when zimbra services stops zabbix detecting and running this command through ssh, it says "command executed" but zimbra services is not starts, i've tested this command from remote computer through ssh and it works.

    Also i've tried as .sh script then it says command not executed, syntax error on line 1.

    What am i missing here?
    Attached Files
  • Spoonman
    Member
    • Aug 2013
    • 45

    #2
    Did you create a "script" in 'Administration > Scripts' ?
    There you can define all your action steps, SSH, etc.

    Comment

    • sheshman
      Junior Member
      • Apr 2023
      • 6

      #3
      Originally posted by Spoonman
      Did you create a "script" in 'Administration > Scripts' ?
      There you can define all your action steps, SSH, etc.
      Yes i did, you can see screenshots in my previous post

      Comment

      Working...