Source
xxxxxxxxxx
/*
** Zabbix
** Copyright (C) 2001-2023 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.
**/
/******************************************************************************
* *
* Purpose: Returns Zabbix process name *
* *
* Parameters: proc_type - [IN] process type; ZBX_PROCESS_TYPE_* *
* *
* Comments: used in internals checks zabbix["process",...], process titles *
* and log files *
* *
******************************************************************************/
const char *get_process_type_string(unsigned char proc_type)
{
switch (proc_type)
{
case ZBX_PROCESS_TYPE_POLLER:
return "poller";
case ZBX_PROCESS_TYPE_UNREACHABLE:
return "unreachable poller";
case ZBX_PROCESS_TYPE_IPMIPOLLER:
return "ipmi poller";
case ZBX_PROCESS_TYPE_PINGER:
return "icmp pinger";
case ZBX_PROCESS_TYPE_JAVAPOLLER:
return "java poller";
case ZBX_PROCESS_TYPE_HTTPPOLLER:
return "http poller";
case ZBX_PROCESS_TYPE_TRAPPER:
return "trapper";
case ZBX_PROCESS_TYPE_SNMPTRAPPER:
return "snmp trapper";
case ZBX_PROCESS_TYPE_PROXYPOLLER:
return "proxy poller";
case ZBX_PROCESS_TYPE_ESCALATOR:
return "escalator";
case ZBX_PROCESS_TYPE_HISTSYNCER:
return "history syncer";
case ZBX_PROCESS_TYPE_DISCOVERER:
return "discoverer";
case ZBX_PROCESS_TYPE_ALERTER:
return "alerter";
case ZBX_PROCESS_TYPE_TIMER:
return "timer";