1 /*
2 ** Zabbix
3 ** Copyright (C) 2001-2021 Zabbix SIA
4 **
5 ** This program is free software; you can redistribute it and/or modify
6 ** it under the terms of the GNU General Public License as published by
7 ** the Free Software Foundation; either version 2 of the License, or
8 ** (at your option) any later version.
9 **
10 ** This program is distributed in the hope that it will be useful,
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ** GNU General Public License for more details.
14 **
15 ** You should have received a copy of the GNU General Public License
16 ** along with this program; if not, write to the Free Software
17 ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18 **/
19 
20 #include "common.h"
21 #include "sysinfo.h"
22 
23 ZBX_METRIC	parameters_specific[] =
24 /* 	KEY			FLAG		FUNCTION 		TEST PARAMETERS */
25 {
26 	{"kernel.maxfiles",	0,		KERNEL_MAXFILES,	NULL},
27 	{"kernel.maxproc",	0,		KERNEL_MAXPROC, 	NULL},
28 
29 	{"vfs.fs.size",		CF_HAVEPARAMS,	VFS_FS_SIZE,		"/,free"},
30 	{"vfs.fs.inode",	CF_HAVEPARAMS,	VFS_FS_INODE,		"/,free"},
31 	{"vfs.fs.discovery",	0,		VFS_FS_DISCOVERY,	NULL},
32 
33 	{"vm.memory.size",	CF_HAVEPARAMS,	VM_MEMORY_SIZE,		"free"},
34 
35 	{"net.tcp.listen",      CF_HAVEPARAMS,	NET_TCP_LISTEN, 	"80"},
36 	{"net.udp.listen",      CF_HAVEPARAMS,	NET_UDP_LISTEN, 	"68"},
37 
38 	{"net.if.in",		CF_HAVEPARAMS,	NET_IF_IN,		"en0,bytes"},
39 	{"net.if.out",		CF_HAVEPARAMS,	NET_IF_OUT,		"en0,bytes"},
40 	{"net.if.total",	CF_HAVEPARAMS,	NET_IF_TOTAL,		"en0,bytes"},
41 	{"net.if.collisions",   CF_HAVEPARAMS,	NET_IF_COLLISIONS,      "en0"},
42 
43 	{"system.cpu.num",	CF_HAVEPARAMS,	SYSTEM_CPU_NUM,		"online"},
44 	{"system.cpu.load",	CF_HAVEPARAMS,	SYSTEM_CPU_LOAD,	"all,avg1"},
45 	{"system.cpu.discovery",0,		SYSTEM_CPU_DISCOVERY,	NULL},
46 
47 	{"system.uname",	0,		SYSTEM_UNAME,		NULL},
48 
49 	{"system.uptime",	0,		SYSTEM_UPTIME,		NULL},
50 	{"system.boottime",	0,		SYSTEM_BOOTTIME,	NULL},
51 	{"system.sw.arch",	0,		SYSTEM_SW_ARCH,		NULL},
52 
53 	{NULL}
54 };
55