/* ** Zabbix ** Copyright (C) 2001-2014 Zabbix SIA ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by ** the Free Software Foundation; either version 2 of the License, or ** (at your option) any later version. ** ** This program is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ** GNU General Public License for more details. ** ** You should have received a copy of the GNU General Public License ** along with this program; if not, write to the Free Software ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. **/ #include "common.h" #include "cfg.h" #include "pid.h" #include "db.h" #include "dbcache.h" #include "log.h" #include "zbxgetopt.h" #include "mutexs.h" #include "sysinfo.h" #include "zbxserver.h" #include "daemon.h" #include "zbxself.h" #include "alerter/alerter.h" #include "dbsyncer/dbsyncer.h" #include "dbconfig/dbconfig.h" #include "discoverer/discoverer.h" #include "httppoller/httppoller.h" #include "housekeeper/housekeeper.h" #include "pinger/pinger.h" #include "poller/poller.h" #include "poller/checks_ipmi.h" #include "timer/timer.h" #include "trapper/trapper.h" #include "snmptrapper/snmptrapper.h" #include "nodewatcher/nodewatcher.h" #include "watchdog/watchdog.h" #include "utils/nodechange.h" #include "escalator/escalator.h" #include "proxypoller/proxypoller.h" #include "selfmon/selfmon.h" #include #include #include #include #include #define INIT_SERVER(type, count) \ process_type = type; \ process_num = server_num - server_count + count; \ zabbix_log(LOG_LEVEL_INFORMATION, "server #%d started [%s #%d]", \ server_num, get_process_type_string(process_type), process_num) const char *progname = NULL; const char title_message[] = "Zabbix server"; const char syslog_app_name[] = "zabbix_server"; const char usage_message[] = "[-hV] [-c ] [-n ] [-R