~ubuntu-dev/ubuntu/lucid/zabbix/lucid-201002110857

« back to all changes in this revision

Viewing changes to include/db.h

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2008-06-04 09:22:37 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080604092237-zgwq7kmraj1oohoz
Tags: 1:1.4.5-1ubuntu1
* Merge from debian unstable, remaining changes: 
  + fixing missing pid directory in /var/run
* Added the same patch to debian/zabbix-server-{mysql,pgsql}.zabbix-server.init
  (LP: #172775)

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
extern  int     CONFIG_NODEID;
37
37
extern  int     CONFIG_MASTER_NODEID;
38
38
extern  int     CONFIG_NODE_NOHISTORY;
 
39
extern  int     CONFIG_REFRESH_UNSUPPORTED;
39
40
 
40
41
typedef enum {
41
42
        GRAPH_TYPE_NORMAL = 0,
103
104
#define MAX_HOST_HOST_LEN       64
104
105
 
105
106
#define MAX_ITEM_KEY_LEN        255
106
 
#define MAX_ITEM_IP_LEN         15
 
107
#define MAX_ITEM_IP_LEN         39
107
108
#define MAX_ITEM_SNMP_COMMUNITY_LEN     64
108
109
#define MAX_ITEM_SNMP_OID_LEN   255
109
110
 
124
125
#define HOST_HOST_LEN_MAX               HOST_HOST_LEN+1
125
126
#define HOST_DNS_LEN                    64
126
127
#define HOST_DNS_LEN_MAX                HOST_DNS_LEN+1
127
 
#define HOST_IP_LEN                     15
 
128
#define HOST_IP_LEN                     39
128
129
#define HOST_IP_LEN_MAX                 HOST_IP_LEN+1
129
130
#define HOST_ERROR_LEN                  128
130
131
#define HOST_ERROR_LEN_MAX              HOST_ERROR_LEN+1
495
496
int     DBupdate_item_status_to_notsupported(zbx_uint64_t itemid, char *error);
496
497
int     DBadd_trend(zbx_uint64_t itemid, double value, int clock);
497
498
int     DBadd_history(zbx_uint64_t itemid, double value, int clock);
498
 
int     DBadd_history_log(zbx_uint64_t itemid, char *value, int clock, int timestamp, char *source, int severity);
 
499
int     DBadd_history_log(zbx_uint64_t id, zbx_uint64_t itemid, char *value, int clock, int timestamp, char *source, int severity);
499
500
int     DBadd_history_str(zbx_uint64_t itemid, char *value, int clock);
500
501
int     DBadd_history_text(zbx_uint64_t itemid, char *value, int clock);
501
502
int     DBadd_history_uint(zbx_uint64_t itemid, zbx_uint64_t value, int clock);