[ZBX-4564] change Zabbix daemons priority on Linux Created: 2012 Jan 19 Updated: 2017 May 30 Resolved: 2012 Jan 26 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G), Proxy (P), Server (S) |
Affects Version/s: | None |
Fix Version/s: | 1.8.11, 1.9.9 (beta) |
Type: | Incident report | Priority: | Major |
Reporter: | Oleksii Zagorskyi | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
Description |
All zabbix daemons start with priority "5" as hardcoded in the sources. Would be nice to remove this code, which allows to control priority at init scripts level. #ifdef HAVE_SYS_RESOURCE_SETPRIORITY |
Comments |
Comment by Alexei Vladishev [ 2012 Jan 19 ] |
I think we should remove this code as suggested. I am working on it. |
Comment by Alexei Vladishev [ 2012 Jan 24 ] |
Fixed in dev branch branches/dev/ <zalex> Agent and Server of dev branch tested. All is fine. Seems ready to code review and merge. |
Comment by Alexander Vladishev [ 2012 Jan 25 ] |
Great! Tested successfully! |
Comment by Alexei Vladishev [ 2012 Jan 26 ] |
Implemented in revision 25024. |
Comment by Oleksii Zagorskyi [ 2012 Jan 26 ] |
Note: Fixed in pre-1.8.11 r25022, pre-1.9.9 r25023 |
[ZBX-4535] zabbix - FTBFS with ld --as-needed Created: 2012 Jan 11 Updated: 2017 May 30 Resolved: 2012 Jan 28 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G), Server (S) |
Affects Version/s: | 1.8.9, 1.8.10 |
Fix Version/s: | 1.8.11, 1.9.9 (beta) |
Type: | Incident report | Priority: | Blocker |
Reporter: | Leo Iannacone | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Ubuntu Dev Precise (12.04) |
Attachments: | fix-ftbfs-ld-as-needed.patch | ||||||||||||||||
Issue Links: |
|
Description |
Dear developers, zabbix fail to build with flag "ld --as-needed" enabled (as set in Ubuntu), trying to add LDAP and POSTGRESQL LIBS during compilation in the wrong place. Snippet from build fail about zabbix_agent and LDAP: Snippet from build fail about zabbix_server and POSTGRESQL: The attached patch fixes both problems, it moves '-lldap -llber' into LDAP_LIBS (exporting it and using in configure.in) and '-lpq' into POSTGRESQL_LIBS as well (already exported and defined into configure.in). Can you kindly consider to apply this patch? Thanks, Leo. |
Comments |
Comment by Alexander Vladishev [ 2012 Jan 28 ] |
Fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-4535 |
Comment by Oleksii Zagorskyi [ 2012 Jan 29 ] |
Just for record: as I see this dev branch already includes fix from |
Comment by dimir [ 2012 Jan 30 ] |
Great fix! Even more order in our autoconfiguration process! Just tiny formatting change in r25079. <Sasha> CLOSED |
Comment by Alexander Vladishev [ 2012 Jan 30 ] |
Fixed in versions pre-1.8.11 r25085 and pre-1.9.9 r25087. |
[ZBX-4526] trigger checks only first 256 chars of item value Created: 2012 Jan 09 Updated: 2017 May 30 Resolved: 2012 Jan 12 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Documentation (D), Server (S) |
Affects Version/s: | 1.8.10 |
Fix Version/s: | 1.8.11, 1.9.9 (beta) |
Type: | Incident report | Priority: | Critical |
Reporter: | Pavel | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | triggers | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Tested on Linux. |
Attachments: | zbx-4526-item-screenshot.jpg |
Description |
If I use trigger " {hostname:web.get.page[site].str(substr)}" then substring found only if it occurs in the first 256 (not sure) bytes of value including http header. <1& {hostname:web.page.regexp[site,,,substr].count(#2,"substr","eq")}<1 |
Comments |
Comment by richlv [ 2012 Jan 09 ] |
might be another items.lastvalue manifestation (although i can't find the previous issues on this right now) |
Comment by Alexander Vladishev [ 2012 Jan 11 ] |
what database are you using? |
Comment by Alexander Vladishev [ 2012 Jan 11 ] |
Cannot reproduce with PostgreSQL. Check a structure of a 'items' table. Size of fields 'lastvalue' and 'prevvalue' should be 255. |
Comment by Pavel [ 2012 Jan 11 ] |
Mysql. |
Comment by Pavel [ 2012 Jan 12 ] |
Is it possible that it depends of 8-bit value? <1" and " {happy.kiev.ua:web.page.get[fidonet.org.ua].str("sysopka")}<1" returns problem, but " {happy.kiev.ua:web.page.get[fidonet.org.ua].str("DOCTYPE",#2)}<1" returns OK. |
Comment by Alexander Vladishev [ 2012 Jan 12 ] |
Please attach screenshot of "web.page.get[fidonet.org.ua]" item configuration. |
Comment by Pavel [ 2012 Jan 12 ] |
web.page.get[fidonet.org.ua] item configuration |
Comment by Alexander Vladishev [ 2012 Jan 12 ] |
Confirmed: The given problem happens if in the first 255 characters is present the CR (0х13) character. |
Comment by Alexander Vladishev [ 2012 Jan 12 ] |
Fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-4526 |
Comment by Alexander Vladishev [ 2012 Jan 12 ] |
The priority is changed to the "Critical". |
Comment by dimir [ 2012 Jan 13 ] |
Successfully tested. Please fix ChangeLog message, it contains typo. |
Comment by Alexander Vladishev [ 2012 Jan 13 ] |
Fixed in version pre-1.8.11, revision 24752. |
[ZBX-4507] Action not removing host from group "Discovered Hosts" Created: 2012 Jan 03 Updated: 2017 May 30 Resolved: 2012 Jan 25 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 1.8.8, 1.8.9, 1.8.10 |
Fix Version/s: | 1.8.11, 1.9.9 (beta) |
Type: | Incident report | Priority: | Major |
Reporter: | Attilla de Groot | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | actions, discovery | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Linux, Debian |
Attachments: | Screen Shot 2012-01-03 at 3.50.13 PM.png Screen Shot 2012-01-03 at 3.50.46 PM.png Screen Shot 2012-01-03 at 4.04.38 PM.png |
Description |
Hi, I've created a discovery rule that discovers switches on our platform and attaches templates to the hosts based on the snmp result. I'm also adding a host to the appropriate host group based on the result of one of the snmp discovery rules. This all works fine, except for the removal from the Discovered Hosts group. I'd like to keep this host group clear from already discovered hosts, but that seems to be impossible or simply not work. As you can see in the attached screenshot, I created a separate action to remove a host from the discovered hosts group, but that doesn't seem to work. I also tried to just add the removal operation to one of the three separate actions, but the also doesn't work. There are no logs to debug, but I'm guessing that the delete action is being processed before the "add to hostgroup" action. This would result in a host being without a host group and probably not possible. I'm guessing this because the delete action is put in the list first when I'm adding the operation to one of the the separate actions. It would be very helpful if this is solved. |
Comments |
Comment by Oleksii Zagorskyi [ 2012 Jan 04 ] |
Discovery can work very slow for big IP addresses range with so big count of checks and many of unavailable hosts. |
Comment by Attilla de Groot [ 2012 Jan 04 ] |
I'm aware of that, but I have this configuration for about 6 months now. So I think that is more than enough waiting. If you have a better way of configuring the discovery, please tell me. |
Comment by Alexander Vladishev [ 2012 Jan 11 ] |
Confirmed: We always add discovered host to group "Discovered hosts". |
Comment by Attilla de Groot [ 2012 Jan 16 ] |
That is a good thing. But I'd like to remove it again. Because it also shows up as a host group with errors on the dashboard for example. |
Comment by Alexander Vladishev [ 2012 Jan 18 ] |
Fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-4507 |
Comment by dimir [ 2012 Jan 20 ] |
It's interesting how I finally managed to reproduce the problem only when I split "add host" and "remove from discovered hosts" operations into 2 different actions. Within one action I wasn't able to reproduce it. Yes, but it's true that server was adding the host back to group every time "add host" operation was executed. |
Comment by dimir [ 2012 Jan 23 ] |
Tested. Please review my changes in r24932, r24933. <Sasha> CLOSED |
Comment by Alexander Vladishev [ 2012 Jan 24 ] |
Fixed in version pre-1.8.11, revision 24989. |
Comment by Oleksii Zagorskyi [ 2012 Jan 25 ] |
Just a note: Fixed in version pre-1.9.9, revision 24993 too. |
[ZBX-4479] it is possible to add a dependency from a template to a host Created: 2011 Dec 22 Updated: 2017 May 30 Resolved: 2012 Jan 05 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F), Server (S) |
Affects Version/s: | 1.9.8 (beta) |
Fix Version/s: | 1.9.9 (beta) |
Type: | Incident report | Priority: | Blocker |
Reporter: | richlv | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | dependencies, triggers | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
Description |
in current trunk it is possible to add dependency from template trigger to a host trigger. it is an accidental change, and it is not known whether server will operate properly this way. it should be decided whether this is allowed - if it is, it would solve if not, this should be prevented. |
Comments |
Comment by richlv [ 2012 Jan 04 ] |
(1) rev 24503 did : is suspect this might not match the coding stye
<richlv> CLOSED |
Comment by Pavels Jelisejevs (Inactive) [ 2012 Jan 04 ] |
Server side TESTED. |
Comment by richlv [ 2012 Jan 05 ] |
for the record, this is supposed to allow template triggers to depend on host triggers and should also fulfill |
Comment by richlv [ 2012 Jan 05 ] |
(2) this should be documented in the trigger dependency docs http://www.zabbix.com/documentation/2.0/manual/config/triggers/dependencies <Sasha> Rich, thanks! CLOSED |
Comment by dimir [ 2012 Jan 05 ] |
Tested, somebody should review my changes in r24536 and r24547 and then it can be merged into upstream. <Sasha> CLOSED |
Comment by Alexander Vladishev [ 2012 Jan 05 ] |
Available in version pre-1.9.9, rev. 24570. |
Comment by Oleksii Zagorskyi [ 2012 Jan 05 ] |
Reopened to remove 2.0 from "Fix version" |
Comment by Oleksii Zagorskyi [ 2012 Jan 05 ] |
Closed again. |
[ZBX-4424] Handling of the log of long Japanese Created: 2011 Dec 08 Updated: 2017 May 30 Resolved: 2011 Dec 11 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G), Server (S) |
Affects Version/s: | 1.8.8, 1.8.9 |
Fix Version/s: | 1.8.10, 1.9.9 (beta), 2.0.0 |
Type: | Incident report | Priority: | Blocker |
Reporter: | suzuka | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | items, localization | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
RHEL CentOS 5.6, 6.0 Postgresql-8.4.7 |
Description |
I am monitoring Windows EventLog. When Zabbix Server receives the log of 255 or more Japanese characters(512 bytes or more ?), an error is outputted and data is not registered. This problem occurs in zabbix1.8.8 and 1.8.9 and it does not coour in 1.8.7 and 1.8.6. I guess that there is a problem in handling of the Japanese character after 255 character in 1.8.8 or later. The following is a log when I test. 1) Zabbix v1.8.8 [pg_log] 2011-12-08 11:06:03 JST: 4352: LOG: duration: 0.480 ms statement: insert into alerts (alertid,actionid,eventid,userid,clock,mediatypeid,sendto,subject,message,status,alerttype,esc_step) values (4703,4,40420,3,1323309963,4,'sasaki@localhost','[????] Error is output to ApplicationLog on Windows2008: PROBLEM','????????????? Error is output to ApplicationLog on Windows2008: PROBLEM ',0,0,0) [zabbix_server.log] none 2) Zabbix v1.8.8 [pg_log] 2011-12-08 11:10:32 JST: 4354: ERROR: invalid byte sequence for encoding "UTF8": 0xe32720 2011-12-08 11:10:32 JST: 4354: ERROR: current transaction is aborted, commands ignored until end of transaction block [zabbix_server.log] 3688:20111208:111032.678 [Z3005] query failed: [0] PGRES_FATAL_ERROR:ERROR: invalid byte sequence for encoding "UTF8": 0xe32720 3) Zabbix v1.8.7 [pg_log] 2011-12-08 11:34:34 JST: 5504: LOG: duration: 0.747 ms statement: insert into alerts (alertid,actionid,eventid,userid,clock,mediatypeid,sendto,subject,message,status,alerttype,esc_step) values (4705,4,40681,3,1323311674,4,'sasaki@localhost','[????] Error is output to ApplicationLog on Windows2008: PROBLEM','????????????? Error is output to ApplicationLog on Windows2008: PROBLEM ',0,0,0) [zabbix_server.log] none 4) Zabbix v1.8.7 [pg_log] 2011-12-08 11:38:05 JST: 5504: LOG: duration: 0.764 ms statement: insert into alerts (alertid,actionid,eventid,userid,clock,mediatypeid,sendto,subject,message,status,alerttype,esc_step) values (4706,4,40682,3,1323311885,4,'sasaki@localhost','[????] Error is output to ApplicationLog on Windows2008: PROBLEM','????????????? Error is output to ApplicationLog on Windows2008: PROBLEM ',0,0,0) [zabbix_server.log] none |
Comments |
Comment by Alexander Vladishev [ 2011 Dec 11 ] |
Fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-4424 |
Comment by dimir [ 2011 Dec 12 ] |
Please review my changes in r23928. <Sasha> Great! CLOSED |
Comment by Alexander Vladishev [ 2011 Dec 13 ] |
Fixed in version pre-1.8.10, revision 23950. |
[ZBX-4418] zabbix_server [98798]: ERROR [file:db.c,line:1464] Something impossible has just happened. Created: 2011 Dec 05 Updated: 2017 May 30 Resolved: 2011 Dec 09 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 1.9.8 (beta) |
Fix Version/s: | 1.9.9 (beta), 2.0.0 |
Type: | Incident report | Priority: | Blocker |
Reporter: | Danilo Chilene | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | events, sql | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
FreeBSD srv-zabbix01.trendeiras 8.2-RELEASE-p4 FreeBSD 8.2-RELEASE-p4 #5: Mon Dec 5 07:57:08 BRST 2011 [email protected]:/usr/obj/usr/src/sys/TREND amd64 FreeBSD inside vmware, typical instalation. (root@srv-zabbix01 - ~ @14:29:40) ./configure --prefix=/usr/local --sysconfdir=/usr/local/etc/zabbix --enable-server --enable-agent --with-mysql --with-libcurl --with-net-snmp --with-ssh2 --with-ldap --with-openipmi |
Description |
Strange behavior of log /tmp/zabbix_server.log Below the error: 98798:20111205:143001.507 [Z3005] query failed: [1690] BIGINT UNSIGNED value is out of range in '(`zabbix`.`ids`.`nextid` + -(5256))' [update ids set nextid=nextid+-5256 where nodeid=0 and table_name='events' and field_name='eventid'] |
Comments |
Comment by Alexander Vladishev [ 2011 Dec 09 ] |
Fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-4418 |
Comment by dimir [ 2011 Dec 12 ] |
Tested. |
Comment by Alexander Vladishev [ 2011 Dec 12 ] |
Fixed in version pre-1.9.9, revision 23920. |
[ZBX-4404] MaxHousekeeperDelete max-value is wrong either in the default zabbix_server.conf or zabbix_server/server.c Created: 2011 Nov 29 Updated: 2017 May 30 Resolved: 2012 Jan 05 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 1.8.8 |
Fix Version/s: | 1.8.11, 1.9.9 (beta) |
Type: | Incident report | Priority: | Minor |
Reporter: | René | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | trivial | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Centos |
Issue Links: |
|
Description |
In zabbix_server.conf the range-example for MaxHousekeeperDelete does not match with the max value set in zabbix_server.c zabbix_server.conf
vs #zabbix_server/server.c , |
Comments |
Comment by Alexei Vladishev [ 2011 Nov 29 ] |
Thanks for reporting this. It should be fixed. |
Comment by Alexander Vladishev [ 2012 Jan 05 ] |
Fixed the default zabbix_server.conf in version pre-1.8.11, r24572. |
[ZBX-4376] Quoted spec symbols in lld via proxy Created: 2011 Nov 22 Updated: 2017 May 30 Resolved: 2012 Feb 21 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Proxy (P), Server (S) |
Affects Version/s: | 1.9.8 (beta) |
Fix Version/s: | 1.8.10, 1.9.9 (beta) |
Type: | Incident report | Priority: | Blocker |
Reporter: | Alexey Pustovalov | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | trivial | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: | item_prototypes.png items.png |
Description |
24917:20111122:233650.539 In DCmass_proxy_add_history() "{#SNMPVALUE}":"GigabitEthernet0 /10"}, { "{#SNMPINDEX} ":10111, ":"GigabitEthernet0 and we have incorrect item key in zabbix server. Ex.: |
Comments |
Comment by Alexander Vladishev [ 2011 Nov 30 ] |
It's normal. All low level discovery data is stored and processed in JSON format. Slashes (/) in JSON strings should be escaped. (www.json.org) Please attach a screenshot, if you have a problem with LLD. |
Comment by Alexey Pustovalov [ 2011 Dec 01 ] |
screenshots |
Comment by Alexander Vladishev [ 2011 Dec 01 ] |
What database you are using on server and proxy side? |
Comment by Alexander Vladishev [ 2011 Dec 01 ] |
Confirmed, when using mysql on proxy side. |
Comment by Alexander Vladishev [ 2011 Dec 01 ] |
Could repeat only once. After setting additional debug-information in the code and compilation of a proxy the problem hasn't repeated. Try to recompile a proxy too using these commands: ./bootstrap.sh |
Comment by Alexey Pustovalov [ 2011 Dec 01 ] |
problem remains with last trunk proxy on PostgreSQL. |
Comment by Alexey Pustovalov [ 2011 Dec 01 ] |
on debian with mysql the problem hasn't repeated. |
Comment by Alexander Vladishev [ 2011 Dec 01 ] |
Fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-4376 |
Comment by Alexey Pustovalov [ 2011 Dec 01 ] |
working. Thanks |
Comment by dimir [ 2011 Dec 01 ] |
Do we really want to "set standard_conforming_strings to off;" ? |
Comment by Alexander Vladishev [ 2011 Dec 01 ] |
You are right! It is the bad idea. In version PostgreSQL 8.1 this variable only for reading. I re-open this problem for finishing. |
Comment by Alexander Vladishev [ 2011 Dec 01 ] |
Has been fixed by another way. Please retest r23707. |
Comment by dimir [ 2011 Dec 02 ] |
I like it! |
Comment by Alexander Vladishev [ 2011 Dec 02 ] |
Fixed in version pre-1.9.9, revision 23728. Backported to pre-1.8.10, revision 23729. |
Comment by richlv [ 2014 Jan 30 ] |
note that json standard does not require escaping of slashes (only doublequotes and backslashes). from http://www.ietf.org/rfc/rfc4627.txt : "All Unicode characters may be placed within the quotation marks except for the characters that must be escaped: quotation mark, reverse solidus, and the control characters (U+0000 through U+001F)."
|
[ZBX-4298] No messages in the LEVEL_WARNING log about deleted values by housekeeper (table "housekeeper") Created: 2011 Oct 31 Updated: 2017 May 30 Resolved: 2011 Dec 19 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 1.8.8 |
Fix Version/s: | 1.8.10, 1.8.11, 1.9.9 (beta) |
Type: | Incident report | Priority: | Minor |
Reporter: | Oleksii Zagorskyi | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | housekeeper | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
DebugLevel=3 |
Description |
When zabbix_server works with the DebugLevel=3 it reports to the log this message: But here are not included values deleted by housekeeper for the items already deleted from configuration (table "housekeeper"). Try to imagine a situation when some user has performed "Unlink and clear" action with some big template linked to the several hosts and in the nearest hour he felt some problem with the DB performance and he thinks - what happened ? Here is part of DebugLevel=4 (I added several EOL for better view): 15500:20111031:150250.029 End of housekeeping_history_and_trends():0 15500:20111031:150250.029 Deleted 0 records from history and trends 15500:20111031:150250.029 In housekeeping_process_log() 15500:20111031:150250.029 query [txnlev:0] [delete from history where itemid=22578 limit 100] 15500:20111031:150250.044 query without transaction detected 15500:20111031:150250.044 query [txnlev:0] [delete from history_uint where itemid=22577 limit 100] 15500:20111031:150250.060 End of housekeeping_process_log():SUCCEED 15500:20111031:150250.060 In housekeeping_alerts() now:1320062561 15500:20111031:150250.060 In housekeeping_sessions() now:1320062561 (in this example "MaxHousekeeperDelete=100") As you see in the function "housekeeping_process_log()", where the values are deleted from the tables history, history_uint (and not only), no messages are added for the LOG_LEVEL_WARNING. I ask to add these messages to log. Maybe individually per each table, maybe summarize history+trends, I don't know how is better. If any such values were not deleted then needn't to report any messages. |
Comments |
Comment by Oleksii Zagorskyi [ 2011 Oct 31 ] |
(1) By the way, the name of function "housekeeping_process_log()" seems is not optimal. I suggest to change it to "housekeeping_process_deleted_items()" or similar. <dimir> I chose housekeeping_cleanup(), RESOLVED in r23553 <zalex> Excellent ! CLOSED |
Comment by dimir [ 2011 Nov 25 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-4298 |
Comment by dimir [ 2011 Nov 25 ] |
I've chosen "housekeeping_cleanup()", if nobody minds. So the report will look like this: 11921:20111125:180134.824 housekeeper deleted 0 records from history and trends, 28561 records of deleted items, 0 events, 0 alerts and 0 sessions This will be logged on every housekeeper step even if nothing was removed. Agreed with sasha that this way there will will be no questions whether it actually was or not an attempt to delete the data. |
Comment by Oleksii Zagorskyi [ 2011 Nov 27 ] |
Dev branch tested. Works as expected. Single line for report is very-very good. (2) I would suggest to write that line as: <dimir> RESOLVED in r23560 <zalex> Many thanks. CLOSED. |
Comment by dimir [ 2011 Nov 30 ] |
Fixed in pre-1.8.10 r23632, pre-1.9.9 r23633. |
Comment by Alexander Vladishev [ 2011 Nov 30 ] |
(1) Broken compilation of the latest trunk. housekeeper.c: In function ‘housekeeping_cleanup’: <dimir> sorry for the broken trunk, RESOLVED in r23663 directly in trunk <zalex> tested. trunk r23663 compiled ok and it works. <sasha> CLOSED with small change in r23688. |
Comment by richlv [ 2011 Nov 30 ] |
(2) also : <dimir> "Old history and trends" is the outdated information (as configured in the item keep this and that), "records of deleted items" is all the data (basically what's in "housekeeper" table) related to removed item. <zalex> maybe would be better to replace all words "records" to the "values"? It will be more clear. <dimir> For me "deleted 2 values from history and trends" is not more clear than "deleted 2 records from hostory and trends". What I'd add is singular value support. <dimir> if there are no objections, RESOLVED in r23681 <zalex> dev branch r23681 tested. it works (see 1 event): <dimir> We decided to discard these changes as we don't have anything like it anywhere. CLOSED |
Comment by dimir [ 2011 Dec 01 ] |
Oleksiy, thank you for testing! |
Comment by dimir [ 2011 Dec 01 ] |
Fixed in trunk r23663. |
Comment by richlv [ 2011 Dec 01 ] |
(3) i suspect "d_clenup" is a typo <dimir> Right, RESOLVED in pre-1.8.10 r23732, pre-1.9.9 r23733. |
Comment by Alexander Vladishev [ 2011 Dec 02 ] |
Closing resolved issue |
Comment by dimir [ 2011 Dec 02 ] |
Reopening to assign to myself. |
Comment by dimir [ 2011 Dec 02 ] |
Closed. |
Comment by richlv [ 2011 Dec 19 ] |
48 deleted events reported as 1 in 1.8.10rc1 strace output : event_strace.13938:write(6, "$\0\0\0\3delete from events where eventid=11", 40) = 40 |
Comment by Alexander Vladishev [ 2011 Dec 19 ] |
Fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-4298 |
Comment by dimir [ 2011 Dec 19 ] |
Tested successfully. |
Comment by Alexander Vladishev [ 2011 Dec 28 ] |
Available in version pre-1.8.11, r24309. |
[ZBX-4277] First and another errors about snmp Created: 2011 Oct 26 Updated: 2018 Feb 09 Resolved: 2012 Jul 28 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Proxy (P), Server (S) |
Affects Version/s: | 1.9.7 (beta) |
Fix Version/s: | 1.9.9 (beta) |
Type: | Incident report | Priority: | Critical |
Reporter: | Alexey Pustovalov | Assignee: | Unassigned |
Resolution: | Won't fix | Votes: | 0 |
Labels: | snmp | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
lastest rev 22669 |
Description |
i have errors in log zabbix proxy and server: but i don't see in tcpdump queries: apc.BatteryTemperature have oid .1.3.6.1.4.1.318.1.1.1.2.2.2.0 |
Comments |
Comment by richlv [ 2011 Oct 26 ] |
please, attach a screenshot of item configuration. also, you could try snmpget for the oid exactly as it's specified in the item configuration |
Comment by Alexey Pustovalov [ 2011 Oct 26 ] |
time snmpget -v2c -c public c2r3ups01.88.ru .1.3.6.1.4.1.318.1.1.1.2.2.2.0 real 0m0.051s real 0m0.050s real 0m0.051s real 0m0.050s |
Comment by Alexey Pustovalov [ 2011 Oct 26 ] |
item settings |
Comment by Alexey Pustovalov [ 2011 Oct 27 ] |
we checking then the problem and found following relationships: But the problem remains, how affected by the availability of DNS records for hosts with check by ip? |
Comment by Alexei Vladishev [ 2011 Nov 17 ] |
Perhaps SNMP device relies on availability of DNS somehow, say for security checks, audits, something else? |
Comment by Alexey Pustovalov [ 2011 Nov 17 ] |
maybe. I think net-snmp have internal checks,audit... etc. |
Comment by Alexey Pustovalov [ 2012 Jul 28 ] |
I think we can close the issue. |
[ZBX-4262] can't select item prototypes for graph y axis min/max Created: 2011 Oct 21 Updated: 2017 May 30 Resolved: 2011 Dec 05 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F), Server (S) |
Affects Version/s: | None |
Fix Version/s: | 1.9.9 (beta), 2.0.0 |
Type: | Incident report | Priority: | Blocker |
Reporter: | richlv | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | graphs, lld, trivial | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: | r23752-mysqldump.txt r23752-objdump.txt.gz r23752-zabbix-server.log |
Description |
create a graph prototype on an lld rule. try to select an item prototype for y axis min/max - that is not available. this makes creating graphs like "used diskspace projected on a graph going from 0 to total diskspace" impossible |
Comments |
Comment by Pavels Jelisejevs (Inactive) [ 2011 Nov 21 ] |
GUI RESOLVED. |
Comment by dimir [ 2011 Dec 02 ] |
(2) Crash in unreachable poller when processing discovery rule. Attached files: r23752-mysqldump.txt Steps to reproduce: vfs.fs.size[{#FSNAME} ,total]
Frequency: 2/2 (the second time from clean database). <sasha> Thanks for objdump! RESLOVED <dimir> Perfect! CLOSED |
Comment by dimir [ 2011 Dec 05 ] |
Tested successfully. |
Comment by Alexander Vladishev [ 2011 Dec 05 ] |
Available in version pre 1.9.9, revision 23781. |
[ZBX-4024] SQL statements for database initialisation should be run in a transaction Created: 2011 Aug 08 Updated: 2017 May 30 Resolved: 2011 Nov 30 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Proxy (P), Server (S) |
Affects Version/s: | 1.8.6 |
Fix Version/s: | 1.9.9 (beta) |
Type: | Incident report | Priority: | Blocker |
Reporter: | Christoph Haas | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | database, installation | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Debian GNU/Linux "testing". Linux kernel 2.6.38. 64 bit (aka "amd64"). SQLite version 3.7.7. Laptop with Core i7 system with 4 GB of RAM and 128 GB SSD. |
Issue Links: |
|
Description |
The SQL statements used to initialise the database should be encapsulated in a transaction. Current situation: In create/schema/sqlite.sql you use a transaction: BEGIN TRANSACTION; In create/data/data.sql you don't use a transaction: When using SQLite3 this leads to an fsync() call after each INSERT statement. On a decent server with a non-decent file system (ext3 does not handle fsync() correctly) and a decent write-cache this may work. But on my development system I use ext4 with an SSD and populating the SQLite3 database takes over an hour! With ext3 it takes half an hour. When using strace I see that the system is stuck time and again on fsync() calls. Besides this has surely worn down my SSD a lot. I investigated a little and it appears like SQLite is doing the right thing using fsync after each write action. In fact they recommend to use transactions so that only one fsync is happening after the transaction is committed. I changed the create/data/data.sql as follows: BEGIN; This initialises the database within just one second. I researched on MySQL and PostgreSQL and both understand BEGIN and COMMIT (but not "BEGIN TRANSACTION") so it should be safe to use. I cannot test for DB2 and Oracle though. I flagged this issue an "improvement" but in fact it's a serious problem that wastes a lot of time during installation and damages disks. As you just have to add BEGIN and COMMIT this should be simple to fix. |
Comments |
Comment by dimir [ 2011 Aug 22 ] |
The problem is basically Oracle. It doesn't have "BEGIN" thing. So if we want a transactioned data import in SQLite we would have to maintain separate data.sql files and we don't want that. Basically we see the only solution as to note somewhere in the instructions that SQLite users must wrap the data.sql around "BEGIN/COMMIT" manually. <dimir> Here is our suggestion (thanks for an idea to sasha): Here is the debian/rules section to create SQLite db: cat create/schema/sqlite.sql create/data/data.sql create/data/images_sqlite3.sql > $(TMP_SERVER_SQLITE3)/usr/share/dbconfig-common/data/$(PKG_SERVER_SQLITE3)/install/sqlite3 How about just modifying it to: (cat create/schema/sqlite.sql; echo 'BEGIN;'; cat create/data/data.sql create/data/images_sqlite3.sql; echo 'COMMIT;') > $(TMP_SERVER_SQLITE3)/usr/share/dbconfig-common/data/$(PKG_SERVER_SQLITE3)/install/sqlite3 ? <richlv> this will work, but you will probably see higher load from shell (should be ok in this case, but with larger datasets it can be a huge problem) |
Comment by Christoph Haas [ 2011 Aug 22 ] |
Your call. That would mean I'd have to permanently ship a patch with Debian packages. Without that fix an installation time of up to an hour will probably not be considered acceptable for the SQLite3 packages. |
Comment by Alexei Vladishev [ 2011 Oct 26 ] |
Fixed in development branch for Zabbix 2.0. Ready to test. |
Comment by Aleksandrs Saveljevs [ 2011 Oct 28 ] |
(1) Directory "database" is missing proper svn:ignore settings. <alexei> RESOLVED. <asaveljevs> CLOSED |
Comment by Aleksandrs Saveljevs [ 2011 Oct 28 ] |
(2) File "do" in the root directory is hopelessly outdated. Shall we remove it? <asaveljevs> Let's clean up "go" script, too. <alexei> removed both files. RESOLVED. <asaveljevs> CLOSED |
Comment by Aleksandrs Saveljevs [ 2011 Oct 28 ] |
(3) Script gen_php.php does not work anymore: $ php gen_php.php <alexei> RESOLVED <asaveljevs> CLOSED |
Comment by Aleksandrs Saveljevs [ 2011 Oct 28 ] |
(4) Please review r22787 and r22791. The commits are mostly about fixing typos and style inconsistencies. <asaveljevs> In particular, it fixes a typo in ChangeLog: "db data file uses transations now". However, I did not understand what kind of translations are meant. Could you please explain that? Perhaps it is something worth documenting. <richlv> i'd guess it was supposed to be "transactions"... unless this was a clever sarcasm that i fell for, it shows the importance of (not having) typos <alexei> it shows importance of having spell checker built-in vi editor. RESOLVED. <asaveljevs> CLOSED |
Comment by Aleksandrs Saveljevs [ 2011 Oct 28 ] |
(5) Script export_data.sh can only be run from create/src, but it would be nice to be able to run it from any directory. Property svn:ignore would then have to be set up to ignore data.tmpl.new, wherever that is generated. <alexei> Now data.tmpl.new is ignored under create/bin. RESOLVED <asaveljevs> It is still not possible to run export_data.sh from any directory. <asaveljevs> Also, if data.tmpl is located in create/src, why not place data.tmpl.new in that directory, too? <alexei> The file will write data to stdout like other utilities do. Also added help string, proper exit code. It is possible to run it from any directory. RESOLVED <asaveljevs> Still not possible to run from any directory: $ create/bin/export_data.sh issue_zbx_4024 > /dev/null <alexei> I wrongly tested it running from src, bad test. RESOLVED <asaveljevs> Still not possible. For instance, from a directory that contains spaces: $ ZBX\ 4024/create/bin/export_data.sh issue_zbx_4024 | head -10 <alexei> now it works with spaces and hopefully with other special characters as well. RESOLVED <asaveljevs> No, it does not: $ ZBX\ 4024/create/bin/export_data.sh issue_zbx_4024 | head -10 You have not fixed all the places. <alexei> it's a shame! RESOLVED <asaveljevs> Hurray! CLOSED. |
Comment by Aleksandrs Saveljevs [ 2011 Oct 28 ] |
(6) Pipe-delimited approach for data may fail if data itself contains pipes. For instance, this can happen with triggers that use OR in expressions or item keys that use regular expressions. Maybe not now, but in future we will have to take that into account. <richlv> appliance templates already use this (to detect various possible apache or syslog process names) - i'd say that's pretty critical <alexei> RESOLVED <asaveljevs> The following code is wrong: local $line = $_[0]; Replacing of "&pipe;" should be done after splitting $line by pipe characters. <alexei> :-0 RESOLVED <asaveljevs> Looks good. Please review additional changes in r22883. <asaveljevs> Please also take a look at r22893 - it fixes start of transactions in SQLite3. Statements for transactions in IBM DB2 and Oracle will remain empty. <alexei> I like changes in the Perl code, SQLite3 fix is also great. CLOSED. |
Comment by Alexei Vladishev [ 2011 Nov 01 ] |
Fixed issues found during code review and testing. Ready to retest. |
Comment by Aleksandrs Saveljevs [ 2011 Nov 02 ] |
(7) I have updated instructions for Oracle at http://www.zabbix.com/documentation/2.0/manual/installation/install?&#zabbix_database . Since I do not know the current state of <alexei> I found no issues, Oracle instructions look good to me. CLOSED |
Comment by Aleksandrs Saveljevs [ 2011 Nov 15 ] |
(8) Please review the list of tables that should be included by export_data.sh in data.tmpl. <alexei> RESOLVED <asaveljevs> After these changes (actually, before these changes, too), empty tables might appear in data.tmpl. Do we want that? <asaveljevs> I have exported a database with a slide show in it. When trying to import it into a new database, I get the following error: $ mysql -uroot issue_zbx_4024 < database/mysql/data.sql <asaveljevs> Please also review changes in r23222 and r23223. <alexei> The changes are ok to me. I ordered all tables so they match referential integrity constraints. Note that no handling of loop constraints (table1->table2->table1) and self-references (table1->table1) is implemented currently. Now empty tables do not appear in both data.tmpl and schema.tmpl. RESOLVED. <asaveljevs> It would be nice to group tables in schema.tmpl more logically, so that semantically similar table are closer together. For instance, there is no need to keep "trigger_depends" table so far from "triggers" table and "maintenances_*" tables" are very far from "maintenances" table. <alexei> Fixed trigger_depends & triggers. I am afraid of reviewing and moving other tables (look at maintenances*, there are so many constraints attached!), it may break something if not done very carefully. I would leave it as it is, it's really hard to come up with a single "placement principle", who is coming first, etc. <asaveljevs> We have a comment in schema.tmpl that says "-- History tables". Tables "dhosts" and "dservices" are not in that section, although they might be considered history tables. Same for "autoreg_host" and "proxy_autoreg_host". <alexei> RESOLVED <asaveljevs> Also, table "ids" references table "nodes", but comes before it. Same for tables that reference "images" table. <alexei> RESOLVED <asaveljevs> OK, CLOSED for all. <asaveljevs> Please review my changes in r23329. <alexei> I like it. CLOSED. |
Comment by Alexei Vladishev [ 2011 Nov 29 ] |
Resolved in 23584. |
Comment by richlv [ 2011 Nov 30 ] |
reopen to set more precise "fix for" version |
Comment by richlv [ 2011 Nov 30 ] |
see |
Comment by Aleksandrs Saveljevs [ 2012 Dec 04 ] |
SQLite FAQ has a high-level explanation for the reason it took so long without transactions: http://www.sqlite.org/faq.html#q19 . |
[ZBX-3832] mysterios periods_cnt option Created: 2011 May 23 Updated: 2017 May 30 Resolved: 2011 Nov 30 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Documentation (D), Frontend (F), Installation (I), Server (S) |
Affects Version/s: | None |
Fix Version/s: | 1.9.9 (beta), 2.0.0 |
Type: | Incident report | Priority: | Blocker |
Reporter: | richlv | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | codequality, graphs, trivial | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Description |
for custom graph items, there's a periods_cnt db field/option. this option is not documented anywhere and nobody knows what it does. it should either be nuked or properly documented/exposed. |
Comments |
Comment by Pavels Jelisejevs (Inactive) [ 2011 Nov 25 ] |
It has been decided to remove aggregate graph items whatsoever. Please review the update for the trunk GUI in /branches/dev/ |
Comment by richlv [ 2011 Nov 25 ] |
(1) doesn't server also need some updates for graphs it creates from network discovery, active agent auto-registration and low level discovery ? <pavels> Ah, of course it does, sorry. <dimir> CLOSED |
Comment by richlv [ 2011 Nov 26 ] |
(4) documentation must be updated : it should also be noted that this change will have to be reflected when transferring xml docs and possibly others <pavels> RESOLVED. <pavels> CLOSED. |
Comment by Alexander Vladishev [ 2011 Nov 30 ] |
Available in version pre1.9.9, r23639. |
[ZBX-3475] Compilation error --with-sqlite3 on FreeBSD Created: 2011 Jan 28 Updated: 2017 May 30 Resolved: 2012 Jan 30 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 1.9.2 (alpha) |
Fix Version/s: | 1.8.11, 1.9.9 (beta) |
Type: | Incident report | Priority: | Minor |
Reporter: | Oleksii Zagorskyi | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | freebsd | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
FreeBSD8.1 |
Attachments: | ax_lib_sqlite3.m4.diff | ||||||||
Issue Links: |
|
Description |
If i configure --with-sqlite3 then: If i configure --with-sqlite3=/usr/local then: It seems need to improve SQLite3 checking in the different OS. p.s.zabbix_server (--with-sqlite3=/usr/local) starts and works normally with the sqlite3 db-backend. |
Comments |
Comment by Alexei Vladishev [ 2011 Jan 28 ] |
Sorry, but I do not see any issues here. Why blocker? Check for the SQLite3 library is done in exactly the same way as, for example, check for PostgreSQL library. We do not look at any OS specific directories. I am closing it. |
Comment by Oleksii Zagorskyi [ 2011 Jan 30 ] |
he-he, the game is NOT over. I'm not agree that "/usr/local" is a specific directory. It's prefix-path, where installed all software under FreeBSD and maybe not only - i don't know. Okay enough talk, take my very simple patch "ax_lib_sqlite3.m4.diff" A source info here: Well, after figure out of the source code and manuals of auto**** stuff I see that static linking is not provided - and really I can't compile with --enable-static flag. Check it out and apparently it also should to be fixed. |
Comment by Alexei Vladishev [ 2011 Jan 31 ] |
All right, I agree that it shouldn't be closed. Let's keep it open, priority was changed to Minor. |
Comment by Alexander Vladishev [ 2012 Jan 30 ] |
Fixed in versions pre-1.8.11 r25085 and pre-1.9.9 r25087. See |
[ZBX-3286] Ability to automatically/manually delete discovered resources (low level discovery). Created: 2010 Dec 13 Updated: 2017 May 30 Resolved: 2011 Dec 21 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F), Server (S) |
Affects Version/s: | 1.9.1 (alpha) |
Fix Version/s: | 1.9.9 (beta) |
Type: | Incident report | Priority: | Blocker |
Reporter: | Oleksii Zagorskyi | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 13 |
Labels: | discovery, lld | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
latest trunk |
Attachments: | zabbix_server_demo_R23852.log | ||||||||
Issue Links: |
|
Description |
Now the auto-added resources (items, triggers) can not be deleted. Only graph can be manually deleted - i think tis is bug. Need to come up with a mechanism for automatic/manual removal of obsolete resources. I do not have a clear vision of how it should look, but I think that should be able to manually remove these obsolete resources, for example they should be made available for manual deletion (not obsolete resources should stay unavailable for deletion). This is the case if automatic deletion is not enabled. as discussed with Aleksandrs Saveljevs i mark this issue as "blocker" |
Comments |
Comment by Paxos [ 2011 Apr 27 ] | ||||
Having the same issue with 1.9.3. I think the current logic of keeping auto-generated resources around after they disappear from discovery is the way to go. However, these items must be able to be removed manually and not auto-removed. | ||||
Comment by Marcin Gapiński [ 2011 Oct 14 ] | ||||
It would be great if there was an option to choose what to do when discovered item is no longer present. I can think of two possible scenarios: delete that item automatically or disable it and allow for manual removal. That would certainly decrease resources usage on rapidly changing monitoring environment. | ||||
Comment by Yoav Steinberg [ 2011 Nov 08 ] | ||||
I'd really like to see an option to auto remove discovered items. For things like file system or net interfaces this might not be critical, and we might want to continue seeing these items after we remove them. But other use cases like for monitoring instances of a process on a system that spawn new processes based on some external input (rapidly changing system) there should be an option to automatically delete the discovered items after they disappear. | ||||
Comment by Alexei Vladishev [ 2011 Nov 16 ] | ||||
A new global (Administration->General->???) configuration parameter will define life time of lost items. If an item exceeds the period, it will be removed and a new record for housekeeper will be added as well. | ||||
Comment by Alexey Pustovalov [ 2011 Nov 21 ] | ||||
maybe do better not global? host level or discovery? | ||||
Comment by richlv [ 2011 Nov 21 ] | ||||
lld rule level would seem to be most appropriate. for example, we might have a host which has network interfaces quite rapidly changed, thus we know that interface going down would allow us to mostly safely remove it after 3 days. on the other hand, disk volumes going away would be less frequent, and data would be more important in the long term, thus we would like to have those items only removed after 2 weeks have passed | ||||
Comment by Alexei Vladishev [ 2011 Nov 23 ] | ||||
Sure, it's better to keep it on lld level with support of user macros (template, host, global). | ||||
Comment by Alexey Fukalov [ 2011 Dec 05 ] | ||||
New field "lifetime varchar(64)" is added to "items" table. Allows usermacro or number in days. | ||||
Comment by Pavels Jelisejevs (Inactive) [ 2011 Dec 06 ] | ||||
(1) GUI Same for validatePortNumber() <Vedmak> RESOLVED <pavels> CLOSED. | ||||
Comment by Pavels Jelisejevs (Inactive) [ 2011 Dec 06 ] | ||||
(2) GUI <Vedmak> RESOLVED <pavels> CLOSED. | ||||
Comment by Pavels Jelisejevs (Inactive) [ 2011 Dec 06 ] | ||||
(3) GUI <Vedmak> CLOSED | ||||
Comment by Pavels Jelisejevs (Inactive) [ 2011 Dec 06 ] | ||||
(4) DOC <Vedmak> I'll update db and api docs, and put separate paper on the board for it. <pavels> Db and API docs are ok. CLOSED. | ||||
Comment by Alexander Vladishev [ 2011 Dec 06 ] | ||||
(5) [DB] DB patches <Vedmak> RESOLVED | ||||
Comment by Pavels Jelisejevs (Inactive) [ 2011 Dec 06 ] | ||||
(6) GUI <Vedmak> RESOLVED <pavels> CLOSED. | ||||
Comment by Alexander Vladishev [ 2011 Dec 06 ] | ||||
(7) [GUI] when creating/updating a discovery rule with 'Keep lost resources period (in days)' = 0 an error occurs: <Vedmak> RESOLVED <pavels> CLOSED. | ||||
Comment by richlv [ 2011 Dec 06 ] | ||||
(8) api docs (to avoid overloading (4)) b) also should be listed at http://www.zabbix.com/documentation/2.0/manual/appendix/api/changes_1.8_-_2.0 <Vedmak> RESOLVED <richlv> do we have a rule on class naming ? because now we have "TemplateScreen" and "Discoveryrule" - would be nice to settle on either camelcase or something. <zalex> last question moved to | ||||
Comment by Pavels Jelisejevs (Inactive) [ 2011 Dec 07 ] | ||||
GUI is TESTED. | ||||
Comment by Alexander Vladishev [ 2011 Dec 07 ] | ||||
A server side is ready to test! <dimir> Great! Please review my changes that allow it to work without graph prototypes in r23965 . | ||||
Comment by Oleksii Zagorskyi [ 2011 Dec 08 ] | ||||
I could not to not test the dev branch ASAP >>> 15557:20111208:010525.923 poller #1 spent 2.178640 seconds while updating 1 values
real 0m1.965s | ||||
Comment by Oleksii Zagorskyi [ 2011 Dec 08 ] | ||||
(9) An item, has been not passed through the filter but doesn't deleted yet, still continue to be monitored: mysql> select i.lastclock, d.lastcheck from items i, item_discovery d where i.itemid=25905 and i.itemid=d.itemid;
-----------
----------- Is it ok by design? added: How is else the user can understand that some resources are not discovered anymore? <zalex> some part moved to the | ||||
Comment by Oleksii Zagorskyi [ 2011 Dec 08 ] | ||||
(11) I would suggest to change default value 0 days for "Keep lost resources period (in days)" to for instance 1 day when an user creates new discovery rule. It's danger behavior. The user has to set 0 day only when he is understanding what he doing. <zalex> moved to | ||||
Comment by Ghozlane TOUMI [ 2011 Dec 09 ] | ||||
Hi.
That way the user can choose between automatic and manual creation / deletion, That could allow some nw use cases like : | ||||
Comment by dimir [ 2011 Dec 14 ] | ||||
Note, until svn diff svn://svn.zabbix.com/branches/dev/ZBX-4425 -c r23945 in order to test it. | ||||
Comment by Alexey Fukalov [ 2011 Dec 21 ] | ||||
merged: svn://svn.zabbix.com/trunk 24129 | ||||
Comment by Alexey Fukalov [ 2011 Dec 21 ] | ||||
Additional improvements will be implemented in | ||||
Comment by Oleksii Zagorskyi [ 2011 Dec 21 ] | ||||
Reopened to close (move) some comments; | ||||
Comment by Oleksii Zagorskyi [ 2011 Dec 21 ] | ||||
Closed again. | ||||
Comment by Nelson Rotunno [ 2014 Jul 29 ] | ||||
I've been looking around on the forums and whatnot and it seems like there is still no way to manually delete discovered resources, it would be great to see that added. At least in my case, many (nearly 30) unnecessary network interfaces are added via the discovery rule and even though it is possible to disable the new items as a whole, I find this rather "polluting" to my setting. I see no reason to leave those items there and I can't just recreate the host since I want to keep its historical data. Besides, those items won't get scheduled for auto cleanup because they're still discovered, I simply don't want them around anymore. |
[ZBX-2806] Double notification messages (double-generated alert) Created: 2010 Aug 03 Updated: 2017 May 30 Resolved: 2011 Dec 19 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | None |
Fix Version/s: | 1.9.9 (beta) |
Type: | Incident report | Priority: | Blocker |
Reporter: | Oleksii Zagorskyi | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | actions | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
last trunk revision 13781 |
Attachments: | 1_double_message_#1.png 2_double_message_#2.png 2action.log 3_double_message_#3.png ZBX-2806-trunk.patch rev24046_improvement+DB_usage.png rev24046_improvement.png zabbix_server_patched.log.gz |
Description |
See attached screen shot. My config (easy to understand that in the picture, the problem is not relevant): : {STATUS}| {ITEM.NAME}| EVENT.ID: {EVENT.ID}| Server timestamp = {DATE}{TIME} | TRIGGER.NAME: {TRIGGER.NAME}*************************************************** ITEM.LOG.EVENTID1: {ITEM.LOG.EVENTID1}ITEM.LOG.SOURCE1: {ITEM.LOG.SOURCE1}ITEM.LOG.AGE1: {ITEM.LOG.AGE1}*************************************************** |
Comments |
Comment by Oleksii Zagorskyi [ 2010 Aug 19 ] |
Sorry, further to the Russian, because a lot of logic and I can make a mistake with the translation Теперь мне удается воспроизвести проблему боле четко, почти 100% воспроизведение. Предварительный итог таков: когда процедура "process_escalations" заканчивает свою работу после окончания процедуры "DCsync_configuration" тогда на последнее уже обработанное событие повторно ошибочно генерируется Алерт при следующем вызове процедуры "process_escalations". Извините если звучит сумбурно, но где то так. Я подготовил куски лога где видно последовательность как возникает проблема. Там же даны описания между абзацев. |
Comment by Daniel Poßmann [ 2011 Oct 14 ] |
could this issue also apply to zabbix 1.8.5? |
Comment by Oleksii Zagorskyi [ 2011 Oct 17 ] |
Yes, i managed to reproduce it in the latest trunk rev: And I'm almost sure that this problem connected to the call of function DCsync_configuration() Let me some time to figure out some detail in the debuglog. |
Comment by Oleksii Zagorskyi [ 2011 Oct 24 ] |
How to reproduce: 1. Agent bulk sends 50 values to server (one item as "zabbix agent active") |
Comment by dimir [ 2011 Nov 01 ] |
Which database? |
Comment by Oleksii Zagorskyi [ 2011 Nov 01 ] |
> Which database? |
Comment by dimir [ 2011 Nov 02 ] |
This happens when alerts are created and put to DB, before they are handled. When we receive 50 values 51 alerts are spawned and 51 alert entries are put to DB. So step 2 and 3 can be skipped. I continue working on it. |
Comment by dimir [ 2011 Nov 03 ] |
This happens when escalations are handled. The conflict is between "escalator" and "history syncer" processes when they access "escalations" table. Continue investigating. |
Comment by dimir [ 2011 Nov 03 ] |
I have added some logging and here's the difference (both examples of handling escalation ID 2): NO DUPLICATE EVENTS: DUPLICATE EVENTS: The problem happens when history syncer "intrudes" in while escalator is processing escalation. |
Comment by dimir [ 2011 Nov 07 ] |
So, the problem is that when escalator is selecting 51 escalations to process, from table containing 50 records. Here is how it happens:
For the information, this happens also with just 1 dbsyncer, so no dbsyncers conflict. |
Comment by dimir [ 2011 Nov 07 ] |
From MySQL manual: http://dev.mysql.com/doc/refman/5.0/en/set-transaction.html#isolevel_repeatable-read The default isolation level of a transaction is REPEATABLE READ which causes the behavior. If I add the code to set transaction level to READ COMMITTED to only read what is commited: SET TRANSACTION ISOLATION LEVEL READ COMMITTED the problem goes away. |
Comment by dimir [ 2011 Nov 07 ] |
We decided to make our transactions more isolated, by disabling reading uncommitted data explicitly. Related documentation: http://dev.mysql.com/doc/refman/5.0/en/set-transaction.html |
Comment by dimir [ 2011 Nov 07 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-2806 . How I tested it:
From console, feed the item with values (you can increase 50 to something bigger): $ for ((i=0; i<50; i++)); do rnd=$[ $RANDOM % 100 + 1 ]; bin/zabbix_sender -z 127.0.0.1 -s "Zabbix server" -k test.garbage -o $rnd; done You should be getting exactly 50 e-mails. |
Comment by dimir [ 2011 Nov 07 ] |
Patch for current trunk (r23016). |
Comment by dimir [ 2011 Nov 07 ] |
Oleksiy, I have attached the patch for current trunk, would it be possible for you to test that and confirm that it fixes the problem? |
Comment by Oleksii Zagorskyi [ 2011 Nov 08 ] |
Vladimir, |
Comment by Oleksii Zagorskyi [ 2011 Nov 08 ] |
Currently I must to note that seems it's easier to reproduce the bug with DebugLevel=4 but not 3. I tried patched version of latest trunk. But right now I tried my "old" method. And it works "even better" When I sent 200 values, I managed to reproduce the problem seems for 100% attempts (sometimes I have 202 alerts). Huh, sorry for possible not clear comment, but I write it during last day and after several touches this issue. See attached debuglog. Vladimir, why the issue is resolved? |
Comment by dimir [ 2011 Nov 09 ] |
Reopening based on comment https://support.zabbix.com/browse/ZBX-2806?focusedCommentId=50012&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-50012 |
Comment by dimir [ 2011 Nov 17 ] |
Move escalations handling to escalator process. RESOLVED in r23283 |
Comment by dimir [ 2011 Nov 17 ] |
This is a fix for 1.8 so Oleksiy, please wait till it's reviewed, then I'll create a patch for trunk. Merging a fix into trunk produces conflicts, I don't want to resolve them multiple times. <zalex> I can test any version, trunk or 1.8 branch. Currently I do not need the patch for trunk namely. If it makes sense to test 1.8 branch before code review, please let me know. <dimir> It would be great if you could try reproducing the bug with current 1.8 branch. Because I couldn't do it. Despite I was hitting the bug in 90% of cases when I used trunk. It's weird, considering that I could not find any differences in escalations handling code in 1.8 and trunk. |
Comment by Oleksii Zagorskyi [ 2011 Nov 21 ] |
<zalex> --->>>> 1.8 branch: Dev (this) branch: Vladimir, as you see I cannot reproduce even for 1.8 branch. |
Comment by dimir [ 2011 Nov 22 ] |
(5) Fix triggerid and r_evnetid fields handling in process_escalations(). These fields are NULL by default in trunk. <dimir> RESOLVED in r23428, r23431, please check |
Comment by dimir [ 2011 Nov 22 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-2806-trunk |
Comment by dimir [ 2011 Nov 22 ] |
Because the fix requires changes in database and it's not reproducible in 1.8 anyway the fix will be only provided for trunk. Oleksiy, it would be great if you could test svn://svn.zabbix.com/branches/dev/ZBX-2806-trunk . <zalex> Yes, some characters seems are not UTF8. I don't know what is that. Need to fix and then I'll retest it again. |
Comment by dimir [ 2011 Nov 23 ] |
(6) As zalex noted, there was a bug in SQL query. <dimir> RESOLVED in r23450, please retest. <zalex> r 23450, still error: <dimir> RESOLVED in r23455, sorry, my bad, I should have tested it better. <zalex> r23455. after 10 000 events the problem is NOT reproducible. Seems it's ready to test|review by developers. <dimir> Thank you, zalex. |
Comment by Alexander Vladishev [ 2011 Dec 05 ] |
(7) Escalation always is deleted after first step. Following steps will never be executed. <dimir> That's right, fixed delete escalation condition. RESOLVED in r23813. |
Comment by Alexander Vladishev [ 2011 Dec 05 ] |
(8) Please review my changes in rev 23773. <dimir> Perfect! CLOSED. |
Comment by Alexander Vladishev [ 2011 Dec 07 ] |
(9) src/zabbix_server/escalator/escalator.c:1243 <dimir> RESOLVED in r23905 |
Comment by Alexander Vladishev [ 2011 Dec 15 ] |
(10) Statement "SET DEFINE OFF" doesn't need the line-terminator ';' or '/'. Please remove it from gen_data.pl and help_items.sql. <dimir> RESOLVED in r24018 |
Comment by dimir [ 2011 Dec 16 ] |
Just a summary of what was done. Previously escalations were processed by both dbsyncer and escalator. The same records in escalations table were modified by both processes. This was causing a mess and this was not possible to fix without a locking mechanism which we don't have/use (in cases like these). So instead, now dbsyncer only inserts records, which are later modified/removed by escalator process. This also reduces the workload of dbsyncer which was also an issue. <richlv> thanks for the description. does http://www.zabbix.com/documentation/2.0/manual/introduction/whatsnew200?&#improved_history_db_syncer_performance summarise it correctly ? <Sasha> Excellent! Thanks! <zalex> See to the attached picture "rev24046_improvement.png". I suppose the mentioned documentation note has to be reviewed (it seems escalator's work (load) noticeable decreased but not increased) -> REOPENED <richlv> updated manual according to the testing results (which imply that both escalator & history syncers are more efficient now) <zalex> Reviewed. I like it, thanks. CLOSED |
Comment by Alexander Vladishev [ 2011 Dec 16 ] |
Available in version pre-1.9.9, r24046. |
Comment by Oleksii Zagorskyi [ 2011 Dec 18 ] |
Just for case the last revision of trunk has been tested with big count of alerts (40 000). ALL IS FINE with the server. Reopened to remove 2.0 from Fix versions and add some interesting results of my experiments. |
Comment by Oleksii Zagorskyi [ 2011 Dec 19 ] |
Reopened to add additional statistic requested by Sasha. |