summaryrefslogtreecommitdiffstats
path: root/src/zabbix_agent/diskdevices.h
blob: 961b36560ed66ba1be3b4485493abe2884c52c81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* 
** ZABBIX
** Copyright (C) 2000-2005 SIA Zabbix
**
** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
**/

#ifndef ZABBIX_DISKDEVICES_H
#define ZABBIX_DISKDEVICES_H


#define	MAX_DISKDEVICES	8

typedef struct c_single_diskdevice_data
{
	char    *name;
	int	major;
	int	diskno;
	int	clock[60*15];
	double	read_io_ops[60*15];
	double	blks_read[60*15];
	double	write_io_ops[60*15];
	double	blks_write[60*15];
} ZBX_SINGLE_DISKDEVICE_DATA;

typedef struct c_diskdevices_data
{
	ZBX_SINGLE_DISKDEVICE_DATA device[MAX_DISKDEVICES];
} ZBX_DISKDEVICES_DATA;

void	collect_stats_diskdevices(ZBX_DISKDEVICES_DATA *pdiskdevices);

/*
#define	MAX_DISKDEVICES	8

#define DISKDEVICE struct diskdevice_type
DISKDEVICE
{
	char    *device;
	int	major;
	int	diskno;
	int	clock[60*15];
	double	read_io_ops[60*15];
	double	blks_read[60*15];
	double	write_io_ops[60*15];
	double	blks_write[60*15];
};

void	collect_stats_diskdevices(FILE *outfile);
*/
#endif