Skip to content

Commit

Permalink
Update index.py
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Jul 15, 2024
1 parent 9851b54 commit 9ab9330
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions plugins/zabbix/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,6 @@ def zOp(method):

initDreplace()

current_os = mw.getOs()
if current_os.startswith("freebsd"):
data = mw.execShell('service zabbix_server ' + method)
if data[1] == '':
return 'ok'
return data[1]

data = mw.execShell('systemctl ' + method + ' zabbix_server')
if data[1] == '':
return 'ok'
Expand Down

0 comments on commit 9ab9330

Please sign in to comment.