diff options
author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-07-12 09:14:46 +0000 |
---|---|---|
committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-07-12 09:14:46 +0000 |
commit | 8a9f232945f6ec241470513933baf6d72d256a06 (patch) | |
tree | 01c03798a9850c55f88a3e34db706a8786040482 /src/zabbix_agent/interfaces.h | |
parent | 62918b434f4f3c809505715d1d92c402110ab230 (diff) | |
download | zabbix-8a9f232945f6ec241470513933baf6d72d256a06.tar.gz zabbix-8a9f232945f6ec241470513933baf6d72d256a06.tar.xz zabbix-8a9f232945f6ec241470513933baf6d72d256a06.zip |
zabbix-1.2_dev integration
git-svn-id: svn://svn.zabbix.com/trunk@3038 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/zabbix_agent/interfaces.h')
-rw-r--r-- | src/zabbix_agent/interfaces.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/zabbix_agent/interfaces.h b/src/zabbix_agent/interfaces.h index 75eb723f..0b72074f 100644 --- a/src/zabbix_agent/interfaces.h +++ b/src/zabbix_agent/interfaces.h @@ -20,6 +20,25 @@ #ifndef ZABBIX_INTERFACES_H #define ZABBIX_INTERFACES_H + +#define MAX_INTERFACE (16) + +typedef struct s_single_interface_data +{ + char *name; + int clock[60*15]; + float sent[60*15]; + float received[60*15]; +} ZBX_SINGLE_INTERFACE_DATA; + +typedef struct s_interfaces_data +{ + ZBX_SINGLE_INTERFACE_DATA intfs[MAX_INTERFACE]; +} ZBX_INTERFACES_DATA; + +void collect_stats_interfaces(ZBX_INTERFACES_DATA *pinterfaces); + +/* #define MAX_INTERFACE 16 #define INTERFACE struct interface_type @@ -32,5 +51,5 @@ INTERFACE }; void collect_stats_interfaces(FILE *outfile); - +*/ #endif |