[ZBX-2931] Template_SNMPv2_Device's triggers are "TRUE" in data.sql Created: 2010 Aug 24  Updated: 2017 May 30  Resolved: 2011 Oct 19

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 1.8.3
Fix Version/s: 1.8.9, 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Kodai Terashima Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: database, installation, templates, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File data.sql    

 Description   

Template_SNMPv2_Device's triggers are "TRUE" in data.sql.
I get trigger list using api trigget.get method with only_true option, Template_SNMPv2_Device's triggers are listed.

Additionally, I think it would be better that "Trigger just added. No status update so far." error messages are removed from templates in data.sql.

I created data.sql for 1.8.3 which is changed and removed avobe issues. Please see the attachment.



 Comments   
Comment by Alexander Vladishev [ 2011 Oct 19 ]

Fixed in the development branches
svn://svn.zabbix.com/branches/dev/ZBX-2931
svn://svn.zabbix.com/branches/dev/ZBX-2931-TRUNK

Comment by Aleksandrs Saveljevs [ 2011 Oct 20 ]

(1) There are disabled and not supported items in templates. Let's fix them, too!

<asaveljevs> RESOLVED for both 1.8 and trunk.
<sasha> Thanks! CLOSED

Comment by Alexander Vladishev [ 2011 Oct 20 ]

Fixed in version pre-1.8.9, r22562.





[ZBX-3143] Creating maintenance with extended "active till" Created: 2010 Oct 25  Updated: 2017 May 30  Resolved: 2012 Jun 13

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.3
Fix Version/s: 1.9.7 (beta)

Type: Incident report Priority: Minor
Reporter: Paul Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: maintenance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian Lenny



 Description   

Creating a maintenance window with an extended "Active Till" fails.

Setting the year to "2037" works. "2038" gives the following error:

  • Error in query [UPDATE maintenances SET name='i5 maintenance',maintenance_type=0,description='',active_since=1287767569,active_till=,maintenanceid=1 WHERE maintenanceid=1] [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'maintenanceid=1 WHERE maintenanceid=1' at line 1]
  • DBEXECUTE_ERROR

"2999" is accepted, but ignored.



 Comments   
Comment by richlv [ 2010 Oct 26 ]

that's unix timestamp not fitting in a 32bit integer - quite a global problem
this won't be fixed as such, because it would involve way too many components, most of them outside zabbix.
what could be done, zabbix api could verify incoming values and reject out of range ones without going to db and returning db error

Comment by Paul [ 2010 Nov 01 ]

I think that a human readable error message would be great. This error showed up via the web gui. Does that use the API?

Comment by richlv [ 2012 Jun 13 ]

this was fixed in 2.0.0, now a value checking is being done and a user friendly (hopefully) error message is displayed

Comment by richlv [ 2012 Jun 13 ]

to be more specific, fixed in 1.9.7 as part of ZBXNEXT-910





[ZBX-3441] server can reset disabled items to "not supported" state Created: 2011 Jan 20  Updated: 2017 May 30  Resolved: 2011 Oct 19

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: None
Fix Version/s: 1.8.9, 1.9.7 (beta)

Type: Incident report Priority: Blocker
Reporter: richlv Assignee: dimir
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

in some cases, zabbix server can reset item from disabled to not supported state - seems to happen if item is disabled, then turns unsupported before configuration cache is updated



 Comments   
Comment by Alexei Vladishev [ 2011 Oct 12 ]

As a long term solution we should probably split item status (active, disabled) and not supported flag in the table structure.

Comment by richlv [ 2011 Oct 13 ]

...while thinking about possibility to set active/passive easily on a host/item level with items coming from one general template

also, wasn't there recently some work to make pollers use cache for unsupported state ?

Comment by dimir [ 2011 Oct 14 ]

Reproduced in latest 1.8:

  • disable item
  • before Zabbix agent cache is updated - make item unsupported
  • server sets item unsupported
  • item is processed according to "refresh unsupported"
Comment by dimir [ 2011 Oct 17 ]

Do not change the status of disabled item.

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-3441 .

Comment by dimir [ 2011 Oct 19 ]

Fixed in pre-1.8.9 r22512, pre-1.9.7 r22517





[ZBX-3540] removal of unused node properties Created: 2011 Feb 16  Updated: 2017 May 30  Resolved: 2011 Oct 12

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.4, 1.9.1 (alpha)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: distributed, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBX-2802 NodeNoHistory and NodeNoEvents config... Closed

 Description   

node properties should be reviewed and unused fields removed both in the frontend & database. candidates :

timezone;
history keeping;
trend keeping



 Comments   
Comment by Alexei Vladishev [ 2011 Oct 12 ]

Fixed in a dev branch, ready to test.

Comment by Alexei Vladishev [ 2011 Oct 13 ]

Fixed in revision 22381.





[ZBX-2490] acknowledge coming from a child node is not displayed on master node Created: 2010 May 31  Updated: 2017 May 30  Resolved: 2011 Oct 17

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: 1.8.9, 1.9.7 (beta)

Type: Incident report Priority: Blocker
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: acknowledges, distributed
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

trunk rev 12372


Issue Links:
Duplicate
is duplicated by ZBX-2778 Acknowledge not send to master-node Closed
is duplicated by ZBX-3037 event acknowledge status not synchron... Closed

 Description   

if an event is acknowledged on a child node, it is properly synchronised upstream.
if event details or acknowledge details for this event are opened, the acknowledge is visible.

the problem - on the dashboard and in monitoring -> events the event is still shown as not acknowledged.



 Comments   
Comment by Johan Venter [ 2011 Jul 14 ]

I'm also plagued by this on 1.8.5 - everything about the event (including the acknowledge text) is synced from slave to master except the 'acknowledged' flag on the event table.

I've seen a few tickets that mention this issue around, but no useful replies.

I've tried to dig into the code and figure this out but with 0 experience in the Zabbix codebase I haven't quite got the hang of how all the data syncs.

It doesn't seem like it should be a hard one to fix and it would really make DM work as advertised.

Comment by richlv [ 2011 Aug 10 ]

possibly related to :

ZBX-2416
ZBX-2993
ZBX-3037

Comment by Alexander Vladishev [ 2011 Oct 17 ]

Fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-2490

Comment by Alexander Vladishev [ 2011 Oct 19 ]

Fixed in version pre-1.8.9, r22492.





[ZBX-3380] Incorrect query in settings graphs list Created: 2011 Jan 05  Updated: 2017 May 30  Resolved: 2011 Sep 15

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.2 (alpha)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Alexey Pustovalov Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: oracle, sql, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Oracle 10g2, Gentoo



 Description   

ociexecute() [<a href='function.ociexecute'>function.ociexecute</a>]: ORA-00918: column ambiguously defined[/var/www/zabbix/test/include/db.inc.php:444]
SQL error [ORA-00918: column ambiguously defined] in [SELECT * FROM (SELECT DISTINCT g.graphid, g.name, g.graphtype,i.hostid,g.name FROM graphs g,graphs_items gi,items i WHERE ((g.graphid BETWEEN 000000000000000 AND 099999999999999)) AND (i.hostid IN (10017)) AND gi.graphid=g.graphid AND i.itemid=gi.itemid AND ( (g.flags IN (0,4)) ) ORDER BY g.name ASC) WHERE rownum BETWEEN 0 AND 1001]
ocifetchinto() [<a href='function.ocifetchinto'>function.ocifetchinto</a>]: ORA-24374: define not done before fetch or execute and fetch[/var/www/zabbix/test/include/db.inc.php:607]

column "g.name" defined twice.



 Comments   
Comment by Alexei Vladishev [ 2011 Sep 15 ]

It seems that the problem no longer exists in the latest trunk, revision 21687. I cannot reproduce it.

Please confirm.

Comment by Alexey Pustovalov [ 2011 Sep 15 ]

no longer exists in the lastest trunk. Closing bug.





[ZBX-3707] Conditions with empty values can be added to actions Created: 2011 Apr 11  Updated: 2017 May 30  Resolved: 2011 Sep 27

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.4 (alpha)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: actions, trivial, validation
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

latest trunk



 Description   

Can be successfully added an empty conditions:

For Trigger action:
Application
Trigger name

For Discovery action:
Discovery rule
Discovery check
Received value

For Auto registration action:
Host name



 Comments   
Comment by Aleksandrs Saveljevs [ 2011 Apr 11 ]

Also, if we add " " as the application name, it will show as a blank character.

Comment by Oleksii Zagorskyi [ 2011 Apr 11 ]

Please, edit a subject of this issue Contitions -> Conditions

Comment by Aleksandrs Saveljevs [ 2011 Apr 11 ]

Done.

Comment by Alexey Fukalov [ 2011 Sep 23 ]

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-3707

Comment by Alexey Fukalov [ 2011 Sep 28 ]

svn://svn.zabbix.com/trunk 21953





[ZBX-3755] items are visible in latest data after fully cloning a host Created: 2011 Apr 26  Updated: 2017 May 30  Resolved: 2011 Oct 03

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.3 (alpha)
Fix Version/s: 1.9.7 (beta)

Type: Incident report Priority: Blocker
Reporter: Aleksandrs Saveljevs Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: cloning, items, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File latest-data.png    

 Description   

Select a host that has some historical data and do a "Full clone". Observe that items for the new host are visible in "Latest data" (see latest-data.png) with values from the old host. The reason might or might not be that "lastvalue" field is not reset for the new items.



 Comments   
Comment by Alexander Vladishev [ 2011 Sep 23 ]

Fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-3755

Comment by Alexander Vladishev [ 2011 Oct 06 ]

Fixed in version pre1.9.7, r22172.

Fixed some problems with cloning, copying items and triggers too.





[ZBX-2090] Not remove linked data with triggers Created: 2010 Mar 02  Updated: 2017 May 30  Resolved: 2011 Oct 20

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.0 (alpha)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Alexey Pustovalov Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: oracle
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

ociexecute() [<a href='function.ociexecute'>function.ociexecute</a>]: ORA-02292: integrity constraint (ZABBIX_TEST.ALERTS_FK3) violated - child record found[/var/www/zabbix/include/db.inc.php:507]
SQL error [ORA-02292: integrity constraint (ZABBIX_TEST.ALERTS_FK3) violated - child record found] in [DELETE FROM events WHERE (objectid IN (20785)) AND object=0]
ociexecute() [<a href='function.ociexecute'>function.ociexecute</a>]: ORA-02292: integrity constraint (ZABBIX_TEST.ESCALATIONS_FK2) violated - child record found[/var/www/zabbix/include/db.inc.php:507]
SQL error [ORA-02292: integrity constraint (ZABBIX_TEST.ESCALATIONS_FK2) violated - child record found] in [DELETE FROM triggers WHERE (triggerid IN (20785)) ]

where

CONSTRAINT alerts_fk3 FOREIGN KEY (eventid) REFERENCES zabbix_test.events (eventid);
CONSTRAINT escalations_fk2 FOREIGN KEY (triggerid) REFERENCES zabbix_test.triggers (triggerid)

need

+ DELETE FROM alerts WHERE eventid IN (SELECT eventid FROM events WHERE (objectid IN (20785)) AND object=0);
+ DELETE FROM escalations WHERE eventid IN (SELECT eventid FROM events WHERE (objectid IN (20785)) AND object=0);
DELETE FROM events WHERE (objectid IN (20785)) AND object=0;
DELETE FROM triggers WHERE (triggerid IN (20785));



 Comments   
Comment by Alexey Fukalov [ 2011 Oct 07 ]

CONSTRAINT alerts_fk3 FOREIGN KEY (eventid) REFERENCES zabbix_test.events (eventid);
CONSTRAINT escalations_fk2 FOREIGN KEY (triggerid) REFERENCES zabbix_test.triggers (triggerid)

Where these constraints come from? In our schema we have first with DELETE CASCADE, and no second at all. Also constraints in our schema has names like "c_<table>_<num>" not "<table>_fk<num>".

Comment by Alexey Fukalov [ 2011 Oct 20 ]

If you have any additional info about this issue please reopen it.





[ZBX-3342] Problem with UTF-8 encoding in the translated string in Pictures. Created: 2010 Dec 27  Updated: 2017 May 30  Resolved: 2011 Oct 05

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.1 (alpha)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: localization, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

latest trunk


Attachments: PNG File Ukr_Data_from.png    

 Description   

as many string is possible to translate after merge ZBX-2647 is exist some problem.

Ukrainian translation in the ZBX-3338 has:
msgid "Data from %1$s. Generated in %2$s sec"
msgstr "???? ?? %1$s. ??????????? ?? %2$s ???."

But, see picture.



 Comments   
Comment by Alexey Fukalov [ 2011 Oct 04 ]

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-3342

Comment by Oleksii Zagorskyi [ 2011 Oct 04 ]

Dev branch tested in ua and ru locales.
Works well now.

And I noticed that font smoothing appears and it's nice.

Comment by Aleksandrs Saveljevs [ 2011 Oct 05 ]

(1) The "Generated in N sec" message is not translated in "Availability report", for instance. Shall we translate it, too?

$ grepphp generated.in | grep -v _s(
./frontends/php/chart4.php: imagestring($im, 0,imagesx($im)100,imagesy($im)-12,'Generated in '.($end_time$start_time).' sec', $gray);
./frontends/php/chart5.php: imagestring($im, 0,imagesx($im)100,imagesy($im)-12,'Generated in '.($end_time$start_time).' sec', $gray);

<Vedmak> RESOLVED

<asaveljevs> CLOSED

Comment by Alexey Fukalov [ 2011 Oct 05 ]

svn://svn.zabbix.com/trunk 22162





[ZBX-3504] suboptimal message if opening empty map list Created: 2011 Feb 04  Updated: 2017 May 30  Resolved: 2011 Oct 27

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.1 (alpha)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Minor
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: maps, trivial, usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBX-3523 Can not open a other map if the last ... Closed

 Description   

if there are no maps defined or user has no access to any maps, opening monitoring -> maps prints out :

ERROR: No permissions or map does not exist.

when not accessing a specific map, it should just show a normal message about no maps being defined/available



 Comments   
Comment by richlv [ 2011 Oct 26 ]

(1) i don't think i like the following

> svn log --stop-on-copy svn://svn.zabbix.com/branches/dev/ZBX-3473
------------------------------------------------------------------------
r22661 | pavels | 2011-10-26 11:01:01 +0300 (Wed, 26 Oct 2011) | 1 line

  • ZBX-3504 Adds a more generic error message when no maps are defined

<pavels> Sorry about that. RESOLVED.

<Vedmak> CLOSED

Comment by Alexey Fukalov [ 2011 Oct 27 ]

(2) [GUI]
Review my change please.

<pavels> CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2011 Oct 27 ]

Merged to /brances/1.8 revision 22752.

CLOSED.





[ZBX-3275] deleting master node deletes local node as well Created: 2010 Dec 09  Updated: 2017 May 30  Resolved: 2012 Feb 21

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: None
Fix Version/s: 1.9.7 (beta)

Type: Incident report Priority: Blocker
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: distributed, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBX-3976 changing node id does not change mast... Closed

 Description   

with distributed setup, add a master node for some node, then delete it. local node also disappears (probably because of cascade statement)



 Comments   
Comment by Alexei Vladishev [ 2011 Oct 12 ]

Resolved in dev branch, ready to test.

Comment by Alexei Vladishev [ 2011 Oct 13 ]

Fixed in revision 22376.





[ZBX-3493] empty input parameter when deleting template Created: 2011 Feb 02  Updated: 2017 May 30  Resolved: 2011 Sep 15

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.1 (alpha)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Aleksandrs Saveljevs Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: gui, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File cannot-delete-group.png     PNG File delete-and-clear.png     PNG File empty-template.png    
Issue Links:
Duplicate
is duplicated by ZBX-4121 Cannot delete template with linked hosts Closed

 Description   

Create an empty template and delete it. Observe "Empty input parameter" error. See empty-template.png.



 Comments   
Comment by richlv [ 2011 Feb 11 ]

same in trunk when deleting a host

Comment by richlv [ 2011 Mar 28 ]

seems to be fixed in current trunk ?

Comment by Konstantin Buravcov (Inactive) [ 2011 Apr 12 ]

Cannot reproduce this in trunk or 1.8

Aleksandrs Saveljevs, please confirm that problem no longer persists and we will close the issue then.

Comment by Aleksandrs Saveljevs [ 2011 Apr 12 ]

Could not reproduce the original issues, but now I get delete-and-clear.png when deleting a template with "Delete and clear".

Comment by Aleksandrs Saveljevs [ 2011 Apr 12 ]

Sometimes, when I try to delete a trigger/graph and then another trigger/graph, I get an error message about permissions. I do not have a reliable way of reproducing it. Do you have an idea of what could be the problem?

Comment by Aleksandrs Saveljevs [ 2011 Apr 12 ]

When trying to delete a bunch of host groups, I get cannot-delete-group.png. Apparently, the GUI does not want to delete group "Zabbix servers", but it complains about "Templates" instead.

Comment by richlv [ 2011 Sep 02 ]

seems to be fixed in trunk rev 21467.

Comment by richlv [ 2011 Sep 02 ]

ok, maybe not. summary :

1. deleting template or host happens ok now;
2. deleting multiple hostgroups seems to show a correct error message now;
3. deleting and clearing an empty template fails with :

Undefined variable: result [templates.php:455]
Undefined variable: result [templates.php:457]

Comment by Alexei Vladishev [ 2011 Sep 15 ]

Fixed in dev branch, ready to test.

Comment by Alexei Vladishev [ 2011 Sep 23 ]

Fixed in revision 21909.





[ZBX-3753] "Remove" button is wrongly availabe for host interfaces. Some rare cases. Created: 2011 Apr 26  Updated: 2017 May 30  Resolved: 2011 Oct 21

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.4 (alpha)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: hostinterfaces, usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

latest trunk rev 19182



 Description   

When some item has some interface selected in its settings, then button "Remove" is grayed out and it's right.
But when interface used in the single Discovery rule, then button "Remove" is still wrongly available.

When you try to remove this interface - tremendous error appeared:

Error in query [DELETE FROM interface WHERE (interfaceid IN ('30279')) ] [Cannot delete or update a parent row: a foreign key constraint fails (`zabbix`.`items`, CONSTRAINT `c_items_4` FOREIGN KEY (`interfaceid`) REFERENCES `interface` (`interfaceid`))]
DBEXECUTE_ERROR [CHost.update -> CHostInterface.delete -> DB.delete]



 Comments   
Comment by richlv [ 2011 Jun 01 ]

still reproducible in trunk rev 19930

Comment by Alexander Vladishev [ 2011 Oct 20 ]

Similar issue ZBX-3895

Comment by Alexey Fukalov [ 2011 Oct 20 ]

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-3753

Comment by Oleksii Zagorskyi [ 2011 Oct 20 ]

Dev branch tested. Works as expected.

Comment by Oleksii Zagorskyi [ 2011 Oct 21 ]

(1) Bad thing that it's hard to distinguish the current type of interface which is grayed out.

<Vedmak> RESOLVED made disabled buttons be less grayed out.

<zalex> now is better, but I could not to say that excellent And I have no more ideas how that could be improved

<asaveljevs> CLOSED

Comment by Aleksandrs Saveljevs [ 2011 Oct 21 ]

(2) Not sure what needs to be done to get that error in host configuration, but it is possible:

Undefined index: items [include/views/configuration.host.edit.php:94]
Undefined index: items [include/views/configuration.host.edit.php:96]
Invalid argument supplied for foreach() [include/views/configuration.host.edit.php:96]

<Vedmak> RESOLVED

<asaveljevs> CLOSED

Comment by Alexey Fukalov [ 2011 Oct 24 ]

svn://svn.zabbix.com/trunk 22620





[ZBX-3800] agent does not validate arguments for parameter-less items Created: 2011 May 11  Updated: 2017 May 30  Resolved: 2012 Jan 06

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 1.8.5
Fix Version/s: 1.9.7 (beta)

Type: Incident report Priority: Minor
Reporter: Aleksandrs Saveljevs Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: agent, validation
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Item "agent.ping" is an item for which no arguments are accepted. Yet it is possible to specify arguments and successfully acquire a value:

$ zabbix_get -s 192.168.1.5 -p 10050 -k 'agent.ping[arg1,arg2]'
1



 Comments   
Comment by Alexander Vladishev [ 2012 Jan 06 ]

Fixed in version 1.9.7, r22246 with ZBXNEXT-485 issue.





[ZBX-3870] Zabbix Proxy cannot update database in 1.9.5 builds. Created: 2011 Jun 08  Updated: 2017 May 30  Resolved: 2011 Sep 16

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P)
Affects Version/s: 1.9.5 (alpha)
Fix Version/s: 1.9.7 (beta)

Type: Incident report Priority: Blocker
Reporter: Eli Stair Assignee: Alexander Vladishev
Resolution: Fixed Votes: 0
Labels: dbintegrity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Zabbix-1.9.5-20086 RHEL6 x86_64. MySQL 5.1.52. PHP-5.3.2 Apache 2.2.15


Attachments: Text File zabbix_proxy.log     Text File zabbix_server.log    

 Description   

