Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-2293

Added program switch to run in foreground

XMLWordPrintable

      Today, init systems such as runit , systemd and on aix SRC (System Resource Controller) expect process does not close its controlling tty and continue to run on it.
      This patches add this functionality to zabbix programs (agent, proxy and server). Patch works on aix and linux (manually tested).
      What is probably still missing in this patch is replacement of output from zabbix.log to stdout for systemd.
      Example run on AIX 6.1

      root@aixmachine:/WORK/zabbix # lssrc -s zabbix_agentd
      Subsystem         Group            PID          Status 
       zabbix_agentd                                  inoperative
      root@aixmachine:/WORK/zabbix # startsrc -s zabbix_agentd
      0513-059 The zabbix_agentd Subsystem has been started. Subsystem PID is 33292522.
      root@aixmachine:/WORK/zabbix # lssrc -s zabbix_agentd
      Subsystem         Group            PID          Status 
       zabbix_agentd                     33292522     active
      root@aixmachine:/WORK/zabbix # ps auxwww|grep 33292522
      zabbix   33292522  0.0  0.0  860  884      - A    17:57:30  0:00 /opt/freeware/sbin/zabbix_agentd -f -c /etc/zabbix/zabbix_agentd.conf 
      root     13238444  0.0  0.0  248  260  pts/0 A    17:57:40  0:00 grep 33292522 
      root@aixmachine:/WORK/zabbix # stopsrc -s zabbix_agentd
      0513-044 The zabbix_agentd Subsystem was requested to stop.
      root@aixmachine:/WORK/zabbix # ps auxwww|grep 33292522
      root     31064274  0.0  0.0  248  260  pts/0 A    17:57:49  0:00 grep 33292522 
      root@aixmachine:/WORK/zabbix # startsrc -s zabbix_agentd
      0513-059 The zabbix_agentd Subsystem has been started. Subsystem PID is 31064276.
      root@aixmachine:/WORK/zabbix # 
      

      (creation of service)
      mkssys -s zabbix_agentd -p /opt/freeware/sbin/zabbix_agentd -u `id -u zabbix` -S -n15 -f9 -a '-f -c /etc/zabbix/zabbix_agentd.conf'

            Unassigned Unassigned
            steki Boris Manojlovic
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: