diff options
author | sasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-02-16 11:10:48 +0000 |
---|---|---|
committer | sasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-02-16 11:10:48 +0000 |
commit | b85b92cbf8dd6626e391efc3643de15ea7bae8ce (patch) | |
tree | 79783914144c2b2383574552f18a5f41121e90ee /include | |
parent | 7f3c4b75b989aa9218908862db0af4233d1c009b (diff) | |
download | zabbix-b85b92cbf8dd6626e391efc3643de15ea7bae8ce.tar.gz zabbix-b85b92cbf8dd6626e391efc3643de15ea7bae8ce.tar.xz zabbix-b85b92cbf8dd6626e391efc3643de15ea7bae8ce.zip |
- [DEV-109] Server changes
git-svn-id: svn://svn.zabbix.com/trunk@5359 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'include')
-rw-r--r-- | include/zbxserver.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/include/zbxserver.h b/include/zbxserver.h new file mode 100644 index 00000000..d1c49be4 --- /dev/null +++ b/include/zbxserver.h @@ -0,0 +1,41 @@ +/* +** 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_FUNCTIONS_H +#define ZABBIX_FUNCTIONS_H + +#include "common.h" +#include "comms.h" +#include "db.h" +#include "sysinfo.h" + +#define MACRO_TYPE_TRIGGER_DESCRIPTION 1 +#define MACRO_TYPE_MESSAGE_SUBJECT 2 +#define MACRO_TYPE_MESSAGE_BODY 4 +#define MACRO_TYPE_TRIGGER_EXPRESSION 5 + +void update_triggers (zbx_uint64_t itemid); +void update_functions(DB_ITEM *item); +void process_new_value(DB_ITEM *item, AGENT_RESULT *value); +void proxy_process_new_value(DB_ITEM *item, AGENT_RESULT *value); + +void substitute_simple_macros(DB_EVENT *event, DB_ACTION *action, char **data, int macro_type); +void substitute_macros(DB_EVENT *event, DB_ACTION *action, char **data); + +#endif |