Initial startup debug log from proxy indicates disconnect between database schema and daemon queries. On a clean startup with only one host enabled for monitoring through the proxy, the server successfully sends config data to the proxy, but the proxy cannot take action on its local database:

  1. log snippets, full versions attached:
  1. zbxserver01:
    20746:20110608:092902.811 Deleted 0 records from history and trends
    20731:20110608:092912.351 Sending configuration data to proxy 'zbxproxy01'. Datalen 16272
  1. zbxproxy01:
    25215:20110608:092912.355 Received configuration data from server. Datalen 16272
    25215:20110608:092912.367 [Z3005] query failed: [1451] Cannot delete or update a parent row: a foreign key constraint fails (`zabbix_20086`.`optemplate`, CONSTRAINT `c_optemplate_2` FOREIGN KEY (`templateid`) REFERENCES `hosts` (`hostid`)) [delete from hosts where hostid in (10001,10002,10003,10004,10007,10008,10009,10010,10011,10012,10013,10014,10015,10016,10017,10018,10019,10020,10021,10022,10023,10024,10025,10026,10027,10028,10029,10030,10031,10032,10033,10034,10035,10036,10038,10039,10040,10041,10042,10043,10044,10045,10046)]

This problem appears to be due to changes made to the zabbix server default templates, where I have deleted many of the default entries, and created several new ones. The proxy was set up with the STOCK sql per installation instructions. The query failure seems to be due to these discrepancies, and the daemons are not replicating changes from the master zabbix server to proxy instance. Note that this same behaviour appears to be happening in my tests when using DM child nodes.

Example of the failing criteria query run on both the zabbix server and proxy illustrating the differences in DB content:

  1. zbxserver01:
    mysql> select hostid,host from hosts where hostid in (10001,10002,10003,10004,10007,10008,10009,10010,10011,10012,10013,10014,10015,10016,10017,10018,10019,10020,10021,10022,10023,10024,10025,10026,10027,10028,10029,10030,10031,10032,10033,10034,10035,10036,10038,10039,10040,10041,10042,10043,10044,10045,10046);
    -----------------------------------------+
    hostid host

    -----------------------------------------+

    10003 Template_App_MySQL
    10014 Template_MacOS_X
    10041 Template_Microsoft_Exchange_2007
    10044 Template_Microsoft_SQLServer_2005
    10007 Template_SNMPv2_Device
    10004 Template_Standalone
    10017 Zabbix server

    -----------------------------------------+
    7 rows in set (0.00 sec)

  1. zbxproxy01:
    ,10039,10040,10041,10042,10043,10044,10045,10046);
    ----------------------------------------------+
    hostid host

    ----------------------------------------------+

    10025 Template_3COM_3824
    10026 Template_3COM_4400
    10012 Template_AIX
    10027 Template_APC_Automatic_Transfer_Switch
    10020 Template_APC_Battery
    10003 Template_App_MySQL
    10031 Template_C3750-48TS
    10030 Template_Cisco_2960
    10028 Template_Cisco_837
    10029 Template_Cisco_877
    10023 Template_Cisco_PIX
    10032 Template_Cisco_PIX515E
    10018 Template_Cisco_PIX_525
    10022 Template_Dell_OpenManage
    10033 Template_Dell_PowerConnect_5224
    10034 Template_Dell_PowerConnect_5324
    10019 Template_Dell_PowerConnect_6248
    10024 Template_Dell_PowerEdge
    10008 Template_FreeBSD
    10035 Template_Hibernate
    10013 Template_HPUX
    10036 Template_HP_ColorLaserJet
    10021 Template_HP_InsightManager
    10038 Template_HP_Procurve
    10042 Template_IPMI_Sun_Fire_X4100_M2
    10039 Template_Java
    10001 Template_Linux
    10014 Template_MacOS_X
    10040 Template_Microsoft_Exchange_2003
    10041 Template_Microsoft_Exchange_2007
    10044 Template_Microsoft_SQLServer_2005
    10046 Template_NetScreen_25
    10011 Template_Netware
    10009 Template_OpenBSD
    10045 Template_pfSense
    10016 Template_SNMPv1_Device
    10007 Template_SNMPv2_Device
    10015 Template_Solaris
    10004 Template_Standalone
    10043 Template_Tomcat
    10010 Template_Tru64
    10002 Template_Windows
    10017 Zabbix server

    ----------------------------------------------+
    43 rows in set (0.00 sec)



 Comments   
Comment by Eli Stair [ 2011 Jun 08 ]

Full log files from server and proxy.

Comment by Eli Stair [ 2011 Jun 08 ]

Update from further debug testing:

Creating a database for the proxy populated only with the schema (no data or images) allows the proxy to start up cleanly and collects->forwards data to the zabbix server successfully. HOWEVER, there are still remaining FK issues on the proxy as follows:

1) When disabling monitoring on a host (apache01-prod) monitored by the proxy (zbxproxy01), the zabbix_proxy daemon logs errors on attempting to update its own database locally:

  1. Proxy debug logs:
  1. full config with apache01-prod enabled:
    26241:20110608:100908.537 Received configuration data from server. Datalen 16272
  2. state change when disabling apache01-prod from server:
    26241:20110608:101008.575 Received configuration data from server. Datalen 1371
    26241:20110608:101008.576 [Z3005] query failed: [1451] Cannot delete or update a parent row: a foreign key constraint fails (`zabbix_20086`.`items`, CONSTRAINT `c_items_4` FOREIGN KEY (`interfaceid`) REFERENCES `interface` (`interfaceid`)) [delete from hosts where hostid in (10056,10060,10067)]
  3. state change upon re-enabling host:
    26241:20110608:101508.649 Received configuration data from server. Datalen 16272

Once monitoring is re-enabled for the remote system from the server, the updated state on the proxy returns to normal and the DB errors go away, but obviously there is a problem

2) Hosts may be added to the proxy without error. HOWEVER, when removing the host from proxy control (NOT MONITORED by proxy, monitored by server), similar errors occur:

26241:20110608:115617.653 Received configuration data from server. Datalen 58515
...
26274:20110608:115808.093 Executing housekeeper
26274:20110608:115808.354 Deleted 28574 records from history [0.256729 seconds]
26241:20110608:115817.817 Received configuration data from server. Datalen 29218
26241:20110608:115817.819 [Z3005] query failed: [1451] Cannot delete or update a parent row: a foreign key constraint fails (`zabbix_20086`.`items`, CONSTRAINT `c_items_4` FOREIGN KEY (`interfaceid`) REFERENCES `interface` (`interfaceid`)) [delete from hosts where hostid in (10049,10050,10051,10069)]

As in case #1 above, when adding the host back to the proxy the errors go away:

26241:20110608:120017.874 Received configuration data from server. Datalen 58515

Comment by Eli Stair [ 2011 Jun 18 ]

FYI I have confirmed this issue is specific to using MYSQL in the present builds of zabbix_proxy. This is not occurring when using sqlite as a backend for the zabbix_proxy.

Comment by Denis Kochergin (Inactive) [ 2011 Sep 14 ]

proxy configuration update is now separated to 2 steps: table data insert/update and data delete in reversed order to avoid data relation problems.
Fixed in ZBX-3870 dev branch

Comment by Denis Kochergin (Inactive) [ 2011 Sep 14 ]

Fixed in ZBX-3870 dev branch

Comment by Rudolfs Kreicbergs [ 2011 Sep 28 ]

Fixed in pre-1.9.7 r21994

Comment by Stephan A. Klein [ 2012 May 26 ]

Still got a similar problem with 2.0.0 and MySQL Server Version: 5.1.61-0+squeeze1 on Debian, please see http://www.zabbix.com/forum/showthread.php?p=101336#post101336.

Do you need any additional information?

Comment by Alexander Vladishev [ 2012 May 29 ]

Hi,

Please, respond to the comment left by Dimir at our forum





[ZBX-3892] Actions don't work for triggers created by LLD (from template) when action uses a condition: Host template = "Template_with_LLD" Created: 2011 Jun 17  Updated: 2017 May 30  Resolved: 2011 Oct 25

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 1.9.5 (alpha)
Fix Version/s: 1.9.7 (beta)

Type: Incident report Priority: Blocker
Reporter: Oleksii Zagorskyi Assignee: dimir
Resolution: Fixed Votes: 0
Labels: actions, lld
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

latest trunk as usually



 Description   

Situation: LLD discovery rule (with items and trigger prototypes) created in some template. This template is linked to some Host. Real items and triggers are created and they work well.
Using the condition Host template = "Template_with_LLD" it's regular practice. Even for the items+triggers created by LLD. Yes?

But in such situation the actions don't work.
It's happened because trigger (created from prototype) "is inherited" not from template and from Discovery rule (which respectively inherited from the template). IMO.



 Comments   
Comment by dimir [ 2011 Oct 23 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-3892

Comment by richlv [ 2011 Oct 25 ]

just a question, how exactly will this work with nested templates ?
let's say we have 3 templates t1<-t2<-t3 and a host h1 (t3 being the lowest level & linked to h1).

what exactly will be matched if condition will specify t1, t2 or t3 ? (functionally, i'd expect it to match for any of these being specified)

Comment by dimir [ 2011 Oct 25 ]

If the trigger prototype was created in t1 then yes, any template will match.

Comment by dimir [ 2011 Oct 26 ]

Fixed in pre-1.9.7, r22694.





[ZBX-3896] Events history view is broken with already deleted triggers (by deleting items) Created: 2011 Jun 18  Updated: 2017 May 30  Resolved: 2011 Sep 29

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.5 (alpha)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: triggers
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

latest trunk rev 20223
MySQL 5.5


Attachments: PNG File broken_action.png     PNG File broken_map_element.png     PNG File with_deleted_item.png    

 Description   

When you delete an item (which has some trigger), then i see a successful green report: Item "Ping lost:icmppingloss[,3,1000,56,300]" deleted.
No details in the report about deleted trigger, and trigger already deleted !

Then history of events with this triggers is broken when you select to display All Group and Host. See attached picture.

It's not reproducible when you simply delete trigger, need to delete the item, which used in the trigger.



 Comments   
Comment by Oleksii Zagorskyi [ 2011 Jun 23 ]

Similar happened to action.
I delete an item which used in the trigger named "Changes test 15" which finally used in the action. Se to the picture "broken_action.png".

Comment by Oleksii Zagorskyi [ 2011 Jul 08 ]

Additionally.The same can happens for the trigger, used on the map. Se to the picture "broken_map_element.png"

Comment by Alexey Fukalov [ 2011 Sep 29 ]

svn://svn.zabbix.com/branches/dev/ZBX-3896

Comment by Alexey Fukalov [ 2011 Oct 03 ]

svn://svn.zabbix.com/trunk 22079





[ZBX-3912] It is not possible to select object in the popup.php form when using IE 8 browser. Created: 2011 Jun 30  Updated: 2017 May 30  Resolved: 2011 Oct 17

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.4 (alpha)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Igor Danoshaites (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: ie, popups, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: JPEG File ZBX-3912.JPG    
Issue Links:
Duplicate

 Description   

It is not possible to select object in the popup.php form when adding new condition to the action conditions with "Select" option (Host group, Host template, Trigger, etc), as appears error: "length is null or not an object" when using IE7 browser and the latest revision (rev# 20402) from the "trunk" branch.
Please see attached screenshot for more details.



 Comments   
Comment by richlv [ 2011 Jun 30 ]

ie7 was dropped from supported list for zabbix 2.0 (more or less following google dropping support for it soon).

Comment by Igor Danoshaites (Inactive) [ 2011 Jul 01 ]

OK, now installed IE8 browser.

In IE8 appears the same problem when trying to select "Host group" or "Host template":

Message: 'length' is null or not an object
Line: 78
Char: 7
Code: 0
URI: http://192.168.3.4/~igor/trunk/popup.php?writeonly=1&dstfrm=action.edit&dstfld1=new_condition_value&dstfld2=group&srctbl=host_group&srcfld1=groupid&srcfld2=name

There are no such errors in the Firefox browser.

Comment by Oleksii Zagorskyi [ 2011 Jul 04 ]

I can confirm this error in the IE8.

Comment by Eduards Samersovs (Inactive) [ 2011 Oct 14 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-3912

Comment by Igor Danoshaites (Inactive) [ 2011 Oct 17 ]

OK, in dev branch ZBX-3912 there are no any more errors for the popup.php form.

Comment by Igor Danoshaites (Inactive) [ 2011 Oct 17 ]

Reopened for code review

Comment by Aleksandrs Saveljevs [ 2011 Oct 17 ]

Code looks good.

Comment by Eduards Samersovs (Inactive) [ 2011 Oct 17 ]

trunk revision 22454





[ZBX-3915] cannot add host due to inability to call DBstart and DBend from API (via Jsonrpc interface) Created: 2011 Jul 01  Updated: 2017 May 30  Resolved: 2011 Oct 05

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: None
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Trivial
Reporter: Francis (Grizzly) Smit Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: api
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

coding api from jsonrpc interface in python



 Description   

when I create a host using the API it returns me a hostid as if all is fine but when I then add that host to a map it does not show, upon checking I find that the host does not exist even though the API call to API::Host->create($hosts) executed fine.

Upon further investigation to see how the web page does this I find that they call DBstart(true) before the call to the api and DBend(true) after, so I wonder if there is any way for me to do the same as API calls.



 Comments   
Comment by Francis (Grizzly) Smit [ 2011 Jul 01 ]

sorry I've accidentally set the priority to Trivial it should be blocker or some such as I cannot proceed due to this bug

Comment by richlv [ 2011 Jul 01 ]

please show json query used to create host & the response to it

Comment by Francis (Grizzly) Smit [ 2011 Jul 04 ]

here is the json sent:
{"params": [{"status": 0, "templates": [

{"templateid": "10048"}

], "interfaces": [

{"ip": "", "useip": 0, "type": 1, "port": 10050, "dns": "Y1-aus800.oztell.com"}

,

{"ip": "", "useip": 0, "type": 1, "port": 10050, "dns": "alphaY1-aus800.oztell.com"}

,

{"ip": "", "useip": 0, "type": 1, "port": 10050, "dns": "betaY1-aus800.oztell.com"}

], "host": "Y1-aus800", "profile":

{"macaddress": "FED1234:987:AB", "name": "", "serialno": "12234BFD23545", "notes": "", "contact": "", "hardware": "", "tag": "", "devicetype": "", "location": "", "os": "", "software": ""}

, "groups": [

{"groupid": "6"}

,

{"groupid": "7"}

]}], "jsonrpc": "2.0", "method": "host.create", "auth": "bad7ae07237ab20b21c8eae69695bf4f", "id": 5}
10: Sending headers:

{'Content-Type': 'application/json-rpc', 'Authorization': 'Basic YXBpdXNlcjpbfiYkQCgpKl4lJDE5OTEtaGVsbG9d', 'User-Agent': 'python/zabbix_api'}

and the respose:
{'jsonrpc': '2.0', 'result':

{'hostids': ['10051']}

, 'id': 5}
10: json_obj: {'params':

{'pattern': 'aus800', 'extendoutput': True, 'sortfield': 'name'}

, 'jsonrpc': '2.0', 'method': 'map.get', 'auth': 'bad7ae07237ab20b21c8eae69695bf4f', 'id': 6}

Comment by richlv [ 2011 Jul 04 ]

1. i'm a bit suspicious about that map.get part at the end. is that just the next method ?
2. i'm not sure whether empty ip is allowed in the interface (it might be) - you could try 0.0.0.0 instead.
3. could you try host.get with the id returned after creating it to see whether host itself exists ?
4. what actually is the problem ? host not being created ? host element not being added to map ? if the latter, please attach full json of adding an object to a map, then retrieving map details and showing it missing.

note that map elements must always be an array, even if there's only one element, as per ZBX-3685...

Comment by Francis (Grizzly) Smit [ 2011 Jul 04 ]

1). yes the
10: json_obj: {'params':

{'pattern': 'aus800', 'extendoutput': True, 'sortfield': 'name'}

, 'jsonrpc': '2.0', 'method': 'map.get', 'auth': 'bad7ae07237ab20b21c8eae69695bf4f', 'id': 6}
bit is the next call that got caught up by accident when I cut and pasted from the log so ignore it

2). I'll try that.
3). will do
4). yeah the host is not created it returns like it is, but I presume it gets rolled back or some thing

Comment by richlv [ 2011 Sep 03 ]

did any of (2) or (3) help ?

Comment by Francis (Grizzly) Smit [ 2011 Sep 05 ]

sorry been busy with other projects, should get back to zabbix soon

Comment by Francis (Grizzly) Smit [ 2011 Oct 05 ]

This bug is gone as of the latest version

Comment by Francis (Grizzly) Smit [ 2011 Oct 05 ]

The problem has gone away in the latest version





[ZBX-3926] "Hide selected" and "Show selected" filter modes do not work in the log (text) viewer Created: 2011 Jul 07  Updated: 2017 May 30  Resolved: 2012 Jan 29

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.5 (alpha)
Fix Version/s: 1.9.7 (beta)

Type: Incident report Priority: Blocker
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: logmonitoring, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

latest trunk


Attachments: PNG File broken_filter_log_viewer.png    

 Description   

"Mark selected" and "Mark others" filter modes still work.



 Comments   
Comment by richlv [ 2011 Aug 08 ]

still the same in trunk rev 20989.

interestingly, it seems to be broken by this (wondering how that was connected...) :

r18553 | vedmak | 2011-03-18 18:46:28 +0200 (Fri, 18 Mar 2011) | 1 line

  • ZBXNEXT-676 merged host profile and extended host profile
Comment by Alexey Fukalov [ 2011 Oct 05 ]

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-3926

Comment by Alexey Fukalov [ 2011 Oct 05 ]

svn://svn.zabbix.com/trunk 22159





[ZBX-3930] Error "Field [hostid] is mandatory" apears when exit from the user profile. Created: 2011 Jul 07  Updated: 2017 May 30  Resolved: 2011 Sep 26

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.5 (alpha)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

latest trunk


Attachments: PNG File no_hostid_field.png    

 Description   

Huh, finally i figured out when this error happens.
How to reproduce:
1. Go to any host's (or template's) discovery rules list. (browser link is .../zabbix/host_discovery.php?&hostid=10049&sid=ca25439a4affe60f)
2. Click to the user Profile link.
3. Click to Cancel (or Ok).
4. See error - picture is attached (browser link is .../zabbix/host_discovery.php)

p.s. meh, when i finished to prepare this issue report, i found a similar one ZBX-3435. Sorry for the partially duplicate, but i planned to click "Create" button



 Comments   
Comment by richlv [ 2011 Sep 03 ]

still there in trunk rev 21476.

Comment by Alexey Fukalov [ 2011 Sep 23 ]

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-3930

Comment by Alexey Fukalov [ 2011 Sep 26 ]

svn://svn.zabbix.com/trunk 21920





[ZBX-3939] History of logs with a several items. Undefined index: hostname Created: 2011 Jul 11  Updated: 2017 May 30  Resolved: 2011 Sep 15

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.5 (alpha)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: logmonitoring, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

latest trunk


Attachments: PNG File two_iems.png    

 Description   

see attached picture



 Comments   
Comment by Alexei Vladishev [ 2011 Sep 15 ]

Fixed in development branch, ready to test.

Comment by Oleksii Zagorskyi [ 2011 Sep 15 ]

Dev branch tested. Mentioned in this issue problem is gone, but i found another bug (i think old bug).

This new bug appeared not in this dev branch !!!
If you anyhow change selected time period then all selected to view items disappear, except one item (located on top of selected items list).

I'm not sure about creating new ZBX issue

Comment by Alexei Vladishev [ 2011 Sep 23 ]

Fixed in revision 21909.

Comment by Oleksii Zagorskyi [ 2011 Sep 24 ]

All my notes in my comments were moved to new issue ZBX-4169.
This issue is CLOSED.





[ZBX-3946] Error when we try create new trigger with dependency Created: 2011 Jul 12  Updated: 2017 May 30  Resolved: 2011 Sep 21

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.4 (alpha)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Alexey Fukalov Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: dependencies, triggers
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Comments   
Comment by richlv [ 2011 Sep 03 ]

still there in trunk rev 21476.

actual error messages :

Invalid argument supplied for foreach() [include/db.inc.php:1180]
array_keys() expects parameter 1 to be array, string given [include/db.inc.php:1275]
implode(): Invalid arguments passed [include/db.inc.php:1275]
array_values() expects parameter 1 to be array, string given [include/db.inc.php:1276]
implode(): Invalid arguments passed [include/db.inc.php:1276]
Error in query [INSERT INTO trigger_depends () VALUES ()] [Cannot add or update a child row: a foreign key constraint fails (`zabbix_1_9`.`trigger_depends`, CONSTRAINT `c_trigger_depends_1` FOREIGN KEY (`triggerid_down`) REFERENCES `triggers` (`triggerid`) ON DELETE CASCADE)]
SQL statement execution has failed "INSERT INTO trigger_depends () VALUES ()" [CTrigger.create -> CTrigger.createReal -> DB.insert]

Comment by Alexey Fukalov [ 2011 Sep 21 ]

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-3946

Comment by Alexey Fukalov [ 2011 Sep 22 ]

svn://svn.zabbix.com/trunk 21817





