Age | Commit message (Collapse) | Author |
|
|
|
ssh://git.zabbix.lan:7999/zbx/zabbix into feature/ZBXNEXT-6452-5.3
|
|
|
|
|
|
|
|
|
|
__thread attribute when not building agent2
* commit '7f7970126f09818d4567acd2d7a91ec7a0b71106':
.D........ [ZBX-16998] added changelog entry
.......... [ZBX-16998] fixed agent2 build on windows
...G...... [ZBX-16998] removed __thread usage when building only C targets
(cherry picked from commit 75ea8679f05b892a9d09c6ba5fe3ecb9b47e332f)
|
|
|
|
|
|
|
|
precision values
|
|
|
|
* commit '5993831f9e917e3662b33d316aa7dabe080699bd':
...G...PS. [ZBX-17036] moved definition of ssize_t from comms.h to zbxtypes.h
(cherry picked from commit 476f3654adbfa6acfadaee5ef7d1c4cf85047e79)
(cherry picked from commit c9e57322d926b4bda906adec5dee49405765ef0c)
|
|
issues reported by coverity
(cherry picked from commit bf337f81a54f0268dda50ebf564e8dbf5e6ebdf8)
|
|
* commit 'cd4b612bd0aebc907199a109b69a04d4fcf2e6da':
...G...... [DEV-1404] the message improvement
...G...... [DEV-1404] the error message improvement
...G...... [DEV-1404] check gcc support of __thread keyword
(cherry picked from commit 44aa94c85725bf40d9c4abce0686bfb4b203880d)
|
|
* commit '636b601d1dec2d9b3bf4d423877c0477ba7a7fe0': (39 commits)
.......... [ZBXNEXT-5609] fixed coding style
.......... [ZBXNEXT-5609] added changelog entry
.......... [DEV-1333] fixed compilation on windows
.......... [DEV-1333] removed unused function
.......... [DEV-1333] fixed log monitoring crash
.......... [DEV-1333] added empty scheduler update when host is disabled
.......... [DEV-1333] removed mtime from eventlog result
.......... [DEV-1333] fixed version remote command format
.......... [DEV-1333] fixed 64 bit architecture setting
.......... [DEV-1333] added compile date/time/os/arch variable support
.......... [DEV-1333] fixed logrt not working on windows due to file being opened in text mode instead of binary and path separator being unix style
.......... [DEV-1333] reworked windows command execution to use undocumented (but widely used) NtResumeProcess() function from ntdll.dll
.......... [DEV-1333] fixed logrt on windows
.......... [DEV-1333] added application starting directory as default location for agent configuration file on windows
.......... [DEV-1333] added current directory as default location for agent configuration file on windows
.......... [DEV-1333] added comment, minor refactoring
.......... [DEV-1333] removed global system.run related configuration settings
.......... [DEV-1333] fixed command execution on 32 bit windows, added check for process exit code as a workaround for race condition when started process finished before a job is assigned
.......... [DEV-1333] fixed not to support PID file on Windows
.......... [DEV-1333] fixed not to support PID file on Windows
...
(cherry picked from commit 014f43c2a00bf7286c70cd14ecc1cddfa9254e6e)
|
|
|
|
|
|
|
|
time_t-type values (issue 2)
|
|
|
|
|
|
|
|
stronger type safety and new class of warnings
|
|
|
|
is_uint_n_range() calls
|
|
uint32_t
|
|
|
|
ZBX-1916 in dbconfig.c)
|
|
ZBX_IS_TOP_BIT_SET macro
|
|
|
|
|
|
improved portability of ssize_t output
|
|
forced 8 byte alignment during collector initialization instead
|
|
|
|
|
|
[merge ^/branches/2.2 -c r48076]
|
|
Windows string functions; replaced calls to zbx redefinitions with Windows ones
|
|
with symlinks
[merge ^/branches/2.2 -c r44213]
|
|
...G...PS. [ZBX-6731] faster processing of log files by agent on Unix
...G...PS. [ZBX-6729] faster processing of log files by agent on Microsoft Windows
The main goal of the change is to improve performance (less time, fewer system calls,
less CPU usage) of active checks for log[] and logrt[] items. Platform specific methods
like GNU/Linux "i-notify" are not used.
Please note that this change does not modify limits on maximum number of log file records
checked in one check and number of matching records sent to server in one check.
Before this change:
- new log file records were read record-by-record, reading of each record involved opening,
seeking, reading and closing of the log file.
- zbx_regexp() and regexp_sub() compiled a regular expression every time,
- for logrt[] items file mask regular expression was compiled for every file in a check.
The log files were selected first by regular expression (file mask), then by last mtime.
- due to a bug the log[] item does not go into NOTSUPPORTED state when the log file is not accessible.
After this change:
- new log file records are read into 256 kB buffer in one operation, then a regular
expression is applied to every record in the buffer and matching records are sent
to Zabbix server. No repetitive file opening, seeking for every record.
- zbx_regexp() and regexp_sub() compile a regular expresion and rememeber it.
This increases performance if the same regular expression is used several times in
a row (e.g. for matching log file records). This affects also server and proxy.
- for logrt[] items file mask regular expression is compiled only once in a check.
The log files are selected first by the last mtime, then by regular expression (file mask)
to improve performance.
- if the log file is not accessible, the log[] item goes into NOTSUPPORTED state.
- Zabbix agent detects oversized log file records (longer than 256 kB). Only the first 256 kB
are matched against the regular expression and the rest of the record is ignored.
- a new Zabbix datatype "zbx_offset_t" and a new function "zbx_lseek()" is added
to encapsulate "lseek()" differences between UNIX/GNU/Linux and Microsoft Windows,
- The Make files for "zabbix_get" and "zabbix_sender" on Microsoft Windows do not include
src/libs/zbxcommon/file.c anymore.
|
|
[merge from branches/dev/ZBX-7109-22, r41984]
|
|
by the low-level discovery rule
[merge from branches/dev/ZBX-7109-22]
|
|
|
|
Zabbix server
|
|
This allows shared memory allocation of 4GB and more (current
hard limit is set to 64GB).
Also added 'allow out of memory' mode. If shared memory is created
with allow_oom flag, then out of memory situation is not treated
as critical failure and memory allocators return NULL instead of
aborting execution.
|
|
|
|
|
|
|
|
|
|
The uint64 trends summs the item values and calculates average value when
flushing trends. To avoid 64 bit overlowing issues 128 bit operations
were added.
|