blob: f0ba12201221ede84f484d09e5ef97aa27a105d9 (
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
64
65
66
67
68
69
70
71
72
73
|
#ifndef ZABBIX_SYSINFO_H
#define ZABBIX_SYSINFO_H
/* #define TEST_PARAMETERS */
void process(char *command, char *value);
void add_user_parameter(char *key,char *command);
void test_parameters(void);
float getPROC(char *file,int lineno,int fieldno);
float BUFFERSMEM(void);
float CACHEDMEM(void);
float CKSUM(const char * filename);
float FILESIZE(const char * filename);
float DISKFREE(const char * mountPoint);
float DISKTOTAL(const char * mountPoint);
float DISK_IO(void);
float DISK_RIO(void);
float DISK_WIO(void);
float DISK_RBLK(void);
float DISK_WBLK(void);
float FREEMEM(void);
float INODE(const char * mountPoint);
float INODETOTAL(const char * mountPoint);
float KERNEL_MAXPROC(void);
float KERNEL_MAXFILES(void);
float NETLOADIN1(char *interface);
float NETLOADIN5(char *interface);
float NETLOADIN15(char *interface);
float NETLOADOUT1(char *interface);
float NETLOADOUT5(char *interface);
float NETLOADOUT15(char *interface);
float PING(void);
float SHAREDMEM(void);
float TOTALMEM(void);
float PROCCNT(const char *procname);
float PROCCOUNT(void);
float PROCLOAD(void);
float PROCLOAD5(void);
float PROCLOAD15(void);
float SWAPFREE(void);
float SWAPTOTAL(void);
float TCP_LISTEN(const char *porthex);
float UPTIME(void);
float EXECUTE(char *command);
char *EXECUTE_STR(char *command);
char *VERSION(void);
float CHECK_SERVICE(char *service);
/*float CHECK_SERVICE_SSH(void);
float CHECK_SERVICE_SMTP(void);
float CHECK_SERVICE_FTP(void);
float CHECK_SERVICE_HTTP(void);
float CHECK_SERVICE_POP(void);
float CHECK_SERVICE_NNTP(void);
float CHECK_SERVICE_IMAP(void);*/
float CHECK_PORT(char *ip_and_port);
#define COMMAND struct command_type
COMMAND
{
char *key;
float (*function)();
char *(*function_str)();
char *parameter;
};
#endif
|