[ZBX-3987] Undefined index: graphid (api/classes/class.cgraph.php) Created: 2011 Jul 28  Updated: 2017 May 30  Resolved: 2011 Sep 19

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.6 (beta)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: api, graphs, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

latest trunk r20751.


Attachments: PNG File undef_index_graph.png    
Issue Links:
Duplicate
is duplicated by ZBX-4118 Undefined index graphid in Monitoring... Closed

 Description   

I faced with this problem many times (along ~ last week), and finally i can reproduce it.

1. Go to Monitoring -> Graphs
2. Select some host and it's some graph
3. Select the another host
4. Voila

When i select another host on step #3 then "hostid" in the URL changes but "graphid" stays as it was.

And on top of the page we see:
Undefined index: graphid [api/classes/class.cgraph.php:382]
Undefined index: graphid [api/classes/class.cgraph.php:382]
Undefined index: graphid [api/classes/class.cgraph.php:388]
Undefined index: graphid [api/classes/class.cgraph.php:389]
Undefined index: graphid [api/classes/class.cgraph.php:424]

Link on the picture is:
/zabbix/charts.php?sid=4ba4e1d7fd7e416b&form_refresh=1&fullscreen=0&groupid=0&hostid=10017&graphid=563
Note - graph with the ID=563 not related to host with ID=10017

This link works without errors:
zabbix/charts.php?sid=4ba4e1d7fd7e416b&form_refresh=1&fullscreen=0&groupid=0&hostid=10049&graphid=563
Note - here is another (proper) "hostid".



 Comments   
Comment by richlv [ 2011 Sep 04 ]

still reproducible in trunk rev 21476.
line numbers shifted a bit

Undefined index: graphid [api/classes/class.cgraph.php:383]
Undefined index: graphid [api/classes/class.cgraph.php:383]
Undefined index: graphid [api/classes/class.cgraph.php:389]
Undefined index: graphid [api/classes/class.cgraph.php:390]
Undefined index: graphid [api/classes/class.cgraph.php:425]

Comment by Alexey Fukalov [ 2011 Sep 19 ]

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-3987

Comment by Alexey Fukalov [ 2011 Sep 19 ]

svn://svn.zabbix.com/trunk 21752





[ZBX-3999] map border not drawn anymore Created: 2011 Aug 01  Updated: 2017 May 30  Resolved: 2011 Sep 22

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.5 (alpha)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: maps, regression, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: JPEG File no-spacing.jpg    

 Description   

regression : after merging ZBXNEXT-674 map border is not drawn anymore for individual maps or in screens.

when fixing this, border should not appear for hostgroup area



 Comments   
Comment by Alexei Vladishev [ 2011 Sep 15 ]

Fixed, ready for testing.

Note that the border is displayed even if a full-map host group area is used.

Comment by Eduards Samersovs (Inactive) [ 2011 Sep 22 ]

trunk revision 21855





[ZBX-4003] foreign key constraint fails when updating global config Created: 2011 Aug 02  Updated: 2017 May 30  Resolved: 2011 Sep 28

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.5 (alpha)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: sql
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

open administration -> general, select some host group for discovered hosts. delete this group in another tab. attempt to save general settings :

Error in query [update config set refresh_unsupported='600',alert_usrgrpid=7,discovery_groupid='77',severity_name_0='Not classified',severity_name_1='Information',severity_name_2='Warning',severity_name_3='Average',severity_name_4='High',severity_name_5='Disaster' where ((configid BETWEEN 000000000000000 AND 099999999999999))] [Cannot add or update a child row: a foreign key constraint fails (`zabbix_1_9`.`config`, CONSTRAINT `c_config_2` FOREIGN KEY (`discovery_groupid`) REFERENCES `groups` (`groupid`))]

there is a check for user group there, but not for the host group.

suspecting same would happen over the api.



 Comments   
Comment by richlv [ 2011 Aug 21 ]

ZBX-4061 is similar

Comment by Alexey Fukalov [ 2011 Sep 28 ]

svn://svn.zabbix.com/branches/dev/ZBX-4003

Comment by Aleksandrs Saveljevs [ 2011 Sep 29 ]

Tested. Seems that updating config table over API is not possible.

Comment by Alexey Fukalov [ 2011 Sep 29 ]

svn://svn.zabbix.com/trunk 22039





[ZBX-4026] SNMP Host not being disabled when unreachable Created: 2011 Aug 09  Updated: 2017 May 30  Resolved: 2012 Jan 29

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P), Server (S)
Affects Version/s: 1.9.5 (alpha)
Fix Version/s: 1.8.9, 1.9.7 (beta)

Type: Incident report Priority: Blocker
Reporter: SpiderX Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: pollers, server, snmp, snmpv3
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File zabbix_hosts.png     PNG File zabbix_hosts_items.png     PNG File zabbix_last_20.png     PNG File zabbix_latest_data.png    
Issue Links:
Duplicate
is duplicated by ZBX-3798 snmp host not being disabled even if ... Closed

 Description   

The problem is similar to https://support.zabbix.com/browse/ZBX-3798.
The only difference is that I use SNMPv3 authPriv (SNMPv3 security name, SNMPv3 auth passphrase, SNMPv3 priv passphrase defined through Template Macros) and Zabbix 1.9.5.



 Comments   
Comment by Oleksii Zagorskyi [ 2011 Aug 10 ]

Related forum thread http://www.zabbix.com/forum/showthread.php?t=22922

Comment by SpiderX [ 2011 Aug 11 ]

Added some screenshots to clarify issue.
zabbix_lates_data actually shows the problem. All pollers load is 100% at the same time PollerUnrechable load is 0%.
zabbix_last_20 shows that there are unreachable hosts. Trigger used for this notification is

{zbx_tpl_soft_service_reachability-1:icmpping.max(90)}

=0.
zabbix_hosts shows that hosts are still available when they are unavailable 40 min (see zabbix_last_20).
zabbix_hosts_items shows that items in this hosts are not supported.

Comment by SpiderX [ 2011 Aug 11 ]

Zabbix server config:
UnreachablePeriod=450
UnavailableDelay=600
UnreachableDelay=150

Comment by dimir [ 2011 Sep 19 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-4026 .

Comment by dimir [ 2011 Sep 19 ]

The fix is for 1.8 as it's reproducible there too.

Comment by dimir [ 2011 Sep 20 ]

@SpiderX: would it be possible if I ask you to check the reason of unsupported items in GUI (see zabbix_hosts_items.png, you can navigate mouse cursor on the Error icon in the "Error" column)? Just to confirm, I assume it should be "SNMP error [1]".

Comment by SpiderX [ 2011 Sep 20 ]

You are right. It shows "SNMP error [1]".

Comment by dimir [ 2011 Sep 20 ]

Thanks.

Comment by dimir [ 2011 Oct 04 ]

Fixed in 1.8.9rc1 r22133, trunk r22141.





[ZBX-4045] Crash in DCsync_hosts() Created: 2011 Aug 12  Updated: 2017 May 30  Resolved: 2011 Oct 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P), Server (S)
Affects Version/s: 1.8.7, 1.9.5 (alpha), 2.0.0
Fix Version/s: 1.8.9, 1.9.7 (beta)

Type: Incident report Priority: Critical
Reporter: Rudolfs Kreicbergs Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: distributed
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Hosts.png     File crash.0x808803e     PNG File discovery.png     File zabbix_server.log    
Issue Links:
Duplicate

 Description   

Crash in DCsync_hosts(). See attachment:
13235:20110812:180024.044 ====== Fatal information: ======
13235:20110812:180024.044 Program counter: 0x808803e

This is caused by duplicate hosts (hosts that have the same name).



 Comments   
Comment by Rudolfs Kreicbergs [ 2011 Aug 15 ]

The cause is probably the same as in ZBX-4020 - when running multiple discoverers, identical hosts can be created. (Attached screenshots)

The crash happens when these multiple entries are deleted and DCsync_hosts() is called - it is presumed, that each host has a separate entry in hosts_ph, but in this case it is deleted with the first host and the second hosts does not get an entry and thus crashes when uses NULL entry.

Comment by Rudolfs Kreicbergs [ 2011 Aug 25 ]

Fixed/available in svn://svn.zabbix.com/branches/dev/ZBX-4045

Added code that catches that case (duplicate hosts), logs an error and exits properly.

Comment by Alexander Vladishev [ 2011 Aug 26 ]

Successfully tested!

Comment by Rudolfs Kreicbergs [ 2011 Sep 01 ]

Fixed/available in pre-1.8.8 r21402 and pre-1.9.6 r21405.

If duplicate hosts or proxies are found, a warning is logged and the server/proxy exits.

Comment by richlv [ 2011 Sep 05 ]

trunk changelog only listed hosts (omitting proxies), fixed in rev 21497.

Comment by Alexander Vladishev [ 2011 Oct 04 ]

Server stops with error "Error: duplicate hosts [***] found. Exiting...", when we:

  • add new host
  • (configuration refresh)
  • delete host
  • add host with same name
  • (configuration refresh)
Comment by Aleksandrs Saveljevs [ 2011 Oct 07 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-4045 .

Since detection of duplicate hosts is not trivial without consuming additional resources and duplicate hosts should not happen anyway, the check for duplicate hosts and stopping of server have been removed. What we try to do now is just do not crash and function properly for one of the duplicate hosts, less properly for the rest.

Comment by Aleksandrs Saveljevs [ 2011 Oct 11 ]

Fix for 1.8 is available in pre-1.8.9 in r22276. Fix for trunk will be done separately.

Comment by Aleksandrs Saveljevs [ 2011 Oct 11 ]

Fix for trunk available in development branch with the same URL: svn://svn.zabbix.com/branches/dev/ZBX-4045 .

Comment by Aleksandrs Saveljevs [ 2011 Oct 13 ]

Fix for trunk is available in pre-1.9.7 in r22352.





[ZBX-4060] Error when save map after link update. Created: 2011 Aug 19  Updated: 2017 May 30  Resolved: 2011 Sep 28

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.5 (alpha)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Alexey Fukalov Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: maps
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

1. Open existing map with at least 2 elements and 1 link.
2. Add new element.
3. Update existing link, so that it connect newly created element.
4. Try save map.



 Comments   
Comment by richlv [ 2011 Sep 04 ]

still the same in trunk rev 21476.

Comment by Alexey Fukalov [ 2011 Sep 28 ]

svn://svn.zabbix.com/branches/dev/ZBX-4060

Comment by Alexey Fukalov [ 2011 Sep 29 ]

svn://svn.zabbix.com/trunk 22055





[ZBX-4091] agent, get & sender links against unneeded libraries Created: 2011 Aug 31  Updated: 2017 May 30  Resolved: 2011 Sep 15

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G), Installation (I)
Affects Version/s: 1.8.7rc1
Fix Version/s: 1.8.9, 1.9.7 (beta)

Type: Incident report Priority: Blocker
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: compilation, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

1. if libcurl development headers are present on the system, libcurl is compiled in zabbix_agent, agentd, get & sender. that, of course, created useless dependencies and increases binary size.

brought in by libcurl just being present :

libcurl.so.4 => /usr/lib/libcurl.so.4 (0xb77bb000)
libidn.so.11 => /usr/lib/libidn.so.11 (0xb75d2000)
libldap-2.4.so.2 => /usr/lib/libldap-2.4.so.2 (0xb758a000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0xb7553000)
libssl.so.1.0.0 => /lib/libssl.so.1.0.0 (0xb74fc000)
libcrypto.so.1.0.0 => /lib/libcrypto.so.1.0.0 (0xb735b000)
libz.so.1 => /lib/libz.so.1 (0xb7347000)
libssh2.so.1 => /usr/lib/libssh2.so.1 (0xb7320000)
liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0xb72f5000)
libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xb72da000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0xb7211000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0xb71e9000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0xb71e4000)
libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0xb71db000)
libdl.so.2 => /lib/libdl.so.2 (0xb71d6000)
libkeyutils.so.1 => /lib/libkeyutils.so.1 (0xb71d1000)

totalling 16 libs and ~ 62KB increase in agentd binary, for example

2. there apparently is also some way to link sqlite3 into all these binaries, as has happened with zabbix opensuse package at http://software.opensuse.org/search/download?base=openSUSE%3A11.4&file=server%3A%2Fmonitoring%2FopenSUSE_11.4%2Fi586%2Fzabbix-agent-1.8.5-1.1.i586.rpm&query=zabbix



 Comments   
Comment by richlv [ 2011 Aug 31 ]

same issue was fixed for proxy as ZBX-3218

Comment by Rudolfs Kreicbergs [ 2011 Sep 14 ]

Apparently this example (libCurl) was found in 1.9.* branch where libCurl indeed is needed for the agent. However, it is not needed for get and sender. Will add separate flags for the agent in a similar fashion as done for the server and proxy.

Please create a new ZBX regarding linked sqlite3 - could not reproduce nor find the reason for such behaviour.

Comment by Rudolfs Kreicbergs [ 2011 Sep 14 ]

Fixed in dev branch: svn://svn.zabbix.com/branches/dev/ZBX-4091

Removed linking to libCurl for get and sender. Since simple.c is used in server, proxy and agent code, all of these components need libCurl - currently all components use a single object file for each *.c file.

Comment by Rudolfs Kreicbergs [ 2011 Sep 28 ]

Fixed in pre-1.8.9 r21984 and pre-1.9.7 r21986.





[ZBX-4105] Not working button Delete in dashconf Created: 2011 Sep 03  Updated: 2017 May 30  Resolved: 2011 Sep 14

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.6 (beta)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Alexey Pustovalov Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: patch, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Index: dashconf.php
===================================================================
— dashconf.php (revision 21476)
+++ dashconf.php (working copy)
@@ -194,7 +194,7 @@
$addButton = new CButton('add', S_ADD, "return PopUp('popup_right.php?dstfrm=" . $dashForm->getName() . "&permission=" . PERM_READ_WRITE . "',450,450);");
$addButton->setEnabled($filterEnable);

  • $delButton = new CButton('delete', S_DELETE_SELECTED);
    + $delButton = new CSubmit('delete', S_DELETE_SELECTED);
    $delButton->setEnabled($filterEnable);

$dashList->addRow(



 Comments   
Comment by richlv [ 2011 Sep 12 ]

this is for hostgroups in dashboard filter - confirming the problem in trunk rev 21617.

Comment by Alexei Vladishev [ 2011 Sep 23 ]

Fixed in revision 21909.





[ZBX-4104] using closed handle in libs/zbxexec/execute.c zbx_execute() Created: 2011 Sep 03  Updated: 2017 May 30  Resolved: 2011 Sep 14

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 1.8.7
Fix Version/s: 1.8.9, 1.9.7 (beta)

Type: Incident report Priority: Major
Reporter: alix Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File execute.c.patch     File execute.c.patch.unified    

 Description   

libs/zbxexec/execute.c zbx_execute() code, which is supposed to wait for launched process finish, is accessing previously closed handle in WaitForSingleObject() call.
it results in sporadical false execute timeouts.

also MSDN recommends calling SetHandleInformation() for read pipe handle for reasons unknown, and I trust them in that.

patch for 1.8.7 is attached



 Comments   
Comment by alix [ 2011 Sep 08 ]

diff -u

Comment by Rudolfs Kreicbergs [ 2011 Sep 09 ]

Thanks, alix, for spotting this. The correct solution is actually to call WaitForSingleObject() for the job - it is signaled when all the processes are done.

Could you please send a link to the article about the SetHandleInformation() call? I would like to get to the bottom of the problem, thanks!

Comment by alix [ 2011 Sep 09 ]

ah right, there's also a job... I suppose I can try to test WaitForSingleObject() for job on my hosts, alright.

here's a MSDN article I mentioned: http://msdn.microsoft.com/en-us/library/ms682499(v=vs.85).aspx

Comment by Rudolfs Kreicbergs [ 2011 Sep 09 ]

Thanks, I found the same one - I'll look more into it. It seems a bit weird that we need to call SetHandleInformation() on a handle, that we do not pass to the child process.

Comment by alix [ 2011 Sep 09 ]

according to my week-length test, it doesn't harm either, so I'd like to be on a safe side here.

Comment by alix [ 2011 Sep 09 ]

I've tried the suggested change (replace process handle with job handle in WaitForSingleObject() call) and I'm getting random WAIT_TIMEOUT results in approximately 50% calls.
I don't really understand why the jobs are involved, isn't enough to spawn child processes directly?

Comment by alix [ 2011 Sep 09 ]

disregard the 50% number in previous comment - after a while all my userparameter items are turned into not supported

Comment by Rudolfs Kreicbergs [ 2011 Sep 12 ]

Jobs are used to handle process trees - the initial child may exit before the whole tree has finished. We can add the whole process tree to a job and then monitor the job instance.

It looks like waiting for the job to finish will be not as easy as it seemed in the beginning - WaitForSingleObject() does not work (i.e. times out) in my tests as well opposed to what is written in MSDN: http://msdn.microsoft.com/en-us/library/ms684161%28v=VS.85%29.aspx#managing_job_objects . Let's see how to solve this....

Comment by alix [ 2011 Sep 12 ]

I'm still not convinced about jobs. we're launching a single process and it won't exit until all subprocesses it starts are finished. at least my tests show that this approach works flawless, and I'm starting quite a number things piped together in my userparameters.
of course process can launch something 'detached' from itself, and we don't care about the fate of these detached childs and thus don't need to wait for them.

I heard there are plans to make simultaneous, not consecutive userparameter checks and maybe then jobs will be useful.

Comment by Rudolfs Kreicbergs [ 2011 Sep 12 ]

In general, there is no guaranty that a child will not exit before it's children do - "detached" child process is a normal case. Moreover, even if we call a process that will not exit before it's children do, timeout may occur and we would still need other means of killing the process tree - that's why jobs were introduced in ZBX-3519.

Comment by alix [ 2011 Sep 12 ]

it's pretty interesting, and is right, in theory. but I'd like to test what exactly happens when children of a parent (and thus parent) hits timeout value and we have to kill its parent process. I'll report what I've found.

Comment by Rudolfs Kreicbergs [ 2011 Sep 13 ]

MSDN suggests 2 solutions:
1) http://msdn.microsoft.com/en-us/library/ms684161%28v=VS.85%29.aspx
Use WaitForSingleObject() on job handle which should return on either timeout or when the job gets signaled after all associated processes have exited - that simply does not work at all. Found no additional info on the requirements on this setup, however, found a warning that the job might get signaled in other cases as well.
2) http://msdn.microsoft.com/en-us/library/aa365198%28v=vs.85%29.aspx
Use I/O completion ports. However, that requires a separate thread to be monitoring the completion port (otherwise, we might get a race condition when the job is completed before we start monitoring the port). Furthermore, MSDN states that "delivery of messages to the completion port is not guaranteed" which make this solution also unusable.

Thus we come to two "bad" options:
A) Wait for the main process - if the first child exits, we assume that all scripts should have finished and force-kill all other processes still associated with the job. This means that users should always keep the main process running until everything is finished.
B) Query jobs process count every N miliseconds till it is zero or a timeout occurs.

After talking to Sasha, decided to implement option A since it is rather reasonable and option B is really dirty. If there is a better solution, please let us know.

Comment by alix [ 2011 Sep 13 ]

yesterday I experimented with jobs too and couldn't make WaitForSingleObject (I've also tried WaitForMultipleObjects) to signal when spawned process is finished. we just sit there until timeout hits despite the fact that spawned process and all its children has already been finished.

so basically we're stuck with what I've suggested in the first place it still is a pretty reasonable solution.
I'll keep this task in my head anyway and post if something interesting pops up. there's got to be a way to force jobs do what we want.

Comment by Rudolfs Kreicbergs [ 2011 Sep 13 ]

So it seems Moreover, my tests show that all the waiting is done in zbx_read_from_pipe() even when we have "detached" child processes - the output handle is kept open till the last process in the child tree exits (though I'm pretty sure there are other cases as well).

Comment by Rudolfs Kreicbergs [ 2011 Sep 14 ]

Regarding handle inheritance, there is an article in MSDN explaining it: http://msdn.microsoft.com/en-us/library/aa365782%28v=vs.85%29.aspx

It seems that we do NOT need to remove handle inheritance. Removing handle inheritance is important in a different situation:
1) We create a pipe in the parent process
2) Pass the read end to the child process
3) Run the child process and call ReadFile() in the child process() till it returns 0 and sets the error to ERROR_HANDLE_EOF (end of file)
4) Write the data to the pipe and use CloseHandle() to indicate that all data has been sent
5) Child process does not get ERROR_HANDLE_EOF since the child has inherited the write end of the pipe as well and it has not been closed that handle - only when ALL handles are closed the child will get ERROR_HANDLE_EOF.
If inheritance for the write end of the pipe had been removed, the child process would have correctly received ERROR_HANDLE_EOF.

In our case we pass the write end of the handle and in fact this ensures that we will read all the input of the child and it's child processes if the handle gets inherited to the whole tree - even if the first child exits, the parent will wait till all the handles are closed. So it is even more unlikely that waiting for the initial child process after reading from the pipe will do any harm as compared to waiting for the whole process tree if it was possible.

Note that the parent process does not pass the read handle and keeps it open till either a timeout occurs or the other end is closed by all child processes (and thus no process should be interested whether we are still keeping it open). So in our case there is no need to remove the inheritance for the read end.

Comment by Rudolfs Kreicbergs [ 2011 Sep 14 ]

Fixed in dev branch: svn://svn.zabbix.com/branches/dev/ZBX-4104

Comment by richlv [ 2011 Sep 21 ]

timeouts for scripts on windows also mentioned at ZBX-4156

Comment by Rudolfs Kreicbergs [ 2011 Sep 28 ]

Fixed in pre-1.8.9 r21989 and pre-1.9.7 r21990.





[ZBX-4118] Undefined index graphid in Monitoring->Graphs Created: 2011 Sep 08  Updated: 2017 May 30  Resolved: 2011 Sep 20

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.6 (beta)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Alexey Pustovalov Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: graphs, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

trunk revision


Attachments: PNG File unfed_index_graphid.png    
Issue Links:
Duplicate
duplicates ZBX-3987 Undefined index: graphid (api/classes... Closed

 Description   

If default selected 'None' in api/classes/class.cgraph.php have errors about undef indexes



 Comments   
Comment by Alexei Vladishev [ 2011 Sep 15 ]

It looks very much like a duplicate issue, I will find which one it duplicates later on.





[ZBX-4119] Host interface for simple checks Created: 2011 Sep 08  Updated: 2017 May 30  Resolved: 2011 Oct 03

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.6 (beta)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Alexey Pustovalov Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: hostinterfaces
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

trunk revision



 Description   

cannot add simple checks, if host have only snmp interface. Error about not found interface.



 Comments   
Comment by Alexey Fukalov [ 2011 Sep 23 ]

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-4119

Now creation of items with incorrect interface type must result in error, For simple checks host must have Agent interface.

Comment by richlv [ 2011 Sep 23 ]

(1) i believe simple checks should be allowed for any interface type - why not allow pinging an snmp device ?
it wouldn't make sense to add another agent interface just to ping that host - that's not agent anyway...

<Vedmak> RESOLVED

<asaveljevs> Please review my changes in r22076.

<Vedmak> CLOSED

Comment by Alexey Pustovalov [ 2011 Sep 23 ]

I agree with Richlv

Comment by Alexey Fukalov [ 2011 Sep 26 ]

All items that require interface except agent, snmp, jmx and ipmi will be able to use any interface.

Linkage priority:
1. agent
2. snmp
3. jmx
4. ipmi

Comment by richlv [ 2011 Sep 26 ]

(2) things like which item types require what interface types & priority should be documented

<Vedmak> Could you please add this to documentation, or point me where to add this info?

As i see there someone added docs: http://www.zabbix.com/documentation/2.0/manual/config/items/itemtypes

Comment by Aleksandrs Saveljevs [ 2011 Oct 03 ]

(3) In frontends/php/api/classes/class.citemgeneral.php:197 there is a conditional that disallows SNMP items with port 65535. Why so?

<Vedmak> RESOLVED

<asaveljevs> CLOSED

Comment by Alexey Fukalov [ 2011 Oct 04 ]

svn://svn.zabbix.com/trunk 22136





[ZBX-4120] Templated screens not working Created: 2011 Sep 08  Updated: 2017 May 30  Resolved: 2011 Oct 27

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.6 (beta)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Alexey Pustovalov Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: api, screens, templates
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

lastest trunk revision



 Description   

If template (only static snmp items) have screen. Screen not inherited to host with thise template (tested linking via API and GUI)



 Comments   
Comment by Alexei Vladishev [ 2011 Oct 27 ]

The templated screens are available in Monitoring->Hosts, they are not supposed to be in Monitoring->Screens.

Comment by Alexey Pustovalov [ 2011 Oct 27 ]

ooohh... thanks. i think then this issue need close





[ZBX-4115] zabbix_java makefile doesn't use $(DESTDIR) Created: 2011 Sep 07  Updated: 2017 May 30  Resolved: 2011 Nov 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Java gateway (J)
Affects Version/s: 1.9.6 (beta)
Fix Version/s: 1.9.7 (beta)

Type: Incident report Priority: Major
Reporter: Volker Fröhlich Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: javagateway
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The install section misses $(DESTDIR). (At least I think so. I don't know the Autotools well.)

...
mkdir -p $(sbindir)/zabbix_java/bin
mkdir -p $(sbindir)/zabbix_java/lib
...
and others

The path should not be absolute, if the user wants to install to a different directory.



 Comments   
Comment by Aleksandrs Saveljevs [ 2011 Nov 07 ]

Thanks! Already fixed by Vladimir Levijev in Zabbix 1.9.7 under ZBX-1020.





[ZBX-4132] Combobox cookie not removed when deleting entries Created: 2011 Sep 12  Updated: 2017 May 30  Resolved: 2014 Oct 05

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.6
Fix Version/s: 1.9.7 (beta)

Type: Incident report Priority: Minor
Reporter: Frank Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: trivial, usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian 6


Issue Links:
Duplicate
duplicates ZBX-6663 select all checkbox lost selected sta... Closed

 Description   

When selecting entries, such as maintenance periods selecting "Delete selected" and clicking "Go (x)" deletes the entry/entries, but leaves the cookie set.
Because of this, any subsequent remove will fail with a "you do not have permission" message, which is caused because that specific object ID does not exist anymore.



 Comments   
Comment by Igor Danoshaites (Inactive) [ 2011 Oct 13 ]

Confirm the fix in dev branch ZBXNEXT-910.

Comment by Eduards Samersovs (Inactive) [ 2011 Oct 17 ]

trunk revision 22442

Comment by Frank [ 2012 Nov 12 ]

This is still an issue in the latest stable (2.0.3).

Comment by Alexander Vladishev [ 2014 Oct 05 ]

Already fixed under ZBX-6663 in version 2.2.0. I close the issue.





[ZBX-4133] Crash daemon zabbix server Created: 2011 Sep 12  Updated: 2017 May 30  Resolved: 2011 Sep 22

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 1.9.7 (beta)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Alexey Pustovalov Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: crash, server
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

lastest trunk, only snmp checks compiled.



 Description   

6367:20110912:134642.984 Enabling SNMP host [bs03850.is74.ru]
6382:20110912:134654.799 Enabling SNMP host [bs03791.is74.ru]
6367:20110912:134704.038 Disabling SNMP host [bs55213.is74.ru]

      • glibc detected *** /usr/local/sbin/zabbix_server: double free or corruption (top): 0x00000000008e8500 ***
        ======= Backtrace: =========
        /lib64/libc.so.6(+0x72756)[0x7f3a3859f756]
        /lib64/libc.so.6(cfree+0x6c)[0x7f3a385a460c]
        /usr/local/sbin/zabbix_server(free_result+0xff)[0x4359ac]
        /usr/local/sbin/zabbix_server[0x41de3b]
        /usr/local/sbin/zabbix_server(main_poller_loop+0xa8)[0x41df23]
        /usr/local/sbin/zabbix_server(MAIN_ZABBIX_ENTRY+0x660)[0x4131fe]
        /usr/local/sbin/zabbix_server(daemon_start+0x41b)[0x4557aa]
        /usr/local/sbin/zabbix_server(main+0x200)[0x412b97]
        /lib64/libc.so.6(__libc_start_main+0xfd)[0x7f3a3854bcdd]
        /usr/local/sbin/zabbix_server[0x40e489]
        ======= Memory map: ========
        00400000-00507000 r-xp 00000000 08:07 1186555 /usr/local/sbin/zabbix_server (deleted)
        00706000-00707000 r--p 00106000 08:07 1186555 /usr/local/sbin/zabbix_server (deleted)
        00707000-0070b000 rw-p 00107000 08:07 1186555 /usr/local/sbin/zabbix_server (deleted)
        0070b000-00711000 rw-p 00000000 00:00 0
        00829000-0084a000 rw-p 00000000 00:00 0 [heap]
        0084a000-00879000 rw-p 00000000 00:00 0 [heap]
        00879000-0090d000 rw-p 00000000 00:00 0 [heap]
        7f39dc000000-7f39dc021000 rw-p 00000000 00:00 0
        7f39dc021000-7f39e0000000 ---p 00000000 00:00 0
        7f39e1c56000-7f39e1c6b000 r-xp 00000000 08:02 131632 /lib64/libgcc_s.so.1
        7f39e1c6b000-7f39e1e6a000 ---p 00015000 08:02 131632 /lib64/libgcc_s.so.1
        7f39e1e6a000-7f39e1e6b000 r--p 00014000 08:02 131632 /lib64/libgcc_s.so.1
        7f39e1e6b000-7f39e1e6c000 rw-p 00015000 08:02 131632 /lib64/libgcc_s.so.1
        7f39e1e6c000-7f39e1e71000 r-xp 00000000 08:02 131601 /lib64/libnss_dns-2.12.2.so
        7f39e1e71000-7f39e2070000 ---p 00005000 08:02 131601 /lib64/libnss_dns-2.12.2.so
        7f39e2070000-7f39e2071000 r--p 00004000 08:02 131601 /lib64/libnss_dns-2.12.2.so
        7f39e2071000-7f39e2072000 rw-p 00005000 08:02 131601 /lib64/libnss_dns-2.12.2.so
        7f39e2072000-7f39e23bc000 r--p 00000000 08:07 393629 /usr/lib64/locale/locale-archive
        7f39e23bc000-7f39e23d1000 rw-s 00000000 00:04 21626886 /SYSV530202c6 (deleted)
        7f39e23d1000-7f39ebd6b000 rw-s 00000000 00:04 21594117 /SYSV730202c6 (deleted)
        7f39ebd6b000-7f3a223d2000 rw-s 00000000 00:04 21561348 /SYSV670202c6 (deleted)
        7f3a223d2000-7f3a323d3000 rw-s 00000000 00:04 21528579 /SYSV740202c6 (deleted)
        7f3a323d3000-7f3a333d4000 rw-s 00000000 00:04 21495810 /SYSV780202c6 (deleted)
        7f3a333d4000-7f3a3745e000 rw-s 00000000 00:04 21463041 /SYSV680202c6 (deleted)
        7f3a3745e000-7f3a3746a000 r-xp 00000000 08:02 131603 /lib64/libnss_files-2.12.2.so
        7f3a3746a000-7f3a37669000 ---p 0000c000 08:02 131603 /lib64/libnss_files-2.12.2.so
        7f3a37669000-7f3a3766a000 r--p 0000b000 08:02 131603 /lib64/libnss_files-2.12.2.so
        7f3a3766a000-7f3a3766b000 rw-p 0000c000 08:02 131603 /lib64/libnss_files-2.12.2.so
        7f3a3766b000-7f3a37675000 r-xp 00000000 08:02 131599 /lib64/libnss_nis-2.12.2.so
        7f3a37675000-7f3a37875000 ---p 0000a000 08:02 131599 /lib64/libnss_nis-2.12.2.so
        7f3a37875000-7f3a37876000 r--p 0000a000 08:02 131599 /lib64/libnss_nis-2.12.2.so
        7f3a37876000-7f3a37877000 rw-p 0000b000 08:02 131599 /lib64/libnss_nis-2.12.2.so
        7f3a37877000-7f3a3788c000 r-xp 00000000 08:02 131605 /lib64/libnsl-2.12.2.so
        7f3a3788c000-7f3a37a8b000 ---p 00015000 08:02 131605 /lib64/libnsl-2.12.2.so
        7f3a37a8b000-7f3a37a8c000 r--p 00014000 08:02 131605 /lib64/libnsl-2.12.2.so
        7f3a37a8c000-7f3a37a8d000 rw-p 00015000 08:02 131605 /lib64/libnsl-2.12.2.so
        7f3a37a8d000-7f3a37a8f000 rw-p 00000000 00:00 0
        7f3a37a8f000-7f3a37a96000 r-xp 00000000 08:02 131618 /lib64/libnss_compat-2.12.2.so
        7f3a37a96000-7f3a37c95000 ---p 00007000 08:02 131618 /lib64/libnss_compat-2.12.2.so
        7f3a37c95000-7f3a37c96000 r--p 00006000 08:02 131618 /lib64/libnss_compat-2.12.2.so
        7f3a37c96000-7f3a37c97000 rw-p 00007000 08:02 131618 /lib64/libnss_compat-2.12.2.so
        7f3a37c97000-7f3a37caf000 r-xp 00000000 08:02 131607 /lib64/libpthread-2.12.2.so
        7f3a37c97000-7f3a37caf000 r-xp 00000000 08:02 131607 /lib64/libpthread-2.12.2.so
        7f3a37caf000-7f3a37eae000 ---p 00018000 08:02 131607 /lib64/libpthread-2.12.2.so
        7f3a37eae000-7f3a37eaf000 r--p 00017000 08:02 131607 /lib64/libpthread-2.12.2.so
        7f3a37eaf000-7f3a37eb0000 rw-p 00018000 08:02 131607 /lib64/libpthread-2.12.2.so
        7f3a37eb0000-7f3a37eb4000 rw-p 00000000 00:00 0
        7f3a37eb4000-7f3a37f09000 r-xp 00000000 08:07 393482 /usr/lib64/libssl.so.1.0.0
        7f3a37f09000-7f3a38109000 ---p 00055000 08:07 393482 /usr/lib64/libssl.so.1.0.0
        7f3a38109000-7f3a3810c000 r--p 00055000 08:07 393482 /usr/lib64/libssl.so.1.0.0
        7f3a3810c000-7f3a38111000 rw-p 00058000 08:07 393482 /usr/lib64/libssl.so.1.0.0
        7f3a38111000-7f3a38127000 r-xp 00000000 08:02 131114 /lib64/libz.so.1.2.5
        7f3a38127000-7f3a38327000 ---p 00016000 08:02 131114 /lib64/libz.so.1.2.5
        7f3a38327000-7f3a38328000 r--p 00016000 08:02 131114 /lib64/libz.so.1.2.5
        7f3a38328000-7f3a38329000 rw-p 00017000 08:02 131114 /lib64/libz.so.1.2.5
        7f3a38329000-7f3a3832b000 r-xp 00000000 08:02 131611 /lib64/libdl-2.12.2.so
        7f3a3832b000-7f3a3852b000 ---p 00002000 08:02 131611 /lib64/libdl-2.12.2.so
        7f3a3852b000-7f3a3852c000 r--p 00002000 08:02 131611 /lib64/libdl-2.12.2.so
        7f3a3852c000-7f3a3852d000 rw-p 00003000 08:02 131611 /lib64/libdl-2.12.2.so
        7f3a3852d000-7f3a3868f000 r-xp 00000000 08:02 131616 /lib64/libc-2.12.2.so
        7f3a3868f000-7f3a3888e000 ---p 00162000 08:02 131616 /lib64/libc-2.12.2.so
        7f3a3888e000-7f3a38892000 r--p 00161000 08:02 131616 /lib64/libc-2.12.2.so
        7f3a38892000-7f3a38893000 rw-p 00165000 08:02 131616 /lib64/libc-2.12.2.so
        7f3a38893000-7f3a38898000 rw-p 00000000 00:00 0
        7f3a38898000-7f3a388ab000 r-xp 00000000 08:02 131593 /lib64/libresolv-2.12.2.so
        7f3a388ab000-7f3a38aab000 ---p 00013000 08:02 131593 /lib64/libresolv-2.12.2.so
        7f3a38aab000-7f3a38aac000 r--p 00013000 08:02 131593 /lib64/libresolv-2.12.2.so
        7f3a38aac000-7f3a38aad000 rw-p 00014000 08:02 131593 /lib64/libresolv-2.12.2.so
        7f3a38aad000-7f3a38aaf000 rw-p 00000000 00:00 0
        7f3a38aaf000-7f3a38ab7000 r-xp 00000000 08:02 131598 /lib64/librt-2.12.2.so
        7f3a38ab7000-7f3a38cb6000 ---p 00008000 08:02 131598 /lib64/librt-2.12.2.so
        7f3a38cb6000-7f3a38cb7000 r--p 00007000 08:02 131598 /lib64/librt-2.12.2.so
        7f3a38cb7000-7f3a38cb8000 rw-p 00008000 08:02 131598 /lib64/librt-2.12.2.so
        7f3a38cb8000-7f3a38d39000 r-xp 00000000 08:02 131615 /lib64/libm-2.12.2.so
        7f3a38d39000-7f3a38f38000 ---p 00081000 08:02 131615 /lib64/libm-2.12.2.so
        7f3a38f38000-7f3a38f39000 r--p 00080000 08:02 131615 /lib64/libm-2.12.2.so
        7f3a38f39000-7f3a38f3a000 rw-p 00081000 08:02 131615 /lib64/libm-2.12.2.so
        7f3a38f3a000-7f3a38f46000 r-xp 00000000 08:07 393745 /usr/lib64/libiksemel.so.3.1.0
        7f3a38f46000-7f3a39145000 ---p 0000c000 08:07 393745 /usr/lib64/libiksemel.so.3.1.0
        7f3a39145000-7f3a39146000 r--p 0000b000 08:07 393745 /usr/lib64/libiksemel.so.3.1.0
        7f3a39146000-7f3a39147000 rw-p 0000c000 08:07 393745 /usr/lib64/libiksemel.so.3.1.0
        7f3a39147000-7f3a3927e000 r-xp 00000000 08:07 404930 /usr/lib64/mysql/libmysqlclient.so.16.0.0
        7f3a3927e000-7f3a3947d000 ---p 00137000 08:07 404930 /usr/lib64/mysql/libmysqlclient.so.16.0.0
        7f3a3947d000-7f3a39480000 r--p 00136000 08:07 404930 /usr/lib64/mysql/libmysqlclient.so.16.0.0
        7f3a39480000-7f3a394ca000 rw-p 00139000 08:07 404930 /usr/lib64/mysql/libmysqlclient.so.16.0.0
        7f3a394ca000-7f3a394cc000 rw-p 00000000 00:00 0
        7f3a394cc000-7f3a39656000 r-xp 00000000 08:07 396691 /usr/lib64/libcrypto.so.1.0.0
        7f3a39656000-7f3a39856000 ---p 0018a000 08:07 396691 /usr/lib64/libcrypto.so.1.0.0
        7f3a39856000-7f3a3986f000 r--p 0018a000 08:07 396691 /usr/lib64/libcrypto.so.1.0.0
        7f3a3986f000-7f3a39879000 rw-p 001a3000 08:07 396691 /usr/lib64/libcrypto.so.1.0.0
        7f3a39879000-7f3a3987d000 rw-p 00000000 00:00 0
        7f3a3987d000-7f3a39914000 r-xp 00000000 08:07 395417 /usr/lib64/libnetsnmp.so.15.1.2
        7f3a39914000-7f3a39b14000 ---p 00097000 08:07 395417 /usr/lib64/libnetsnmp.so.15.1.2
        7f3a39b14000-7f3a39b15000 r--p 00097000 08:07 395417 /usr/lib64/libnetsnmp.so.15.1.2
        7f3a39b15000-7f3a39b18000 rw-p 00098000 08:07 395417 /usr/lib64/libnetsnmp.so.15.1.2
        7f3a39b18000-7f3a39b4d000 rw-p 00000000 00:00 0
        7f3a39b4d000-7f3a39b6b000 r-xp 00000000 08:02 131591 /lib64/ld-2.12.2.so
        7f3a39d5c000-7f3a39d63000 rw-p 00000000 00:00 0
        7f3a39d68000-7f3a39d69000 rw-p 00000000 00:00 0
        7f3a39d69000-7f3a39d6a000 rw-p 00000000 00:00 0
        7f3a39d69000-7f3a39d6a000 rw-p 00000000 00:00 0
        7f3a39d6a000-7f3a39d6b000 r--p 0001d000 08:02 131591 /lib64/ld-2.12.2.so
        7f3a39d6b000-7f3a39d6c000 rw-p 0001e000 08:02 131591 /lib64/ld-2.12.2.so
        7f3a39d6c000-7f3a39d6d000 rw-p 00000000 00:00 0
        7fffd8c78000-7fffd8cb8000 rw-p 00000000 00:00 0 [stack]
        7fffd8dff000-7fffd8e00000 r-xp 00000000 00:00 0 [vdso]
        ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
        6318:20110912:135213.497 One child process died (PID:6327,exitcode/signal:6). Exiting ...
        6318:20110912:135215.582 Syncing history data...


 Comments   
Comment by Aleksandrs Saveljevs [ 2011 Sep 22 ]

How often does the problem occur for you? Was this a single-time crash or it happens regularly and is easily reproducible?

Comment by Alexey Pustovalov [ 2011 Sep 22 ]

the problem occur for me only once. Single-time crash. Not reproducible. Settings not changing, but server working stable.

Comment by Aleksandrs Saveljevs [ 2011 Sep 22 ]

We think that this problem might or might not be related to ZBX-4151 - both reports are about corrupted heap memory. However, heap memory could become corrupted in any part of Zabbix server code, so investigating these issues without additional information is somewhat difficult. I propose we close this issue for now as "Cannot reproduce". Please reopen if a similar memory problem occurs again.





[ZBX-4135] can't select items for trigger expression Created: 2011 Sep 12  Updated: 2017 May 30  Resolved: 2011 Sep 12

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.8rc1
Fix Version/s: 1.8.8, 1.9.7 (beta)

Type: Incident report Priority: Blocker
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: regression, triggers
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBX-4137 Cannot select item when create trigger Closed

 Description   

create new trigger, 'add' for expression, 'select' for item, click on any item - depending on the browser, either item is filled, but popup does not close, or nothing happens, or an error is displayed.

seems to be a regression of :

r21545 | eduards | 2011-09-08 10:20:03 +0300 (Thu, 08 Sep 2011) | 1 line

  • ZBX-3676 fixed item selection in bar report


 Comments   
Comment by richlv [ 2011 Sep 12 ]

when fixing/testing this, it should be doublechecked that items bar reports can be selected

a hudson testcase for trigger creation is highly desired (and maybe one for bar reports...)

Comment by Eduards Samersovs (Inactive) [ 2011 Sep 12 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-4135

Comment by Eduards Samersovs (Inactive) [ 2011 Sep 13 ]

branches/1.8 revision 21629
trunk revision 21632





[ZBX-4143] upgrade script creates constraint before table Created: 2011 Sep 13  Updated: 2017 May 30  Resolved: 2011 Sep 14

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: 1.9.6 (beta)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Ghozlane TOUMI Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: upgrade
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

when using the upgrade script for mysql
around line 857 of the patch.sql, aconstraint c_icon_mapping_1 references icon_map before icon_map is created (a fex lines below),
resulting in a failed upgrade.



 Comments   
Comment by richlv [ 2011 Sep 14 ]

should be fixed in svn://svn.zabbix.com/branches/dev/ZBX-4143

Comment by richlv [ 2011 Sep 23 ]

fixed in rev 21883 (pre-1.9.7)





[ZBX-4150] Calculated items become unsupported (was: zabbix_server crashed) Created: 2011 Sep 15  Updated: 2017 May 30  Resolved: 2011 Sep 21

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 1.8.7
Fix Version/s: 1.8.8, 1.9.7 (beta)

Type: Incident report Priority: Critical
Reporter: Robert Jerzak Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

zabbix_server crashed a few times during the day:

30696:20110915:170253.244 Got signal [signal:11(SIGSEGV),reason:1,refaddr:(nil)]. Crashing ...
30696:20110915:170253.248 ====== Fatal information: ======
30696:20110915:170253.248 Program counter: 0x7f3702b7e7c1
30696:20110915:170253.248 === Registers: ===
30696:20110915:170253.248 r8 = 3 = 3 = 3
30696:20110915:170253.248 r9 = 1 = 1 = 1
30696:20110915:170253.248 r10 = 7f3702b8182e = 139874245548078 = 139874245548078
30696:20110915:170253.248 r11 = 7f3702b8182e = 139874245548078 = 139874245548078
30696:20110915:170253.248 r12 = 81f = 2079 = 2079
30696:20110915:170253.248 r13 = 0 = 0 = 0
30696:20110915:170253.248 r14 = 26c2618 = 40642072 = 40642072
30696:20110915:170253.248 r15 = 26a3230 = 40514096 = 40514096
30696:20110915:170253.248 rdi = 0 = 0 = 0
30696:20110915:170253.248 rsi = 81f = 2079 = 2079
30696:20110915:170253.249 rbp = 4ac67c = 4900476 = 4900476
30696:20110915:170253.249 rbx = 0 = 0 = 0
30696:20110915:170253.249 rdx = 0 = 0 = 0
30696:20110915:170253.249 rax = 0 = 0 = 0
30696:20110915:170253.249 rcx = 0 = 0 = 0
30696:20110915:170253.249 rsp = 7fff5209c288 = 140734569759368 = 140734569759368
30696:20110915:170253.249 rip = 7f3702b7e7c1 = 139874245535681 = 139874245535681
30696:20110915:170253.249 efl = 10283 = 66179 = 66179
30696:20110915:170253.249 csgsfs = 33 = 51 = 51
30696:20110915:170253.249 err = 4 = 4 = 4
30696:20110915:170253.249 trapno = e = 14 = 14
30696:20110915:170253.249 oldmask = 0 = 0 = 0
30696:20110915:170253.249 cr2 = 0 = 0 = 0
30696:20110915:170253.249 === Backtrace: ===
30696:20110915:170253.249 14: /usr/local/sbin/zabbix_server(print_fatal_info+0xa2) [0x4492e8]
30696:20110915:170253.249 13: /usr/local/sbin/zabbix_server() [0x4487f5]
30696:20110915:170253.250 12: /lib/libc.so.6(+0x34810) [0x7f3702b36810]
30696:20110915:170253.250 11: /lib/libc.so.6(strlen+0x11) [0x7f3702b7e7c1]
30696:20110915:170253.250 10: /lib/libc.so.6(__strdup+0x16) [0x7f3702b7e476]
30696:20110915:170253.250 9: /usr/local/sbin/zabbix_server(zbx_strdup2+0x30) [0x44bb1d]
30696:20110915:170253.250 8: /usr/local/sbin/zabbix_server(DBget_history+0x28f) [0x46242b]
30696:20110915:170253.250 7: /usr/local/sbin/zabbix_server(evaluate_function+0x422) [0x4548bb]
30696:20110915:170253.250 6: /usr/local/sbin/zabbix_server(get_value_calculated+0x756) [0x42d7a6]
30696:20110915:170253.250 5: /usr/local/sbin/zabbix_server() [0x429a25]
30696:20110915:170253.250 4: /usr/local/sbin/zabbix_server(main_poller_loop+0x85) [0x42a745]
30696:20110915:170253.250 3: /usr/local/sbin/zabbix_server(MAIN_ZABBIX_ENTRY+0x501) [0x423323]
30696:20110915:170253.250 2: /usr/local/sbin/zabbix_server(daemon_start+0x2d0) [0x448d81]
30696:20110915:170253.250 1: /lib/libc.so.6(__libc_start_main+0xed) [0x7f3702b2317d]
30696:20110915:170253.250 0: /usr/local/sbin/zabbix_server() [0x420481]
30696:20110915:170253.250 === Memory map: ===
30696:20110915:170253.250 00400000-006c1000 r-xp 00000000 93:00 527920 /usr/local/sbin/zabbix_server
30696:20110915:170253.250 008c1000-00965000 rw-p 002c1000 93:00 527920 /usr/local/sbin/zabbix_server
30696:20110915:170253.250 00965000-00970000 rw-p 00000000 00:00 0
30696:20110915:170253.250 025f0000-026ff000 rw-p 00000000 00:00 0 [heap]
30696:20110915:170253.250 7f36fbacc000-7f36fcdfb000 r--p 00000000 93:00 533194 /usr/lib/locale/locale-archive
30696:20110915:170253.250 7f36fcdfb000-7f36fce03000 rw-s 00000000 00:04 7929865 /SYSV530000ab (deleted)
30696:20110915:170253.250 7f36fce03000-7f36fd2d0000 rw-s 00000000 00:04 7897094 /SYSV730000ab (deleted)
30696:20110915:170253.250 7f36fd2d0000-7f36fee04000 rw-s 00000000 00:04 7864325 /SYSV670000ab (deleted)
30696:20110915:170253.250 7f36fee04000-7f36ff605000 rw-s 00000000 00:04 7831556 /SYSV740000ab (deleted)
30696:20110915:170253.250 7f36ff605000-7f3700606000 rw-s 00000000 00:04 7798787 /SYSV780000ab (deleted)
30696:20110915:170253.250 7f3700606000-7f3700e0f000 rw-s 00000000 00:04 7766018 /SYSV680000ab (deleted)
30696:20110915:170253.250 7f3700e0f000-7f3700e24000 r-xp 00000000 93:00 532432 /usr/lib/libgcc_s.so.1
30696:20110915:170253.250 7f3700e24000-7f3701024000 ---p 00015000 93:00 532432 /usr/lib/libgcc_s.so.1
30696:20110915:170253.250 7f3701024000-7f3701025000 rw-p 00015000 93:00 532432 /usr/lib/libgcc_s.so.1
30696:20110915:170253.250 7f3701025000-7f3701026000 ---p 00000000 00:00 0
30696:20110915:170253.250 7f3701026000-7f3701826000 rw-p 00000000 00:00 0
30696:20110915:170253.250 7f3701826000-7f3701832000 r-xp 00000000 93:00 530563 /lib/libnss_files-2.14.so
30696:20110915:170253.250 7f3701832000-7f3701a31000 ---p 0000c000 93:00 530563 /lib/libnss_files-2.14.so
30696:20110915:170253.250 7f3701a31000-7f3701a32000 r--p 0000b000 93:00 530563 /lib/libnss_files-2.14.so
30696:20110915:170253.250 7f3701a32000-7f3701a33000 rw-p 0000c000 93:00 530563 /lib/libnss_files-2.14.so
30696:20110915:170253.251 7f3701a33000-7f3701a38000 r-xp 00000000 93:00 527558 /usr/lib/libgdbm.so.3.0.0
30696:20110915:170253.251 7f3701a38000-7f3701c37000 ---p 00005000 93:00 527558 /usr/lib/libgdbm.so.3.0.0
30696:20110915:170253.251 7f3701c37000-7f3701c38000 rw-p 00004000 93:00 527558 /usr/lib/libgdbm.so.3.0.0
30696:20110915:170253.251 7f3701c38000-7f3701c3f000 r-xp 00000000 93:00 530031 /usr/local/lib/libOpenIPMIutils.so.0.0.1
30696:20110915:170253.251 7f3701c3f000-7f3701e3f000 ---p 00007000 93:00 530031 /usr/local/lib/libOpenIPMIutils.so.0.0.1
30696:20110915:170253.251 7f3701e3f000-7f3701e40000 rw-p 00007000 93:00 530031 /usr/local/lib/libOpenIPMIutils.so.0.0.1
30696:20110915:170253.251 7f3701e40000-7f3701e95000 r-xp 00000000 93:00 527661 /usr/lib/libssl.so.1.0.0
30696:20110915:170253.251 7f3701e95000-7f3702094000 ---p 00055000 93:00 527661 /usr/lib/libssl.so.1.0.0
30696:20110915:170253.251 7f3702094000-7f370209c000 rw-p 00054000 93:00 527661 /usr/lib/libssl.so.1.0.0
30696:20110915:170253.251 7f370209c000-7f37020a3000 r-xp 00000000 93:00 530571 /lib/librt-2.14.so
30696:20110915:170253.251 7f37020a3000-7f37022a2000 ---p 00007000 93:00 530571 /lib/librt-2.14.so
30696:20110915:170253.251 7f37022a2000-7f37022a3000 r--p 00006000 93:00 530571 /lib/librt-2.14.so
30696:20110915:170253.251 7f37022a3000-7f37022a4000 rw-p 00007000 93:00 530571 /lib/librt-2.14.so
30696:20110915:170253.251 7f37022a4000-7f37022c8000 r-xp 00000000 93:00 532585 /usr/lib/libssh2.so.1.0.1
30696:20110915:170253.251 7f37022c8000-7f37024c8000 ---p 00024000 93:00 532585 /usr/lib/libssh2.so.1.0.1
30696:20110915:170253.251 7f37024c8000-7f37024c9000 rw-p 00024000 93:00 532585 /usr/lib/libssh2.so.1.0.1
30696:20110915:170253.251 7f37024c9000-7f37024e0000 r-xp 00000000 93:00 530568 /lib/libpthread-2.14.so
30696:20110915:170253.251 7f37024e0000-7f37026e0000 ---p 00017000 93:00 530568 /lib/libpthread-2.14.so
30696:20110915:170253.251 7f37026e0000-7f37026e1000 r--p 00017000 93:00 530568 /lib/libpthread-2.14.so
30696:20110915:170253.251 7f37026e1000-7f37026e2000 rw-p 00018000 93:00 530568 /lib/libpthread-2.14.so
30696:20110915:170253.251 7f37026e2000-7f37026e6000 rw-p 00000000 00:00 0
30696:20110915:170253.251 7f37026e6000-7f37026fe000 r-xp 00000000 93:00 527735 /usr/lib/libz.so.1.2.5
30696:20110915:170253.251 7f37026fe000-7f37028fd000 ---p 00018000 93:00 527735 /usr/lib/libz.so.1.2.5
30696:20110915:170253.251 7f37028fd000-7f37028fe000 rw-p 00017000 93:00 527735 /usr/lib/libz.so.1.2.5
30696:20110915:170253.251 7f37028fe000-7f3702900000 r-xp 00000000 93:00 530548 /lib/libdl-2.14.so
30696:20110915:170253.251 7f3702900000-7f3702b00000 ---p 00002000 93:00 530548 /lib/libdl-2.14.so
30696:20110915:170253.251 7f3702b00000-7f3702b01000 r--p 00002000 93:00 530548 /lib/libdl-2.14.so
30696:20110915:170253.251 7f3702b01000-7f3702b02000 rw-p 00003000 93:00 530548 /lib/libdl-2.14.so
30696:20110915:170253.251 7f3702b02000-7f3702c59000 r-xp 00000000 93:00 525516 /lib/libc-2.14.so
30696:20110915:170253.251 7f3702c59000-7f3702e59000 ---p 00157000 93:00 525516 /lib/libc-2.14.so
30696:20110915:170253.251 7f3702e59000-7f3702e5d000 r--p 00157000 93:00 525516 /lib/libc-2.14.so
30696:20110915:170253.251 7f3702e5d000-7f3702e5e000 rw-p 0015b000 93:00 525516 /lib/libc-2.14.so
30696:20110915:170253.251 7f3702e5e000-7f3702e63000 rw-p 00000000 00:00 0
30696:20110915:170253.251 7f3702e63000-7f3702e76000 r-xp 00000000 93:00 530570 /lib/libresolv-2.14.so
30696:20110915:170253.251 7f3702e76000-7f3703076000 ---p 00013000 93:00 530570 /lib/libresolv-2.14.so
30696:20110915:170253.251 7f3703076000-7f3703077000 r--p 00013000 93:00 530570 /lib/libresolv-2.14.so
30696:20110915:170253.252 7f3703077000-7f3703078000 rw-p 00014000 93:00 530570 /lib/libresolv-2.14.so
30696:20110915:170253.252 7f3703078000-7f370307a000 rw-p 00000000 00:00 0
30696:20110915:170253.252 7f370307a000-7f37030fb000 r-xp 00000000 93:00 530556 /lib/libm-2.14.so
30696:20110915:170253.252 7f37030fb000-7f37032fa000 ---p 00081000 93:00 530556 /lib/libm-2.14.so
30696:20110915:170253.252 7f37032fa000-7f37032fb000 r--p 00080000 93:00 530556 /lib/libm-2.14.so
30696:20110915:170253.252 7f37032fb000-7f37032fc000 rw-p 00081000 93:00 530556 /lib/libm-2.14.so
30696:20110915:170253.252 7f37032fc000-7f3703301000 r-xp 00000000 93:00 530023 /usr/local/lib/libOpenIPMIposix.so.0.0.1
30696:20110915:170253.252 7f3703301000-7f3703501000 ---p 00005000 93:00 530023 /usr/local/lib/libOpenIPMIposix.so.0.0.1
30696:20110915:170253.252 7f3703501000-7f3703502000 rw-p 00005000 93:00 530023 /usr/local/lib/libOpenIPMIposix.so.0.0.1
30696:20110915:170253.252 7f3703502000-7f37035ed000 r-xp 00000000 93:00 530017 /usr/local/lib/libOpenIPMI.so.0.0.5
30696:20110915:170253.252 7f37035ed000-7f37037ec000 ---p 000eb000 93:00 530017 /usr/local/lib/libOpenIPMI.so.0.0.5
30696:20110915:170253.252 7f37037ec000-7f3703808000 rw-p 000ea000 93:00 530017 /usr/local/lib/libOpenIPMI.so.0.0.5
30696:20110915:170253.252 7f3703808000-7f370380c000 rw-p 00000000 00:00 0
30696:20110915:170253.252 7f370380c000-7f37039a2000 r-xp 00000000 93:00 527529 /usr/lib/libcrypto.so.1.0.0
30696:20110915:170253.252 7f37039a2000-7f3703ba1000 ---p 00196000 93:00 527529 /usr/lib/libcrypto.so.1.0.0
30696:20110915:170253.252 7f3703ba1000-7f3703bc4000 rw-p 00195000 93:00 527529 /usr/lib/libcrypto.so.1.0.0
30696:20110915:170253.252 7f3703bc4000-7f3703bc8000 rw-p 00000000 00:00 0
30696:20110915:170253.252 7f3703bc8000-7f3703c6f000 r-xp 00000000 93:00 532558 /usr/lib/libnetsnmp.so.25.0.1
30696:20110915:170253.252 7f3703c6f000-7f3703e6e000 ---p 000a7000 93:00 532558 /usr/lib/libnetsnmp.so.25.0.1
30696:20110915:170253.252 7f3703e6e000-7f3703e72000 rw-p 000a6000 93:00 532558 /usr/lib/libnetsnmp.so.25.0.1
30696:20110915:170253.252 7f3703e72000-7f3703ea8000 rw-p 00000000 00:00 0
30696:20110915:170253.252 7f3703ea8000-7f3703f02000 r-xp 00000000 93:00 532305 /usr/lib/libcurl.so.4.2.0
30696:20110915:170253.252 7f3703f02000-7f3704102000 ---p 0005a000 93:00 532305 /usr/lib/libcurl.so.4.2.0
30696:20110915:170253.252 7f3704102000-7f3704105000 rw-p 0005a000 93:00 532305 /usr/lib/libcurl.so.4.2.0
30696:20110915:170253.252 7f3704105000-7f3704124000 r-xp 00000000 93:00 525453 /lib/ld-2.14.so
30696:20110915:170253.252 7f370430a000-7f3704313000 rw-p 00000000 00:00 0
30696:20110915:170253.252 7f3704320000-7f3704323000 rw-p 00000000 00:00 0
30696:20110915:170253.252 7f3704323000-7f3704324000 r--p 0001e000 93:00 525453 /lib/ld-2.14.so
30696:20110915:170253.252 7f3704324000-7f3704325000 rw-p 0001f000 93:00 525453 /lib/ld-2.14.so
30696:20110915:170253.252 7f3704325000-7f3704326000 rw-p 00000000 00:00 0
30696:20110915:170253.252 7fff52086000-7fff520f0000 rw-p 00000000 00:00 0 [stack]
30696:20110915:170253.252 7fff521bb000-7fff521bc000 r-xp 00000000 00:00 0 [vdso]
30696:20110915:170253.252 ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
30696:20110915:170253.252 ================================
30696:20110915:170253.252 Please consider attaching a disassembly listing to your bug report.
30696:20110915:170253.252 This listing can be produced with, e.g., objdump -DSswx zabbix_server.
30696:20110915:170253.252 ================================
30671:20110915:170253.254 One child process died (PID:30696,exitcode/signal:255). Exiting ...
30671:20110915:170255.255 Syncing history data...
30671:20110915:170255.594 Syncing history data... done.
30671:20110915:170255.594 Syncing trends data...
30671:20110915:170257.168 Syncing trends data... done.
30671:20110915:170257.168 Zabbix Server stopped. Zabbix 1.8.7 (revision 21394).



 Comments   
Comment by richlv [ 2011 Sep 15 ]

this was most likely fixed as ZBX-4099
could you please try 1.8.8rc2 ?

Comment by Robert Jerzak [ 2011 Sep 15 ]

I just compiled 1.8.8rc2 and so far so good - no crashes.

After that I have problem with calculated items:

2277:20110915:174822.334 Item [h069:load.per_core] became not supported: Invalid first parameter in function [last("system.cpu.load[,avg1]")]

Item "load.per_core" formula looks like:
(last("system.cpu.load[,avg1]")/last("system.cpu.num"))*100

2277:20110915:174924.614 Item [h154:swap.used] became not supported: Invalid first parameter in function [last("system.swap.size[,total]")]

Item "swap.used" formula looks like:
last("system.swap.size[,total]")-last("system.swap.size[,free]")

2278:20110915:174822.327 Item [d042:disk.writes.ms] became not supported: Invalid first parameter in function [last("disk.writes.time")]

Item "disk.writes.ms" formula looks like:
(last("disk.writes.time")+1)/(last("disk.writes")+1)

According to documentation these items looks correct and works fine with previous version 1.8.7.

Is there any change in calculated item formula that makes incompatibility?

Comment by richlv [ 2011 Sep 15 ]

most likely they are missing data and can not be calculated right now. they are expected to populate data a bit later then

Comment by Robert Jerzak [ 2011 Sep 15 ]

It seems that all calculated item in my system became 'not supported' after update do version 1.8.8rc2 from crashing 1.8.7.

Comment by Igor Danoshaites (Inactive) [ 2011 Sep 16 ]

Robert,

Can you please try to activate your calculated items again ?

This could be done in the configuration screen of your item setting Status=Active

For us seems that this issue is similar with ZBX-4099 issue, where we fixed server crash when calculating trigger functions min(), max(), avg() or delta() and also when calculating aggregate and calculate items which are using the same trigger functions.

Can you please confirm that now this issue is fixed for you ?

Comment by Robert Jerzak [ 2011 Sep 16 ]

Yes, I activated a few of calculated items again but they 'became not supported'.

So, I suppose crashing zabbix_server issue (1.8.7) is fixed but problem with processing calculate items is another issue.

Comment by Alexander Vladishev [ 2011 Sep 21 ]

Confirmed incorrect processing of quoted function parameters in calculates items.

Comment by Alexander Vladishev [ 2011 Sep 21 ]

Available in the development branch svn://svn.zabbix.com/branches/dev/ZBX-4150

Comment by richlv [ 2011 Sep 21 ]

will this result in 1.8.8rc3 ? if it's a regression after 1.8.7, it might be a good idea

<rudolfs> yes, that is the current plan

<richlv> thanks

Comment by Alexander Vladishev [ 2011 Sep 21 ]

Fixed in version pre1.8.8, r21808.





[ZBX-4151] server crash: memory corruption Created: 2011 Sep 16  Updated: 2017 May 30  Resolved: 2011 Oct 06

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: None
Fix Version/s: 1.9.7 (beta)

Type: Incident report Priority: Blocker
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: crash
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

trunk rev 21658


Attachments: File objdump_-DSswx_zabbix_server_crash.bz2     Text File server_crash_mallox_2.txt     Text File zabbix_server_crash.log     File zabbix_server_dev_branch_corrupted_double-linked_list.log.bz2     File zabbix_server_dev_branch_corrupted_double-linked_list_2.log.bz2    
Issue Links:
Duplicate
is duplicated by ZBX-4266 Zabbix server process crash Closed

 Comments   
Comment by Aleksandrs Saveljevs [ 2011 Sep 22 ]

Rich, we have tried investigating this memory issue and ZBX-4133 by running Zabbix server under Valgrind. However, no problems were found in our environment and, as noted in ZBX-4133, it is pretty difficult to analyze this issue, because heap could become corrupted in any part of Zabbix server code. Please reopen if the problem occurs again.

Comment by richlv [ 2011 Sep 30 ]

it just did

Comment by richlv [ 2011 Sep 30 ]

and looks like in both cases killed process is timer

Comment by Aleksandrs Saveljevs [ 2011 Oct 03 ]

Seems to crash right after start. Can you reliably reproduce the problem?

Comment by richlv [ 2011 Oct 04 ]

not really, it seems to happen every now and then. i could do some cycle of start/stop and see how often it happens - would that help any ?

maybe some debugging output can be added to the server that i could run with ?

Comment by Aleksandrs Saveljevs [ 2011 Oct 05 ]

There are two things we can try doing: (a) running Zabbix server under Valgrind and (b) running Zabbix server with additional debugging output.

I propose we start with (b). To that end, could you please try running Zabbix server from svn://svn.zabbix.com/branches/dev/ZBX-4151 ? It adds additional debugging output to memory allocation routines so that we can find out which allocated buffer is most close to the corrupted part of memory. You can probably keep DebugLevel=3, but if you could run it under DebugLevel=4, that would be nice, too.

Comment by richlv [ 2011 Oct 05 ]

i created a script to repeatedly start/stop server. after running it, server crashed on the first try...
although this time it was "corrupted double-linked list"

log of that start/crash session at debuglevel4 attached (zabbix_server_dev_branch_corrupted_double-linked_list.log.bz2)

Comment by richlv [ 2011 Oct 05 ]

zabbix_server_dev_branch_corrupted_double-linked_list_2.log.bz2 is another crash right after the startup.

additionally, in this case one zabbix_server process did not terminate upon kill -15. stracing it reveals that it got stuck on :

futex(0xb7356380, FUTEX_WAIT_PRIVATE, 2, NULL

Comment by Aleksandrs Saveljevs [ 2011 Oct 06 ]

Thanks, that was useful! The fix is available in development branch svn://svn.zabbix.com/branches/dev/ZBX-4151 .

The problem was that the buffer for time-based triggers was allocated for 0 triggers, then the configuration cache was synced, and then a non-zero amount of triggers were processed, which resulted in corrupted memory.

Comment by Aleksandrs Saveljevs [ 2011 Oct 06 ]

Fixed in pre-1.9.7 in r22185.





[ZBX-4157] There is incorrect limit in the Zabbix src code for the length of the SQL statement Created: 2011 Sep 21  Updated: 2017 May 30  Resolved: 2011 Sep 22

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 1.8.7
Fix Version/s: 1.8.8, 1.9.7 (beta)

Type: Incident report Priority: Blocker
Reporter: Igor Danoshaites (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: crash
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate

 Description   

There is incorrect limit in the Zabbix src code (2KB, it is set as value of the constant) for the length of the sql statement, that is why in the SQL statement "select t.hosttemplateid,t.hostid,t.templateid from hosts_templates" value of the "hostid" can be truncated in some cases.

Please notice truncated "hostid" value in the end of the following sql statement: "1001" instead of "1001000000010683".

Trace from the log file:

23099:20110920:130612.381 [Z3005] query failed: [1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 [select t.hosttemplateid,t.hostid,t.templateid from hosts_templates t where t.hostid in (1001000000010002,1001000000010003,1001000000010023,1001000000010044,1001000000010129,1001000000010130,1001000000010305,1001000000010307,1001000000010383,1001000000010384,1001000000010385,1001000000010386,1001000000010387,1001000000010388,1001000000010389,1001000000010391,1001000000010392,1001000000010393,1001000000010394,1001000000010395,1001000000010396,1001000000010397,1001000000010399,1001000000010425,1001000000010426,1001000000010428,1001000000010429,1001000000010430,1001000000010431,1001000000010432,1001000000010433,1001000000010434,1001000000010435,1001000000010436,1001000000010437,1001000000010438,1001000000010439,1001000000010440,1001000000010441,1001000000010442,1001000000010443,1001000000010444,1001000000010445,1001000000010446,1001000000010447,1001000000010448,1001000000010449,1001000000010450,1001000000010451,1001000000010452,1001000000010453,1001000000010454,1001000000010455,1001000000010456,1001000000010457,1001000000010458,1001000000010459,1001000000010472,1001000000010476,1001000000010477,1001000000010494,1001000000010495,1001000000010496,1001000000010499,1001000000010501,1001000000010502,1001000000010504,1001000000010505,1001000000010506,1001000000010508,1001000000010510,1001000000010511,1001000000010517,1001000000010518,1001000000010519,1001000000010520,1001000000010521,1001000000010522,1001000000010523,1001000000010524,1001000000010525,1001000000010526,1001000000010584,1001000000010585,1001000000010586,1001000000010587,1001000000010594,1001000000010595,1001000000010597,1001000000010599,1001000000010600,1001000000010601,1001000000010602,1001000000010613,1001000000010632,1001000000010637,1001000000010640,1001000000010641,1001000000010644,1001000000010645,1001000000010646,1001000000010652,1001000000010658,1001000000010659,1001000000010660,1001000000010662,1001000000010664,1001000000010665,1001000000010670,1001000000010673,1001000000010676,1001000000010677,1001000000010680,1001000000010681,1001000000010682,1001]

We should increase this limit!



 Comments   
Comment by Alexander Vladishev [ 2011 Sep 22 ]

Fixed in version pre1.8.8, r21838.





[ZBX-4155] Zabbix may try to run multiple instances with the same .pid file Created: 2011 Sep 19  Updated: 2017 May 30  Resolved: 2011 Sep 19

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G), Proxy (P), Server (S)
Affects Version/s: None
Fix Version/s: 1.8.9, 1.9.7 (beta)

Type: Incident report Priority: Critical
Reporter: Rudolfs Kreicbergs Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate

 Description   

When trying to lock the .pid file, Zabbix only checks for a single error - it should fail for any error.



 Comments   
Comment by Rudolfs Kreicbergs [ 2011 Sep 19 ]

Fixed/available in dev branch: svn://svn.zabbix.com/branches/dev/ZBX-4155

Comment by Rudolfs Kreicbergs [ 2011 Sep 28 ]

Fixed in pre-1.8.9 r21979 and pre-1.9.7 r21980.





[ZBX-4156] Zabbix agent service crash/hang Created: 2011 Sep 20  Updated: 2017 May 30  Resolved: 2011 Sep 22

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 1.8.6, 1.8.7
Fix Version/s: 1.8.9, 1.9.7 (beta)

Type: Incident report Priority: Critical
Reporter: Alexandru Nica Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: agent
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows


Attachments: File zabbix_agentd.exe    

 Description   

After updating agent to 1.8.7.rc1 (revision 21392) I get the following errors in the log.

5308:20110920:130647.210 PerfCounter 'JĂœĂŸ' FAILED: invalid format
5712:20110920:130716.351 PdhLookupPerfNameByIndex failed: [0x800007D0] unable to find message text [0x0000013D]

These may occur several times and at random times the agent may hang for a few minutes (so long as to trigger a "system down" PROBLEM in zabbix) and after a few minutes it resumes work like nothing happened (and triggers a "system down" OK in zabbix)

I have a set of general items for monitoring CPUs like "perf_counter[\Processor(X)\% Processor Time, 300]" with 0<=X<=7. Of course not all systems have 8 CPUs, they may have just 4, as is the case with the server in question, and perf_counter instances for CPUs with X>4 would be invalid.

I understand that part of the perfcounter code was rewritten in 1.8.6.
Prior to 1.8.6 the items for non-existent CPUs (X>4) would just return 0, even though the perf_counter instance is invalid.
With 1.8.6 and 1.8.7 I understand this has been fixed and the item should return ZBX_NOTSUPPORTED as the perf_counter is invalid. It seems to work ok, in the frontend I get ZBX_NOTSUPPORTED for those items but the agent always logs that error, always with the same 'JĂœĂŸ' string and the same 0x800007D0. The 0x0000013D is variable.



 Comments   
Comment by Alexandru Nica [ 2011 Sep 20 ]

I can confirm that the issue only affects Windows 2008 R2. I have looked at several Windows 2003 servers and there is are no error messages, even with invalid perf_counter instances.
There is another issue I have observed only on Windows 2008 R2: Sometimes items with UserParameters return script time out even though the script is really small and should return immediately. Maybe the same hang is the cause for both issues.

Comment by richlv [ 2011 Sep 21 ]

timeouts could be a different issue - ZBX-4104

Comment by Rudolfs Kreicbergs [ 2011 Sep 21 ]

There indeed is a problem regarding the message formatting and that on it's own should not hang the agent.

The unknown error message is:
[0x800007D0] Unable to connect to the specified computer, or the computer is offline
Could you please try running the agent with DebugLevel=4 to catch the the log file during one of these "hang" situations?

<rudolfs> REPRODUCED - it seems that I have reproduced the problem when agent hangs, will investigate that.

Comment by Alexandru Nica [ 2011 Sep 21 ]

With debug level 4 I get something of a cleaner output:

4452:20110921:123026.589 In PERF_COUNTER()
4452:20110921:123026.589 In add_perf_counter() counter:'\Processor(5)% Processor Time' interval:300
4452:20110921:123026.605 add_perf_counter(): unable to add PerfCounter '\Processor(5)% Processor Time': [0x800007D1] The specified instance is not present.
4452:20110921:123026.605 PERF_COUNTER(): unable to add PerfCounter '\Processor(5)% Processor Time': [0x800007D1] The specified instance is not present.
4452:20110921:123026.605 End of PERF_COUNTER()

I dont' get the following errors anymore:
5308:20110920:130647.210 PerfCounter 'JĂœĂŸ' FAILED: invalid format
5712:20110920:130716.351 PdhLookupPerfNameByIndex failed: [0x800007D0] unable to find message text [0x0000013D]
The first one seems to me like an access violation on memory read. Could it be that the error message routine is the one performing an access violation and hanging the process? It tries to get the name of the failed perfcounter but reads invalid memory?

No hang until now, will restart the agent a few more times and wait another hour.
After that I will try with default debuglevel and see if that causes hangs.

Comment by Rudolfs Kreicbergs [ 2011 Sep 21 ]

That in fact is a memory violation on read. Both error messages are fixed in dev branch: svn://svn.zabbix.com/branches/dev/ZBX-4156

Could you please try to repeat the "hanging" problem with that branch (it is based on 1.8.8rc2)? It seems that I was wrong in did NOT REPRODUCE the problem.

Comment by Alexandru Nica [ 2011 Sep 21 ]

Did not manage to hang it with DebugLevel=4
Definetly error message + perfcounter related, managed to hang it with DebugLevel=default on fist run.

5404:20110921:152246.685 Starting Zabbix Agent [BITVMH1]. Zabbix 1.8.7rc1 (revision 21392).
356:20110921:152246.701 agent #0 started [collector]
4436:20110921:152246.716 agent #1 started [listener]
5616:20110921:152246.716 agent #2 started [listener]
5328:20110921:152246.716 agent #3 started [listener]
5400:20110921:152246.716 agent #4 started [active checks]
5400:20110921:152358.274 PerfCounter 'qĂœĂŸ' FAILED: invalid format
5400:20110921:152358.274 Active check [perf_counter[\Memory\Available Bytes, 300]] is not supported. Disabled.
5400:20110921:152649.315 Active check [perf_counter[\Memory\Page Faults/sec, 300]] is not supported. Disabled.
5400:20110921:152850.497 Active check [perf_counter[\Memory\Pages/sec, 300]] is not supported. Disabled.
5400:20110921:153051.415 Active check [perf_counter[\Network Interface(Virtual Network [LAN])\Bytes Received/sec, 180]] is not supported. Disabled.
5400:20110921:153252.478 Active check [perf_counter[\Network Interface(Virtual Network [LAN])\Bytes Sent/sec, 180]] is not supported. Disabled.
5400:20110921:153553.503 Active check [perf_counter[\Network Interface(Virtual Network [WAN])\Bytes Received/sec, 180]] is not supported. Disabled.
5400:20110921:153653.532 PerfCounter 'qĂœĂŸ' FAILED: invalid format
5400:20110921:153653.673 Active check [perf_counter[\Network Interface(Virtual Network [WAN])\Bytes Sent/sec, 180]] is not supported. Disabled.
5400:20110921:153753.687 PerfCounter 'qĂœĂŸ' FAILED: invalid format
5400:20110921:153753.702 Active check [perf_counter[\Network Interface(undefined2)\Bytes Received/sec, 180]] is not supported. Disabled.
----> this is where it hangs.

Will try with the dev branch you mentioned. Any windows svn client you recommend? Tortoise keeps crashing on me.

Another thing I just saw is that with 1.8.7 I get "Active check [perf_counter[\Memory\Pages/sec, 300]] is not supported. Disabled." for a counter which is actually valid and should not be disabled. Will report on this after trying the dev branch.

Comment by Alexandru Nica [ 2011 Sep 21 ]

Running zabbix 1.8.8rc2 (revision 21676).

Still get the error message on debuglevel=default

5092:20110921:164042.938 PerfCounter 'qĂœĂŸ' FAILED: invalid format
5092:20110921:164042.984 Active check [perf_counter[\Memory\Available Bytes, 300]] is not supported. Disabled.
5860:20110921:164053.717 PdhLookupPerfNameByIndex failed: [0x800007D0] unable to find message text [0x0000013D]
5860:20110921:164054.123 PerfCounter 'qĂœĂŸ' FAILED: invalid format

Valid counters DO get disabled, but it seems that only after the error message.
Just had my first hang during this edit

4152:20110921:164358.393 agent #0 started [collector]
5852:20110921:164358.393 agent #1 started [listener]
4928:20110921:164358.393 agent #2 started [listener]
4540:20110921:164358.393 agent #3 started [listener]
1740:20110921:164358.393 agent #4 started [active checks]
1740:20110921:164538.998 PerfCounter 'qĂœĂŸ' FAILED: invalid format
1740:20110921:164538.998 Active check [perf_counter[\Memory\Committed Bytes, 300]] is not supported. Disabled.
1740:20110921:164639.011 PerfCounter 'qĂœĂŸ' FAILED: invalid format
1740:20110921:164639.089 Active check [perf_counter[\Memory\Page Faults/sec, 300]] is not supported. Disabled.
1740:20110921:164739.102 PerfCounter 'qĂœĂŸ' FAILED: invalid format
1740:20110921:164739.118 Active check [perf_counter[\Memory\Pages/sec, 300]] is not supported. Disabled.
4152:20110921:164758.633 PdhLookupPerfNameByIndex failed: [0x800007D0] unable to find message text [0x0000013D]
4152:20110921:164759.055 PerfCounter 'qĂœĂŸ' FAILED: invalid format
1740:20110921:164859.100 PerfCounter 'qĂœĂŸ' FAILED: invalid format
1740:20110921:164859.100 Active check [perf_counter[\Memory\Pool Paged Bytes, 300]] is not supported. Disabled.
----> here it hangs
4568:20110921:165232.854 Zabbix Agent shutdown requested
4568:20110921:165233.868 Zabbix Agent stopped. Zabbix 1.8.8rc2 (revision 21676).
-----> I stop the service and it shuts down gracefully

Comment by Rudolfs Kreicbergs [ 2011 Sep 21 ]

Sorry, I did not compile the agent in the dev branch, will update the branch in a couple of minutes

<rudolfs> DONE in r21799 at svn://svn.zabbix.com/branches/dev/ZBX-4156

Comment by Rudolfs Kreicbergs [ 2011 Sep 21 ]

Are you using 32bit Win? I can compile an attach the .exe to the issue.
We use SlikSVN on our Windows test boxes:
http://www.sliksvn.com/en/download

Comment by Alexandru Nica [ 2011 Sep 21 ]

Would you please attach the x64 version also?

Comment by Rudolfs Kreicbergs [ 2011 Sep 21 ]

Fair enough, it was a 50-50 chance Attached 64bit Agent Windows binary

Comment by Alexandru Nica [ 2011 Sep 21 ]

Thank you for the binary, now running Zabbix 1.8.8 (revision

{ZABBIX_REVISION}

).
I'll see how it goes, post back tomorrow

Comment by Alexandru Nica [ 2011 Sep 22 ]

So far so good, no nasty error messages, just a clean "not supported, disabled". No hangs, no script timeouts, I'm really happy with this.
Can you leave the issue opened for another day, just to be sure?

Comment by Rudolfs Kreicbergs [ 2011 Sep 22 ]

I'll move forward with reviewing and testing the fix since the it is likely a separate issue from the hangs. Though it will not be closed till tomorrow anyhow and please feel free to reopen the issue if the problem occurs even after closing the issue.

Comment by Alexandru Nica [ 2011 Sep 22 ]

Sorry, still not fixed.

  • I randomly get errors for perf_counters which are actually valid.
  • It still hangs sometimes. It is more rarely than with 1.8.7rc1 which was practically unusable – kept hanging or crashing (service terminated unexpectedly) at 20 minutes interval. With this revision of 1.8.8 I got 24+ hours with no problems.

I will install this version on a win2003 box and let you know if they behave the same. I have a feeling this is 2008 specific, some sort of memory corruption that went by unnoticed in win2003.

Extract from log with debuglevel=default

4256:20110922:130637.267 Zabbix Agent stopped. Zabbix 1.8.8 (revision

{ZABBIX_REVISION}).
5048:20110922:130645.785 Starting Zabbix Agent [BITVMH1]. Zabbix 1.8.8 (revision {ZABBIX_REVISION}

).
3228:20110922:130645.816 agent #0 started [collector]
4228:20110922:130645.816 agent #1 started [listener]
4224:20110922:130645.816 agent #2 started [listener]
5552:20110922:130645.816 agent #3 started [listener]
5264:20110922:130645.816 agent #4 started [active checks]
5264:20110922:130826.717 PerfCounter '\Memory\Available Bytes' FAILED: invalid format
5264:20110922:130826.733 Active check [perf_counter[\Memory\Available Bytes, 300]] is not supported. Disabled.
5264:20110922:130926.747 PerfCounter '\Memory\Committed Bytes' FAILED: invalid format
5264:20110922:130926.793 Active check [perf_counter[\Memory\Committed Bytes, 300]] is not supported. Disabled.
5264:20110922:131026.807 PerfCounter '\Memory\Page Faults/sec' FAILED: invalid format
5264:20110922:131026.823 Active check [perf_counter[\Memory\Page Faults/sec, 300]] is not supported. Disabled.
3228:20110922:131046.057 PdhLookupPerfNameByIndex() failed: [0x800007D0] Unable to connect to the specified computer or the computer is offline.
3228:20110922:131046.479 PerfCounter '\UnknownPerformanceCounter(_Total)% Processor Time' FAILED: invalid format
5264:20110922:131246.677 Active check [perf_counter[\Memory\Pages/sec, 300]] is not supported. Disabled.
5264:20110922:131447.609 Active check [perf_counter[\Network Interface(Virtual Network [LAN])\Bytes Received/sec, 180]] is not supported. Disabled.
5264:20110922:131648.588 Active check [perf_counter[\Network Interface(Virtual Network [LAN])\Bytes Sent/sec, 180]] is not supported. Disabled.
5264:20110922:131849.598 Active check [perf_counter[\Network Interface(Virtual Network [WAN])\Bytes Received/sec, 180]] is not supported. Disabled.
5264:20110922:131949.612 PerfCounter '\Network Interface(Virtual Network [WAN])\Bytes Sent/sec' FAILED: invalid format
5264:20110922:131949.643 Active check [perf_counter[\Network Interface(Virtual Network [WAN])\Bytes Sent/sec, 180]] is not supported. Disabled.
5264:20110922:132049.657 PerfCounter '\Paging File(_Total)% Usage' FAILED: invalid format
5264:20110922:132049.688 Active check [perf_counter[\Paging File(_Total)\% Usage, 300]] is not supported. Disabled.
5264:20110922:132149.702 PerfCounter '\PhysicalDisk(_Total)\Avg. Disk sec/Read' FAILED: invalid format
5264:20110922:132149.780 Active check [perf_counter[\PhysicalDisk(_Total)\Avg. Disk sec/Read, 180]] is not supported. Disabled.
5264:20110922:132249.793 PerfCounter '\PhysicalDisk(_Total)\Avg. Disk sec/Write' FAILED: invalid format

Comment by Rudolfs Kreicbergs [ 2011 Sep 28 ]

Crash fixed in pre-1.8.6 r21973 and pre-1.9.7 r21976.

Nica, please separate the hanging problem in a separate ZBX.





[ZBX-4165] Sqlite database insert failures Created: 2011 Sep 22  Updated: 2017 May 30  Resolved: 2011 Sep 29

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P)
Affects Version/s: 1.9.6 (beta)
Fix Version/s: 1.9.7 (beta)

Type: Incident report Priority: Blocker
Reporter: Corey Shaw Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: proxy, sqlite
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

RHEL5 x64
2 CPU and 6 GB RAM



 Description   

I'm running Zabbix 1.9.6 (compiled on my own) on RHEL5. My setup is that I have a main Zabbix server (16 CPU, 64GB RAM) that runs just fine. Along with that I have an active Zabbix proxy server (2CPU, 6GB RAM) that is having issues with its SQLite3 database.

I have a discovery rule for the proxy that is having issues inserting data into the SQLite database. Every time the proxy tries to write to the database the following error shows up in the logs:

[Z3005] query failed: [0] proxy_dhistory.dcheckid may not be NULL [insert into proxy_dhistory (clock,druleid,type,ip,dns,status) values (1316636599,2,-1,'ip.add.xxx.xxx','server.fqdn.com',1)]

I have tried recompiling to account for any oddities that could've showed up, but it didn't make any difference.

Now here's the real kicker: I have this exact same setup in another environment. That other environment works great without any problems. In fact, the scripts I use to do all the compilation/configuring/install were used in both environments. I have compared the configuration in the non-working environment to the working environment and both are identical (with the exception of server names of course).

I have already verified that permissions on the file system were correct for the zabbix user to be able to write to the database. Everything checks out there.



 Comments   
Comment by Corey Shaw [ 2011 Sep 22 ]

I forgot to mention that the proxy has not been upgraded (it is a clean install) and the schema for the sqlite database is the latest as created by the proxy itself.

Comment by Rudolfs Kreicbergs [ 2011 Sep 28 ]

Fixed/available in dev branch: svn://svn.zabbix.com/branches/dev/ZBX-4165

Comment by Aleksandrs Saveljevs [ 2011 Sep 29 ]

Fixed in pre-1.9.7 in r22034.

Corey, please note that in order to install the fix, you have to do "make dbschema", recompile both Zabbix server and Zabbix proxy, and let Zabbix proxy recreate its database from scratch.

Comment by Corey Shaw [ 2011 Oct 03 ]

Awesome! Thanks for the quick fix. I'll give it a test sometime this week. It could be a few days though.

Comment by Aleksandrs Saveljevs [ 2011 Oct 04 ]

Additional fixes to proxy_dhistory upgrade patches available in pre-1.9.7 in r22110.





[ZBX-4162] User macro does not allowed to be used in the simple checks Created: 2011 Sep 21  Updated: 2017 May 30  Resolved: 2011 Sep 21

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.5, 1.9.6 (beta)
Fix Version/s: 1.8.8, 1.9.7 (beta)

Type: Incident report Priority: Critical
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates ZBX-1909 Zabbix does not validate global macro... Closed

 Description   

I managed to reproduce this bug starting from the Zabbix frontend 1.8.4. and in the current trunk.

Try to create the simple check with the key "ssh,{$SSH_PORT}"
We receive an error "Error in item key: invalid character '{' at position 4" in the 1.8.4
and error "Error in item key: Invalid item key format." in the 1.8.8rc2

This key (DB edited directly) works well at the zabbix_server side.

On the documentation page this key even described as an example:
http://www.zabbix.com/documentation/1.8/manual/config/macros






[ZBX-4172] Undefined index if dashboard's filter enabled in some modes Created: 2011 Sep 25  Updated: 2017 May 30  Resolved: 2011 Sep 26

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.7 (beta)
Fix Version/s: 1.9.7 (beta)

Type: Incident report Priority: Critical
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: dashboard
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

latest trunk rev 21911


Issue Links:
Duplicate
duplicates ZBX-4166 Undefined index: host in blocks.inc.p... Closed

 Description   

Try to enable Dashboard filter ans set "Problem display" to "Separated" or "Unacknowledged only"

See many undefined index in the "System status", "Host status" widgets:
Undefined index: host [include/blocks.inc.php:362]
...... etc






[ZBX-4169] History of logs with several items. Changing time period drops selected items and filter settings. Created: 2011 Sep 24  Updated: 2017 May 30  Resolved: 2011 Dec 28

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.9, 1.9.7 (beta)
Fix Version/s: 1.8.11, 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: logmonitoring, usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

latest trunk rev 21911


Issue Links:
Duplicate

 Description   

This issue created as continuation of ZBX-3939

If you anyhow change selected time period then all selected to view items disappear, except one item (located on top of selected items list).
Settings of a filter are dropped too.

I found "similar" problems when this history view page was improved. It may helps to figure out current problem.
See my comment on 2010 May 25 14:50
https://support.zabbix.com/browse/ZBX-2201?focusedCommentId=29030&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-29030



 Comments   
Comment by Alexey Fukalov [ 2011 Oct 24 ]

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-4169 22626

Comment by Alexey Fukalov [ 2011 Oct 26 ]

svn://svn.zabbix.com/trunk 22657

Comment by Alexander Vladishev [ 2011 Dec 15 ]

Reopened: the same problem is watched in version 1.8.

<SlaVa> RESOLVED

<Sasha> CLOSED Please review my changes in r24041:24042.
<Slava>CLOSED

Comment by Vjacheslav Shipillo (Inactive) [ 2011 Dec 28 ]

fixed in r 24358.

Comment by richlv [ 2013 Aug 12 ]

similar problem reappeared : ZBX-6878





[ZBX-4171] Crash zabbix_server (escalator) on the macro {ITEM.LASTVALUE} Created: 2011 Sep 25  Updated: 2017 May 30  Resolved: 2011 Sep 26

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 1.9.7 (beta)
Fix Version/s: 1.9.7 (beta)

Type: Incident report Priority: Blocker
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: escalator
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:
  1. zabbix_server -V
    Zabbix Server v1.9.7 (revision 21911) (9 September 2011)
    Compilation time: Sep 24 2011 17:46:59

Debian 6.0.2
mysql Ver 14.14 Distrib 5.1.49, for debian-linux-gnu (x86_64) using readline 6.1


Attachments: File objdump.server.tar.bz2     File zabbix_server.log.20382only    

 Description   

If an action has a macro

{ITEM.LASTVALUE}

in a message body then zabbi_server always crashes in function "add_value_suffix()"

That happens when item does not have (by default) configured "Units":

20382:20110924:235413.332 In zbx_format_value()
20382:20110924:235413.332 In replace_value_by_map() value:'6' valuemapid:0
20382:20110924:235413.332 End of replace_value_by_map() value:'6'
20382:20110924:235413.332 In add_value_suffix() value:'6' units:'' value_type:3
20382:20110924:235413.332 Got signal [signal:11(SIGSEGV),reason:1,refaddr:0x6]. Crashing ...
20382:20110924:235413.332 ====== Fatal information: ======
20382:20110924:235413.332 Program counter: 0x7fcd686b7d8a
....

If the item has configured "Units" ("sss" in next example) then server is not crashed:

20864:20110925:000656.682 In zbx_format_value()
20864:20110925:000656.683 In replace_value_by_map() value:'6' valuemapid:0
20864:20110925:000656.683 End of replace_value_by_map() value:'6'
20864:20110925:000656.683 In add_value_suffix() value:'6' units:'sss' value_type:3
20864:20110925:000656.683 In add_value_suffix_normal()
20864:20110925:000656.683 End of add_value_suffix_normal()
20864:20110925:000656.683 End of add_value_suffix() value:'H='
20864:20110925:000656.683 End of zbx_format_value()
20864:20110925:000656.683 End of DBget_item_lastvalue():SUCCEED
....

objdump, debuglog (grep of escalator process only) attached



 Comments   
Comment by Oleksii Zagorskyi [ 2011 Sep 25 ]

I cannot reproduce this problem on another trunk server:
FreeBSD 8.1-RELEASE
mysql Ver 14.14 Distrib 5.5.14, for FreeBSD8.1 (i386) using 5.2

  1. zabbix_server -V
    Zabbix Server v1.9.7 (revision 21911) (9 September 2011)
    Compilation time: Sep 25 2011 01:20:52

To be sure i tried to switch zabbix_server under Debian 6.0.2 to use DB under FreeBSD8.1 (mentioned above), but zabbix_server still crashes at the same step.

<added>
To be sure i tried vice versa zabbix_server under FreeBSD8.1 and DB under Debian 6.0.2 and it works w/o problems!

And finally i cannot reproduce this problem under 3rd trunk server under CentOS5.5 ()

If you need problematic "zabbix_server" binary from the Debian (my workstation) I'll attach it.

Comment by Aleksandrs Saveljevs [ 2011 Sep 26 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-4171.

Comment by Oleksii Zagorskyi [ 2011 Sep 26 ]

Dev branch tested and it works!

Thanks Aleksandrs.

Comment by Aleksandrs Saveljevs [ 2011 Sep 26 ]

Fixed in pre-1.9.7 in r21928.





[ZBX-4178] compilation fails on FreeBSD: union has no member named `sival_int' Created: 2011 Sep 28  Updated: 2017 May 30  Resolved: 2011 Oct 26

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G), Proxy (P), Server (S)
Affects Version/s: 1.8.6
Fix Version/s: 1.8.9, 1.9.7 (beta)

Type: Incident report Priority: Blocker
Reporter: Aleksandrs Saveljevs Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: building, openbsd
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Zabbix agent does not compile on FreeBSD 4.2:

$ make install > /dev/null
...
daemon.c: In function `child_signal_handler':
daemon.c:73: union has no member named `sival_int'

We have fixed a similar compilation problem on FreeBSD in ZBX-3936, but apparently not on the older versions.



 Comments   
Comment by Aleksandrs Saveljevs [ 2011 Oct 26 ]

Same issue occurs on FreeBSD 6.2.

Comment by Aleksandrs Saveljevs [ 2011 Oct 26 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-4178 .

Comment by Aleksandrs Saveljevs [ 2011 Oct 26 ]

Tested on the following platforms:

  • Linux 2.6
  • FreeBSD 4.2, FreeBSD 6.2 and FreeBSD 7.3
  • NetBSD 5.0
  • OpenBSD 3.9 and OpenBSD 4.6
  • HP-UX 11.11
  • AIX 5.2
  • Solaris 10

<sasha>

  • Linux 2.4
  • AIX 6.1
  • Solaris 8
Comment by Aleksandrs Saveljevs [ 2011 Oct 27 ]

Fixed in pre-1.8.9 in r22707 and pre-1.9.7 in r22709.





[ZBX-4176] API "action.update" does not work properly Created: 2011 Sep 27  Updated: 2017 May 30  Resolved: 2011 Sep 28

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 1.8.8rc3, 1.9.7 (beta)
Fix Version/s: 1.8.9, 1.9.7 (beta)

Type: Incident report Priority: Critical
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: API, actions
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

latest trunk r21920,
latest 1.8 branch r21863


Issue Links:
Duplicate

 Description   

Suppose we need to enable/disable an action by API.
And we want to use ONLY "actionid": parameter to select corresponding action.

Official documentation even has an examples with this operation, but it is partially wrong (actually disabled status is 1) and it does not work at all.
http://www.zabbix.com/documentation/1.8/api/action/update
http://www.zabbix.com/documentation/2.0/manual/appendix/api/action/update

Current trunk and 1.8 branch have different behavior.
In the trunk it works if we specify an action name (redundant data in our case)
1.8 branch does not work AT ALL.

See results of my tests:

                                                            • Zabbix 1.9 latest (trunk) ******************************

>>>>>>>>>>>>>>>>>>> OK <<<<<<<<<<<<<<<<<:
request:
{
"jsonrpc":"2.0",
"method":"action.update",
"params":

{ "actionid":"17", "name":"test19", "status":"1" }

,
"auth":"ebe9ea3b39b7b7f00b39a04b50b3fdc8",
"id":2
}
response:
{
"jsonrpc":"2.0",
"result":

{ "actionids":[ "17" ] }

,
"id":2
}

>>>>>>>>>>>>>>> BAD <<<<<<<<<<<<<<<<
request:
{
"jsonrpc":"2.0",
"method":"action.update",
"params":

{ "actionid":"17", "status":"1" }

,
"auth":"356d584f180937a9eeab315ba2935056",
"id":2
}
response:
{
"jsonrpc":"2.0",
"error":

{ "code":-32602, "message":"Invalid params.", "data":"Action \"\" already exists." }

,
"id":2
}

                                                            • Zabbix 1.8 ******************************

>>>>>>>>>>>>>>>>> BAD <<<<<<<<<<<<<<<<<<<<<<<
request:
{
"jsonrpc":"2.0",
"method":"action.update",
"params":

{ "actionid":"3", "name":"18test", "status":"1" }

,
"auth":"bfcbc8dc41438a20652f4e0a672df8e5",
"id":2
}
response:
{
"jsonrpc":"2.0",
"error":

{ "code":-32602, "message":"Invalid params.", "data":"[ CAction::update ] Incorrect parameter used for Action [ 18test ]" }

,
"id":2
}

>>>>>>>>>>>>>>>>>>>>> still BAD <<<<<<<<<<<<<<<<<<<<<<
request:
{
"jsonrpc":"2.0",
"method":"action.update",
"params":

{ "actionid":"3", "status":"1" }

,
"auth":"1e9508bf3a409223cf9f0e0dae39a866",
"id":2
}
response:
{
"jsonrpc":"2.0",
"error":

{ "code":-32602, "message":"Invalid params.", "data":"[ CAction::update ] Action [ ] already exists" }

,
"id":2
}

>>>>>>>>>>>>>>> still BAD #2 <<<<<<<<<<<<<<<<<
request:
{
"jsonrpc":"2.0",
"method":"action.update",
"params":

{ "actionid":"3", "name":"18test" }

,
"auth":"7c6bd9ad0bf753a520e4f1c9a2258c15",
"id":2
}
response:
{
"jsonrpc":"2.0",
"error":

{ "code":-32602, "message":"Invalid params.", "data":"[ CAction::update ] Incorrect parameter used for Action [ 18test ]" }

,
"id":2
}



 Comments   
Comment by Alexey Fukalov [ 2011 Sep 28 ]

svn://svn.zabbix.com/branches/dev/ZBX-4176

Comment by Alexey Fukalov [ 2011 Sep 29 ]

svn://svn.zabbix.com/branches/1.8 22066





[ZBX-4207] date for "One Time Only" maintenance is not saved on edit Created: 2011 Oct 05  Updated: 2017 May 30  Resolved: 2011 Oct 17

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.7 (beta)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: maintenance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

latest trunk rev 22162


Attachments: PNG File maintenance_time_bad.png    
Issue Links:
Duplicate
duplicates ZBXNEXT-910 Redesign Configuration->Maintenance Closed

 Description   

If edit "One Time Only" maintenance date period that has already been saved, the time or date goes back to the original value.
Even when saving "One time only" maintenance date period for the first time, it is always saving "One time only" maintenance period with current data and time.

Also noticed that calendar picker in the maintenance form does not work (try press "Done" button it the calendar).

Another "Period types" are saved Ok - checked !



 Comments   
Comment by Igor Danoshaites (Inactive) [ 2011 Oct 13 ]

Confirm this fix in dev branch ZBXNEXT-910.

Comment by Eduards Samersovs (Inactive) [ 2011 Oct 17 ]

trunk revision 22442





[ZBX-4208] Portuguese Translations Created: 2011 Oct 05  Updated: 2017 May 30  Resolved: 2011 Oct 10

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.7 (beta)
Fix Version/s: 1.9.7 (beta)

Type: Incident report Priority: Blocker
Reporter: Ricardo Santos Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: brazilian, gui, portuguese, translation, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File ZBX-4208_patch_for_1.9.7r22202.txt    

 Description   

PT (Portuguese from Portugal) 100% completed - http://zabbix.org/pootle/pt/
PT_BR (Portuguese from Brazil) 58% completed - http://zabbix.org/pootle/pt_BR/

In profile page the "Language" option shows a "Portuguese (PT)" option that refeer to "pt_br":
frontends/php/include/locales.inc.php:line 159 — 'pt_br'=> 'portuguese'

This text should be "Brazilian Portuguese (PT_BR)" with "pt_br" value, and "Portuguese (PT)" should point to "pt_pt"



 Comments   
Comment by richlv [ 2011 Oct 05 ]

that's terminology project

what we need is zabbix - http://zabbix.org/pootle/projects/Zabbix-2.0/

Comment by Alexei Vladishev [ 2011 Oct 07 ]

Is this issue just about renaming the existing text? Rich, can you fix it then?

Comment by Ricardo Santos [ 2011 Oct 07 ]

I suggest to you reserve "S_PORTUGUESE_PT" term for PT (Portugal) and create "S_PORTUGUESE_BR" for PT_BR (Brazilian Portuguese).
This change will be more hard now, but turn easy the PT (Portugal) implementation in the future.

1.9.7v22202 patch - http://pastebin.com/hkZLmcJt

Comment by richlv [ 2011 Oct 10 ]

resolved in svn://svn.zabbix.com/branches/dev/ZBX-4208

Comment by Aleksandrs Saveljevs [ 2011 Oct 10 ]

(1) Not exactly related, but running "make gettext" results in the following error:

$ make gettext
frontends/php/locale/make_mo.sh
frontends/php/locale/de/LC_MESSAGES/frontend.po:6385: a format specification for argument 1 doesn't exist in 'msgstr'
msgfmt: found 1 fatal error

<richlv> incorrect entry will be fixed by translation maintainer; to ensure that such cases are caught sooner, check fuzzy entries while updating po files
<richlv> to clarify, fuzzy entry checking was added in the script; problem with translation has been fixed in pootle, will be merged shortly (but not as part of this branch)

RESOLVED

<asaveljevs> CLOSED

Comment by richlv [ 2011 Oct 11 ]

additional changes made : all language strings use direct gettext functions; all language strings use language_region code (also changed in all translations)

Comment by richlv [ 2011 Oct 11 ]

trunk rev 22272.

windows locale was not changed yet - determining a need for that was split out as a separate issue ZBXNEXT-994





[ZBX-4209] undefined index: select [latest.php] Created: 2011 Oct 06  Updated: 2017 May 30  Resolved: 2011 Oct 12

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.7 (beta)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: gui, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

latest trunk r22162


Issue Links:
Duplicate

 Description   

Go to Monitoring -> Hosts -> click Items for any host

At the bottom of page see:
Undefined index: select [latest.php:92]
Undefined index: select [latest.php:138]



 Comments   
Comment by Alexei Vladishev [ 2011 Oct 12 ]

Fix is available in dev branch ready to test.

Comment by Alexey Fukalov [ 2011 Oct 12 ]

Tested

Comment by Alexei Vladishev [ 2011 Oct 13 ]

Fixed in revision 22344.





[ZBX-4205] When change trigger in template, changes of inherited triggers are not added to audit log Created: 2011 Oct 05  Updated: 2017 May 30  Resolved: 2011 Oct 10

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.8
Fix Version/s: 1.8.9, 1.9.7 (beta)

Type: Incident report Priority: Minor
Reporter: Alexey Fukalov Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: audit
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBX-4215 When change trigger in template, chan... Closed

 Description   

Create host "localhost" and link trigger "Template_Linux".

change item status enable to disable on "Template_Linux", following log is recorded on Audit screen:

  • Template_Linux:Buffers memory items.status: 1 => 0
  • localhost:Buffers memory items.status: 1 => 0

However, change trigger status enable to disable on "Template_Linux", only log of "Template_Linux" is recorded:

  • Template_Linux:/etc/inetd.conf has been changed on server {HOSTNAME}

    triggers.status: 1 => 0



 Comments   
Comment by Alexey Fukalov [ 2011 Oct 06 ]

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-4205

Comment by Alexey Fukalov [ 2011 Oct 07 ]

svn://svn.zabbix.com/branches/1.8 22213

Comment by Alexey Fukalov [ 2011 Oct 10 ]

not fixed in trunk

Comment by Alexey Fukalov [ 2011 Oct 10 ]

trunk fix: dev branch: svn://svn.zabbix.com/branches/dev/ZBX-4205

Comment by Alexey Fukalov [ 2011 Oct 11 ]

svn://svn.zabbix.com/trunk 22285





[ZBX-4216] Weekday and Yes/No terms is wrong Brazilian Portuguese translation Created: 2011 Oct 07  Updated: 2017 May 30  Resolved: 2011 Oct 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.8, 1.9.7 (beta)
Fix Version/s: 1.8.9, 1.9.7 (beta)

Type: Incident report Priority: Critical
Reporter: Ricardo Santos Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: brazilian, portuguese, translation
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File ZBX-4216_patch.txt    

 Description   

For both 1.8 and 1.9:

  • Tuesday was translated with "Quinta-feira" that means "Thursday"
  • Thursday was translated with "Terça-feira" that means "Tuesday"

Only 1.9:

  • Yes was translated with "NĂŁo" that means No
  • No was translated with "Sim" that means Yes


 Comments   
Comment by Ricardo Santos [ 2011 Oct 07 ]

Patch for 1.8 - http://pastebin.com/6f1civyb
I corrected these terms in pootle

Comment by richlv [ 2011 Oct 07 ]

thanks, 1.8 fix committed in rev 22215.

Comment by richlv [ 2011 Oct 08 ]

updated br_pt synced to trunk -> should be fixed





[ZBX-4220] zabbix_server.conf has wrong path Created: 2011 Oct 11  Updated: 2017 May 30  Resolved: 2011 Oct 11

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: 1.9.6 (beta)
Fix Version/s: 1.9.7 (beta)

Type: Incident report Priority: Major
Reporter: Ari Maniatis Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

FreeBSD 8.2


Issue Links:
Duplicate
duplicates ZBX-1020 zabbix ignores prefix for configurati... Closed

 Description   

When you compile the server application binaries, a prefix option allow you to set the installation path for the binaries. This is /usr/local by default. The configuration path is /usr/local/etc by default. However the binary looks for its config at /etc instead which is incorrect, unless you path the -c option.






[ZBX-4222] text "Period .." should be improved in the action settings form Created: 2011 Oct 11  Updated: 2017 May 30  Resolved: 2011 Oct 14

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.7 (beta)
Fix Version/s: 1.9.7 (beta)

Type: Incident report Priority: Minor
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Since in the trunk escalation enabled by default a check-box "Enable escalations" was removed.
But now the text "Period (minimum 60 seconds)" became intuitively not clear.

I propose to write it like this:
"Escalations period (minimum 60 seconds)"

That's all



 Comments   
Comment by Alexei Vladishev [ 2011 Oct 14 ]

Also changed "Escalation period..." to "Default escalation period...". Fixed in revision 22391.





[ZBX-4233] error in query when deleting an active maintenance Created: 2011 Oct 13  Updated: 2017 May 30  Resolved: 2011 Oct 14

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.7 (beta)
Fix Version/s: 1.9.7 (beta)

Type: Incident report Priority: Critical
Reporter: Aleksandrs Saveljevs Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates ZBXNEXT-910 Redesign Configuration->Maintenance Closed

 Description   

Inspired by ZBX-4227: in trunk, it is not possible to delete an active maintenance due to foreign key constraints:

Error in query [DELETE FROM maintenances WHERE (maintenanceid IN ('2')) ] [Cannot delete or update a parent row: a foreign key constraint fails (`issue_dev_502`.`hosts`, CONSTRAINT `c_hosts_2` FOREIGN KEY (`maintenanceid`) REFERENCES `maintenances` (`maintenanceid`))]
SQL statement execution has failed "DELETE FROM maintenances WHERE (maintenanceid IN ('2')) "

Before deleting a maintenance, the GUI has to reset fields related to maintenance in the hosts table.



 Comments   
Comment by Igor Danoshaites (Inactive) [ 2011 Oct 14 ]

Has been fixed in dev branch ZBXNEXT-910 in rev #22387.

Comment by Eduards Samersovs (Inactive) [ 2011 Oct 17 ]

trunk revision 22442





[ZBX-4232] Unclear log message "first network error" Created: 2011 Oct 13  Updated: 2017 May 30  Resolved: 2012 Jan 29

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P), Server (S)
Affects Version/s: 1.8.8
Fix Version/s: 1.8.9, 1.9.7 (beta)

Type: Incident report Priority: Trivial
Reporter: Attilla de Groot Assignee: dimir
Resolution: Fixed Votes: 0
Labels: logging, usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian


Issue Links:
Duplicate
is duplicated by ZBX-2091 Zabbix server network error, says it ... Closed
is duplicated by ZBX-9501 "first network error" Closed

 Description   

Currently I'm getting the following message for a *nix host:

21081:20111013:102745.243 Zabbix Host [xxx]: first network error, wait for 15 seconds

Probably not a big issue, just some item that can't be retreived. However, in the interface everything looks ok and no unsupported items. I'd like to resolve this, but I don't know which item is causing this issue. Please include an item name in log message.



 Comments   
Comment by dimir [ 2011 Oct 13 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-4232 .

Comment by Oleksii Zagorskyi [ 2011 Oct 13 ]

Maybe the massages:
6641:20111007:091459.168 Disabling Zabbix host [Zabbix server]
6641:20111007:091959.201 Enabling Zabbix host [Zabbix server]
could be improved too?
It's not clear what means that host is Disabling, Enabling. Sometimes this confuses me.

I recently ran into this problem.

Comment by dimir [ 2011 Oct 13 ]

What's your suggestion? "Disabling checks on Zabbix host [Zabbix server], no responce while processing item [system.uptime]"?

Comment by dimir [ 2011 Oct 13 ]

<Rich> dimir, if i recall correctly, several items can lead to disabling a host
<Rich> so giving item there might be a bit misleading

Couple of more suggestions.

<dimir> "Disabling checks on Zabbix Host [Zabbix server] until it becomes available"?
<Rich> "Temporarily disabling host [Zabbix server]" ?

Comment by dimir [ 2011 Oct 13 ]

I vote for

"Temporarily disabling checks on Zabbix host [Zabbix server]: host unavailable"

Any objections?

Comment by richlv [ 2011 Oct 13 ]

"Zabbix" in "Zabbix host" seems a bit redundant. either only "host", or "Zabbix agent host" (assuming it's for passive agents only ?)

Comment by dimir [ 2011 Oct 13 ]

"Zabbix" in "Zabbix host" is a host type. We have it everywhere so we know what "type of host" (item) is disabled. So this is dynamic. Another example:

"Temporarily disabling checks on SNMP host [Zabbix server]: host unavailable"

Comment by Oleksii Zagorskyi [ 2011 Oct 13 ]

I don't know how exactly the disabling works depending of item types and if it really depends of types then i suggest something similar to:

"Temporarily disabling SNMP checks on host [Zabbix server]: host unavailable"
"Temporarily disabling Zabbix agent checks on host [Zabbix server]: host unavailable"
"Temporarily disabling ICMP checks on host [Zabbix server]: host unavailable"

Comment by dimir [ 2011 Oct 13 ]

Looks great. So, here is how it looks now:

25990:20111013:165818.574 SNMP item [snmp.uptime] on host [Zabbix server] failed: first network error, wait for 15 seconds
25995:20111013:165839.704 SNMP item [snmp.uptime] on host [Zabbix server] failed: another network error, wait for 15 seconds
25995:20111013:165900.736 SNMP item [snmp.uptime] on host [Zabbix server] failed: another network error, wait for 15 seconds
25995:20111013:165921.756 temporarily disabling SNMP checks on host [Zabbix server]: host unavailable
25995:20111013:170021.761 enabling SNMP checks on host [Zabbix server]

And if connection is restored before host is disabled:

26559:20111013:170913.022 SNMP item [snmp.uptime] on host [Zabbix server] failed: first network error, wait for 15 seconds
26561:20111013:170928.999 SNMP checks on host [Zabbix server]: connection restored

Same with Zabbix agent (many items):

26558:20111013:171008.264 Zabbix agent item [system.cpu.load[,avg15]] on host [Zabbix server] failed: first network error, wait for 15 seconds
26559:20111013:171008.264 Zabbix agent item [vfs.fs.size[/tmp,free]] on host [Zabbix server] failed: another network error, wait for 15 seconds
26561:20111013:171023.006 Zabbix agent item [vfs.fs.size[/tmp,free]] on host [Zabbix server] failed: another network error, wait for 15 seconds
26561:20111013:171038.008 Zabbix agent item [vfs.fs.inode[/opt,free]] on host [Zabbix server] failed: another network error, wait for 15 seconds
26561:20111013:171053.011 Zabbix agent item [net.tcp.service[pop]] on host [Zabbix server] failed: another network error, wait for 15 seconds
26561:20111013:171108.091 temporarily disabling Zabbix agent checks on host [Zabbix server]: host unavailable
26561:20111013:171208.101 enabling Zabbix agent checks on host [Zabbix server]

How's that?

Comment by Attilla de Groot [ 2011 Oct 13 ]

For me this is great!

Comment by Oleksii Zagorskyi [ 2011 Oct 13 ]

Perfectly !

Comment by richlv [ 2011 Oct 14 ]

awesome, except

"SNMP checks on host [Zabbix server]: connection restored"

i think you the error message. how about "resuming..." ?

Comment by dimir [ 2011 Oct 14 ]

Well, I could not think of anything to add there but I guess "resuming" could be it.

Comment by dimir [ 2011 Oct 14 ]

Fixed in pre-1.8.9 r22410, pre-1.9.7 r22412 .

Comment by Javier Barroso [ 2013 Sep 12 ]

Hello,

We had 55 minutes of not monitoring at one of our server (proxy02). We are using 1.8.10 which should solve this issue.

Do you know why this could be happenning?
$ grep proxy02 zabbix_server.log
11339:20130912:110557.170 Zabbix agent item [kern.sockets.orphan] on host [proxy02] failed: first network error, wait for 15 seconds
11342:20130912:115932.286 resuming Zabbix agent checks on host [proxy02]: connection restored

Thank you
PD: We will try to update our zabbix, I now this is a big NOT LOOK THIS COMMENT ...





[ZBX-4238] Calculated items in discovery templates don't work Created: 2011 Oct 14  Updated: 2017 May 30  Resolved: 2012 Jan 29

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 1.9.7 (beta)
Fix Version/s: 1.9.7 (beta)

Type: Incident report Priority: Blocker
Reporter: Marcin GapiƄski Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: calculateditems, lld
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File item1.png     PNG File item2.png     PNG File item_view.png     PNG File screen.png    

 Description   

Calculated item cannot find items from which the calculated value is to be derived



 Comments   
Comment by Alexander Vladishev [ 2011 Oct 20 ]

Fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-4238

Comment by Aleksandrs Saveljevs [ 2011 Oct 20 ]

(1) Let's do the same for "Database monitor", "SSH agent" and "TELNET agent" items!

<sasha> RESOLVED

<asaveljevs> CLOSED

Comment by Alexander Vladishev [ 2011 Oct 20 ]

Fixed in version pre-1.9.7, r22580.

Comment by richlv [ 2011 Oct 20 ]

(2) i believe we should document where discovery macros are supported, as i don't remember all the locations already...

<asaveljevs> Where would it be better to document that? Page http://www.zabbix.com/documentation/2.0/manual/discovery/low_level_discovery currently says "These macros are then used in names, keys, and expressions of prototypes to create items, triggers, and graphs for each discovered entity.". While not strict, this pretty much covers everything where these macros are supported, including calculated item expressions, SSH and Telnet scripts, and database monitor parameters.

<richlv> would they work in item descriptions, for example ? or any other fields, like allowed hosts for trapper items ? i think the multitude of item properties is what confuses me the most

<asaveljevs> Documented it as "These macros are then used in names, keys, and other prototype fields to create items, triggers, and graphs for each discovered entity. For items, these macros can be used in names, keys, SNMP OID's, calculated item expressions, SSH and Telnet scripts, parameters for database monitors. For triggers, in names and expressions. For graphs, just the name fields.".

<richlv> awesome, thanks -> CLOSED





[ZBX-4251] Not working range selection from DB Created: 2011 Oct 18  Updated: 2017 May 30  Resolved: 2011 Oct 18

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.7 (beta)
Fix Version/s: 1.9.7 (beta)

Type: Incident report Priority: Blocker
Reporter: Alexey Pustovalov Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MySQL



 Description   

after rev22463 - ZBXNEXT-429 make range select work in a more intutive fashion

we have in dashboard thise message:
Incorrect parameters for limit and/or offset. Query [SELECT t.* FROM triggers t WHERE (1=1) AND NOT EXISTS ( SELECT ff.functionid FROM functions ff WHERE ff.triggerid=t.triggerid AND EXISTS ( SELECT ii.itemid FROM items ii, hosts hh WHERE ff.itemid=ii.itemid AND hh.hostid=ii.hostid AND ( ii.status<>0 OR hh.status<>0 ) ) ) AND t.status=0 AND ( (t.value IN ('1')) AND (t.flags IN ('0','4')) ) ORDER BY lastchange DESC] Limit [] Offset [0]
mysql_fetch_assoc() expects parameter 1 to be resource, boolean given [include/db.inc.php:594]
mysql_free_result() expects parameter 1 to be resource, boolean given [include/db.inc.php:596]



 Comments   
Comment by Alexey Pustovalov [ 2011 Oct 18 ]

excuse me
after rev22477 - ZBX-3743 fixed no triggers returned when api trigger.get is called with "limit" and "withLastEventUnacknowledged" options
[merged svn://svn.zabbix.com/branches/1.8 -c22476]

Comment by Alexey Fukalov [ 2011 Oct 18 ]

should be fixed in rev. 22483

Comment by Alexey Pustovalov [ 2011 Oct 18 ]

yes, confirm

Comment by Alexey Fukalov [ 2011 Oct 18 ]

closed

Comment by Oleksii Zagorskyi [ 2011 Oct 19 ]

Damn, 9 miutes for fix !
COOL !!!





[ZBX-4264] Zabbix agent does not compile on HP-UX Created: 2011 Oct 24  Updated: 2017 May 30  Resolved: 2011 Oct 27

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G), Installation (I)
Affects Version/s: 1.8.9, 1.9.7 (beta)
Fix Version/s: 1.8.9, 1.9.7 (beta)

Type: Incident report Priority: Blocker
Reporter: dimir Assignee: dimir
Resolution: Fixed Votes: 0
Labels: agent, compilation, hp-ux
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

HP-UX B.11.11 U 9000/800 886900688 unlimited-user license



 Description   

$ ./configure --enable-agent
$ make
[...]

cc -g zabbix_agentd_SOURCES = active.c active.h stats.c stats.h cpustat.c cpustat.h diskdevices.c diskdevices.h perfstat.c perfstat.h vmstats.c vmstats.h logfiles.c logfiles.h zabbix_agentd.c zbxconf.c zbxconf.h listener.c listener.h eventlog.c eventlog.h -o zabbix_agent zabbix_agent.o stats.o cpustat.o diskdevices.o perfstat.o vmstats.o zbxconf.o ../../src/libs/zbxsysinfo/libzbxagentsysinfo.a ../../src/libs/zbxsysinfo/hpux/libspecsysinfo.a ../../src/libs/zbxsysinfo/common/libcommonsysinfo.a ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a ../../src/libs/zbxlog/libzbxlog.a ../../src/libs/zbxalgo/libzbxalgo.a ../../src/libs/zbxsys/libzbxsys.a ../../src/libs/zbxnix/libzbxnix.a ../../src/libs/zbxcomms/libzbxcomms.a ../../src/libs/zbxconf/libzbxconf.a ../../src/libs/zbxcommon/libzbxcommon.a ../../src/libs/zbxcrypto/libzbxcrypto.a ../../src/libs/zbxjson/libzbxjson.a ../../src/libs/zbxexec/libzbxexec.a zabbix_agent_SOURCES = zabbix_agent.c stats.c stats.h cpustat.c cpustat.h diskdevices.c diskdevices.h perfstat.c perfstat.h vmstats.c vmstats.h zbxconf.c zbxconf.h -lm
active.c:
cpp: "active.c", line 20: error 4036: Can't open include file 'common.h'.
cpp: "active.h", line 23: error 4036: Can't open include file 'threads.h'.
cpp: "active.c", line 23: error 4036: Can't open include file 'cfg.h'.
cpp: "active.c", line 24: error 4036: Can't open include file 'log.h'.
cpp: "active.c", line 30: error 4036: Can't open include file 'comms.h'.
cpp: "active.c", line 31: error 4036: Can't open include file 'threads.h'.
cpp: "active.c", line 32: error 4036: Can't open include file 'zbxjson.h'.
[...]



 Comments   
Comment by dimir [ 2011 Oct 24 ]

The problem is that "-I ../../include" is lost somewhere. If I add this to the cc command-line it compiles.

Comment by dimir [ 2011 Oct 25 ]

The problem appeared to be the way "make" handles multi-line values on HP-UX (or just old "make").

Comment by dimir [ 2011 Oct 25 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-4264 .

Comment by Aleksandrs Saveljevs [ 2011 Oct 26 ]

(1) You have done two fixes: one which moves @AGENT_LIBS@ around and another one which moves @AGENT_LDFLAGS@. It would be nice to figure out which one of them actually helps and whether we can do with just one of them. Once that is decided, we might wish to do the same for server and proxy.

<dimir> Keeping the order of libs in "agent_ldadd" variable. RESOLVED in r22739 .

<asaveljevs> CLOSED

Comment by dimir [ 2011 Oct 27 ]

Fixed in pre-1.8.9 r22757, pre-1.9.8 r22760 .





[ZBX-4271] Memory leaks when an deadlock Created: 2011 Oct 25  Updated: 2017 May 30  Resolved: 2011 Oct 25

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 1.8.9, 1.9.7 (beta)
Fix Version/s: 1.8.9, 1.9.7 (beta)

Type: Incident report Priority: Blocker
Reporter: Alexey Pustovalov Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Gentoo, rev22632, MySQL 5.5 Percona, zabbix server, web and database installed on separate hosts


Issue Links:
Duplicate

 Description   

when zabbix process update triggers table "update triggers set error='Zabbix server was restarted...'"
if query recieves deadlock zabbix-server begins eat memory! Every deadlock eating 5-10MB.



 Comments   
Comment by Aleksandrs Saveljevs [ 2011 Oct 25 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-4271 .

The bug was introduced in pre-1.8.9 under ZBX-4158, so this is a blocker for 1.8.9rc1, which was planned to be released tomorrow (http://twitter.com/#!/zabbix/status/124100757766160384). Thanks, Alexey!

Comment by dimir [ 2011 Oct 25 ]

Successfully tested! Please review my small changes in r22642

Comment by Alexey Pustovalov [ 2011 Oct 25 ]

not working patch for me... i have these errors in logs after applying patch rev22641:
nd hostid between 000000000000000 and 099999999999999]
11509:20111025:175205.107 [Z3005] query failed: [2006] MySQL server has gone away [select i.itemid,i.key_,h.host,i.type,i.history,i****]
11587:20111025:175205.157 Sending configuration data to proxy '**-proxy'. Datalen 496212
11634:20111025:175206.923 [Z3005] query failed: [2006] MySQL server has gone away [begin;]
11650:20111025:175206.941 [Z3005] query failed: [2006] MySQL server has gone away [begin;]

Comment by Aleksandrs Saveljevs [ 2011 Oct 25 ]

Fixed in pre-1.8.9 in r22649.

Comment by Aleksandrs Saveljevs [ 2011 Oct 25 ]

Alexey, the patch does not affect MySQL connectivity in any way. If you still have those errors with the latest trunk (the memory leak fix has already been merged), please provide a longer excerpt from the log file.

Comment by Alexey Pustovalov [ 2011 Oct 25 ]

Sorry, Aleksandrs, my mistake... I found bug in MySQL config file:) Patch working excellent





changes in data.sql for 2.0 (ZBX-2886)

[ZBX-2882] Wrong Item in Linux Template Created: 2010 Aug 14  Updated: 2011 Sep 28  Resolved: 2011 Sep 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 1.8.2
Fix Version/s: 1.8.9, 1.9.7 (beta)

Type: Sub-task Priority: Blocker
Reporter: Radek Vybiral Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: database, installation, templates, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

SLES 10SP2



 Description   

There is a wrong check "vfs.file.cksum[/vmlinuz] " in Linux Template

Most recent distros use /boot/vmlinuz

Please change trigger as well.

Thanks



 Comments   
Comment by richlv [ 2010 Aug 16 ]

was already fixed in the appliance version; won't be fixed in main data.sql until Zabbix 2.0

Comment by Alexander Vladishev [ 2011 Sep 08 ]

vmlinuz Definition documented in http://www.linfo.org/vmlinuz.html

Comment by Alexander Vladishev [ 2011 Sep 08 ]

Fixed in the development branches:
svn://svn.zabbix.com/branches/dev/ZBX-2882
svn://svn.zabbix.com/branches/dev/ZBX-2882-TRUNK

Comment by Alexander Vladishev [ 2011 Sep 28 ]

Fixed in version pre1.8.9, r22022.





Generated at Thu Mar 28 23:15:14 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.