[ZBX-4751] The option "WITH OIDS" any more isn't required in the PostgreSQL database scheme Created: 2012 Mar 13  Updated: 2017 May 30  Resolved: 2012 Mar 13

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Installation (I)
Affects Version/s: 1.9.9 (beta)
Fix Version/s: 2.0.0rc1

Type: Incident report Priority: Major
Reporter: Alexander Vladishev Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: database, postgresql
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Any more isn't required it option in the version 2.0.0. It should be removed from the database scheme.



 Comments   
Comment by Alexander Vladishev [ 2012 Mar 13 ]

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

Comment by Alexander Vladishev [ 2012 Mar 13 ]

Fixed in version pre-2.0.0rc1, revision 26031.





[ZBX-4743] Mass updating trigger severity cause trigger dependencies to be removed Created: 2012 Mar 09  Updated: 2017 May 30  Resolved: 2012 Mar 14

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

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

Preloaded ISO on Hyper-V VM.



 Description   

When mass updating trigger severity, leaving trigger dependencies checkbox untouched, trigger dependencies are unlinked for all the updated triggers.



 Comments   
Comment by Oleksii Zagorskyi [ 2012 Mar 10 ]

maybe it should be retested after merging of ZBX-4333, i.e. in version 1.8.11

Comment by Igor Danoshaites (Inactive) [ 2012 Mar 14 ]

Tested in both 1.8.11rc1 (rev #26049) and in 2.0.0rc1 (rev #26049) -when mass updating trigger severities, leaving trigger dependencies untouched, trigger dependencies remains the same.

Comment by Alexander Vladishev [ 2012 Mar 14 ]

Already fixed in versions pre-1.8.11 r25516 and pre-2.0.0rc1 r25714 with ZBX-4600.





[ZBX-4730] Hint encoding problems, javascript error in Event history screen. Created: 2012 Mar 05  Updated: 2017 May 30  Resolved: 2012 Mar 12

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

Type: Incident report Priority: Major
Reporter: Eduards Samersovs (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

(1) CTag->setHint() at now have unused variable $encode
(2) Need to fix all this function calls in frontend.



 Comments   
Comment by Alexey Fukalov [ 2012 Mar 05 ]

On resolving should be verified that bugs (8) and (9) from ZBXNEXT-904 are resolved too.

<pavels> RESOLVED.
<Eduard> CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 13 ]

The fix is available in the trunk r25969.

CLOSED.





[ZBX-4725] Discovery rule "external check" does not work if item parameter is a macro Created: 2012 Mar 02  Updated: 2017 May 30  Resolved: 2012 Mar 14

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

Type: Incident report Priority: Major
Reporter: Simon Kowallik Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: discovery, lld, macros
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

When creating a discovery rule inside a template with type "external check" and using a macro like

{HOST.IP} as a parameter to pass to the specified script in the key, zabbix fails to match the returned JSON.
Example:
key is: script.name[{HOST.IP}

,param1,param2]

Template is assigned to host with IP 198.18.0.123.

zabbix_server.log (Debug:4) says:

11507:20120302:191438.614 In substitute_key_macros() data:'script.name[

{HOST.IP},param1,param2]'
11504:20120302:191438.614 End of get_values():0
11507:20120302:191438.614 In substitute_simple_macros() data:'{HOST.IP}

'

11507:20120302:191438.614 End substitute_simple_macros() data:'198.18.0.123'
11504:20120302:191438.614 In DCconfig_get_poller_nextcheck() poller_type:0
11507:20120302:191438.614 End of substitute_key_macros():SUCCEED data:'script.name[198.18.0.123,param1,param2]'
11504:20120302:191438.614 End of DCconfig_get_poller_nextcheck():1330712079
11507:20120302:191438.614 In get_value() key:'script.name[

{HOST.IP},param1,param2]'
11504:20120302:191438.614 sleeping for 1 seconds
11507:20120302:191438.614 In get_value_external() key:'script.name[{HOST.IP}

,param1,param2]'
11505:20120302:191438.615 get_snmp() snmp_synch_response():0
11507:20120302:191438.615 In zbx_popen() command:'/opt/zabbix/share/zabbix/externalscripts/script.name "198.18.0.123" "param1" "param2"'

11507:20120302:191438.705 query [txnlev:1] [begin;]
11507:20120302:191438.705 query [txnlev:1] [update items set lastclock=1330712078,lastns=704097134,error='Cannot find the "script.name[

{HOST.IP},param1,param2]" key in received JSON object' where itemid=22508]
11507:20120302:191438.705 query [txnlev:1] [commit;]
11507:20120302:191438.708 End of DBlld_process_discovery_rule()

Zabbix expects the script to return a JSON object with object name "script.name[{HOST.IP}

,param1,param2]" where the script would return "script.name[198.18.0.123,param1,param2]".

That makes macros unusable as a parameter to the script. The script would never know what macro was supplied, just the value of the macro.

I believe this is a bug.

  1. zabbix_server -V
    Zabbix server v1.9.10 (revision 25576) (01 February 2012)
    Compilation time: Feb 24 2012 10:47:31

Kind regards,
simon



 Comments   
Comment by Oleksii Zagorskyi [ 2012 Mar 04 ]

Yes, the macro

{HOST.IP<1-9>}

should be supported for "Item key's parameters"
http://www.zabbix.com/documentation/2.0/manual/appendix/macros/supported_by_location

Comment by Simon Kowallik [ 2012 Mar 04 ]

Dear Oleksiy,

{HOST.IP<1-9>} is supported. That's not the point.

The point is, that when using a macro the script will receive the macro value. In case of {HOST.IP<1-9>}

it will be an IP address.
Therefore the script will return the IP in the JSON object.

Zabbix currently expects the script to return the configured key exactly like this: 'script.name[

{HOST.IP}

,param1,param2]'
That is a problem, as the script will not have any information about the used macro as it receives an IP address and not the macro itself.

The script returns the IP instead of the macro, like this: 'script.name[198.18.0.123,param1,param2]'

Zabbix should deal with that.

br

Comment by richlv [ 2012 Mar 04 ]

could you please clarify where exactly are you using the string "script.name[

{HOST.IP}

,param1,param2]" ?

Comment by Simon Kowallik [ 2012 Mar 04 ]

In the key field, as documented.
http://imageshack.us/photo/my-images/24/zabbixlld.png/

-----------------------------------------------------------------------------------------------------------------------------------------------------------------
More details:

Zabbix will call the script like:
/opt/zabbix/share/zabbix/externalscripts/script.name "198.18.0.123" "param1" "param2"

Log > 11507:20120302:191438.615 In zbx_popen() command:'/opt/zabbix/share/zabbix/externalscripts/script.name "198.18.0.123" "param1" "param2"'

Naturally the script would return this JSON object:
{
"script.name[198.18.0.123,param1,param2]": [
{
"

{#MYINDEX1}": "1",
"{#MYVALUE}": "1000"
},
{
"{#MYINDEX1}

": "2",
"

{#MYVALUE}": "2000"
},
{
"{#MYINDEX1}": "3",
"{#MYVALUE}

": "3000"
}
]
}
Zabbix will not accept that object because it tries to match it to the key value, which is: 'script.name[

{HOST.IP},param1,param2]' (without single quotes)

Log > 11507:20120302:191438.705 query [txnlev:1] [update items set lastclock=1330712078,lastns=704097134,error='Cannot find the "script.name[{HOST.IP}

,param1,param2]" key in received JSON object' where itemid=22508]

When the script returns the macro name in the JSON object it works.
But how does the script determine which macro was used?
-> Zabbix has to accept the VALUE OF THE USED MACRO, not the MACRO NAME in the JSON object.

Working JSON object, returned by the script.
{
"script.name[

{HOST.IP}

,param1,param2]": [
{
"

{#MYINDEX1}": "1",
"{#MYVALUE}": "1000"
},
{
"{#MYINDEX1}

": "2",
"

{#MYVALUE}": "2000"
},
{
"{#MYINDEX1}": "3",
"{#MYVALUE}

": "3000"
}
]
}

Comment by richlv [ 2012 Mar 04 ]

hmm. why use the macro at all then ?

also, it's better to attach images directly to the issue, that way they are more permanent (and imageshack is terrible, i can never get the full size image there )

Comment by Simon Kowallik [ 2012 Mar 04 ]

Well I use the macro because I define this discovery rule inside a Template. And I would like to assign that Template to a lot of devices.

Attaching an Image does not work for me. Java Clipboard Copy&Paste is not very nice. Sorry.

Comment by richlv [ 2012 Mar 04 ]

at the top of this issue, there should be "more actions -> attach files"
but my question was - why use the macro at all ? if this is a discovery rule, it would usually work the same in all hosts. if you have to customise something, wouldn't it be in auto-created item keys instead ?

Comment by Simon Kowallik [ 2012 Mar 04 ]

The script needs an IP address or Hostname to connect to. That's why it needs a macro, or IP, or Host.
It will not be executed by a Zabbix Agent.

See: https://github.com/simonkowallik/Zabbix-Addons

Comment by richlv [ 2012 Mar 04 ]

ah, right, sorry - missed the fact that it's an external check.
right, this scenario might not work that well currently.

Comment by Alexander Vladishev [ 2012 Mar 06 ]

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

Fixed documentation:
http://www.zabbix.com/documentation/2.0/manual/discovery/low_level_discovery?&#discovery_item_json_format

Now, a JSON object should contain not an item key but "data".

For example:

old JSON object
{"net.if.discovery":[{"

{#IFNAME}":"lo"}, {"{#IFNAME}

":"eth0"}, {"

{#IFNAME}":"eth1"}]}

new:
{"data":[{"{#IFNAME}

":"lo"}, {"

{#IFNAME}":"eth0"}, {"{#IFNAME}

":"eth1"}]}

Comment by Oleksii Zagorskyi [ 2012 Mar 06 ]

Sasha, regarding this changes, will trunk agents 1.9.x-1.9.9 (agents compiled before this change) work with latest revisions of zabbix server ?
Or trunk agents should be updated (recompiled) too?

<Sasha> Yes, all agents should be recompiled too. LLD checks won't work with the old 1.9.9 agent and the new 1.9.10 server.

Comment by dimir [ 2012 Mar 13 ]

Fix components.

Comment by dimir [ 2012 Mar 13 ]

Brilliant, works like a charm.

Comment by Alexander Vladishev [ 2012 Mar 13 ]

Fixed in the version pre-2.0.0rc1, r26035.

Comment by dimir [ 2012 Mar 14 ]

Reopening to fix title.

Comment by dimir [ 2012 Mar 14 ]

Fix title

Comment by dimir [ 2012 Mar 14 ]

Close issue

Comment by Oleksii Zagorskyi [ 2012 Mar 15 ]

Just a note for my latest comment:

If use zabbix agent versions 1.9.1-1.9.9 (beta versions) with zabbix server version 2.0.x then LLD will not work and every discovery rule will have this error description:
Cannot find the "data" array in the received JSON object

Comment by Kenneth Palmertree [ 2014 Jul 14 ]

This looks like it broke again in 2.2.4. Was working in 2.2.3. External scripts using macros in lld keys get json errors back.

Comment by Oleksii Zagorskyi [ 2014 Jul 14 ]

Kenneth, if it is then you would need to create another ZBX report.





[ZBX-4721] JSON parser does not handle \u0000 properly Created: 2012 Mar 02  Updated: 2017 May 30  Resolved: 2012 Mar 02

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G), Proxy (P), Server (S)
Affects Version/s: 1.8.10, 1.9.9 (beta)
Fix Version/s: 1.8.11, 2.0.0rc1

Type: Incident report Priority: Minor
Reporter: Alexander Vladishev Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: json
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Given an esc in text gets translated to \u001b but when transforming back to txt becomes ^Ab

      • distro/src/libs/zbxjson/json.c Sat Sep 10 03:10:56 2011
      • distro_patched/src/libs/zbxjson/json.c Tue Feb 21 12:52:38 2012
        ***************
      • 705,711 ****
        *o++ = '\t';
        break;
        case 'u':
        ! p += 2; /* "00" */
        c = zbx_hex2num(*p++) << 4;
        c += zbx_hex2num(*p);
        *o++ = (char)c;
      • 705,711 ----
        *o++ = '\t';
        break;
        case 'u':
        ! p += 3; /* "U00" REA */
        c = zbx_hex2num(*p++) << 4;
        c += zbx_hex2num(*p);
        *o++ = (char)c;


 Comments   
Comment by Alexander Vladishev [ 2012 Mar 02 ]

Fixed in versions pre-1.8.10 r25752 and pre-1.9.10 r25753.





[ZBX-4717] Fatal error on third installation step. Created: 2012 Mar 01  Updated: 2017 May 30  Resolved: 2012 Mar 02

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

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


 Description   

"Check of pre-requisites" installation step gives error "Fatal error: require_once(): Failed opening required '/home/vedmak/public_html/commit_trunk/frontends/php/include/../setup.inc.php' "



 Comments   
Comment by Alexander Vladishev [ 2012 Mar 02 ]

Broken after ZBX-4537 implementation.

Fixed in version pre-1.9.10, revision 25737.





[ZBX-4712] no mouseover info in GUI Created: 2012 Feb 29  Updated: 2017 May 30  Resolved: 2012 Mar 29

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

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


 Description   

No mouseover info above acknowledged trigger in screens, dependencies in triggers menu (Dependent, Depends on), etc.

Tested in chrome 17.0.963.56, firefox 10.0.2.

Is this feature or a bug?



 Comments   
Comment by Robert Jerzak [ 2012 Mar 02 ]

The issue is fixed in version pre-1.9.10.





[ZBX-4711] creating host with linked template cause: Undefined variable: rows [include/triggers.inc.php:301] Created: 2012 Feb 29  Updated: 2017 May 30  Resolved: 2012 Mar 06

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

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

Attachments: PNG File Screen shot 2012-02-29 at 10.48.53 .png     PNG File Screen shot 2012-02-29 at 10.49.15 .png     PNG File Screen shot 2012-02-29 at 11.01.56 .png     PNG File Screen shot 2012-02-29 at 11.02.11 .png    

 Description   

I have migrated system from zabbix 1.8.10 to 1.9.9 in testing environment.

I have one test template with one simple check item (key: icmpping) and one trigger (expression: sum(#2)=0).

When I want to create host linked to the template error is generated:

ERROR: Cannot add host

Created: Application "ICMP" on "test".
Created: Item "ICMP Ping" on "test".
Created: Trigger "host unreachable (ICMP)" on "test".
Deleted: Trigger "host unreachable (ICMP)" on "Template Ping".
Deleted: Trigger "host unreachable (ICMP)" on "Template FCX648".
Deleted: Trigger "host unreachable (ICMP)" on "Template VDX6720".
Undefined variable: rows [include/triggers.inc.php:301]
Undefined variable: rows [include/triggers.inc.php:301]
Undefined variable: rows [include/triggers.inc.php:301]
Undefined variable: rows [include/triggers.inc.php:301]
Undefined variable: rows [include/triggers.inc.php:301]
Undefined variable: rows [include/triggers.inc.php:301]
Undefined variable: rows [include/triggers.inc.php:301]
Undefined variable: rows [include/triggers.inc.php:301]
Undefined variable: rows [include/triggers.inc.php:301]
mysql_real_escape_string() expects parameter 1 to be string, array given [include/db.inc.php:616]
mysql_real_escape_string() expects parameter 1 to be string, array given [include/db.inc.php:616]
Error in query [INSERT INTO auditlog_details (auditdetailid,auditid,table_name,field_name,oldvalue,newvalue) VALUES (1603327,5861884,'','hosts',Array,Array)] [Unknown column 'Array' in 'field list']
Updated: Trigger "host unreachable (ICMP)" on "test".



 Comments   
Comment by Alexei Vladishev [ 2012 Mar 02 ]

Please could you try the latest pre-1.9.10. I believe the issue has already been fixed.

Comment by Robert Jerzak [ 2012 Mar 02 ]

I can confirm, the issue is fixed in version pre-1.9.10.

Comment by Alexander Vladishev [ 2012 Mar 06 ]

Already fixed in version pre-1.9.10, r25256 with ZBXNEXT-903.

Comment by richlv [ 2012 Mar 06 ]

reopening - if it's fixed, resolution probably shouldn't be "wontfix"





[ZBX-4708] Severity selection control issue in the trigger mass update form Created: 2012 Feb 28  Updated: 2017 May 30  Resolved: 2012 Mar 06

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

Type: Incident report Priority: Critical
Reporter: Pavels Jelisejevs (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: dependencies, massupdate, trigger
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The javascript severity selection control is reset to radio buttons when adding a dependency. To reproduce, go to the trigger mass update form, check both "severity" and "replace dependencies" and add a dependency to the list.



 Comments   
Comment by Alexander Vladishev [ 2012 Mar 06 ]

Confirmed in latest trunk r25828.

Comment by Alexander Vladishev [ 2012 Mar 06 ]

Fixed in version pre-1.9.10, r25829.





[ZBX-4694] DCflush_trends(): "Conditional jump or move depends on uninitialised value(s)" Created: 2012 Feb 24  Updated: 2017 May 30  Resolved: 2012 Feb 24

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

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

versions 1.8.6, 1.8.7, 1.8.8, 1.8.9, 1.8.10 and trunk, from revision 19379.


Issue Links:
Duplicate

 Description   

This problem can cause a server stop or SQL errors like:

2937:20110721:120009.940 [Z3005] query failed: [1062] Duplicate entry '22173-1311246000' for key 'PRIMARY' [insert into trends (itemid,clock,num,value_min,value_avg,value_max) values (22173,1311246000,10,0.000000,0.034000,0
.140000),(22176,1311246000,10,0.000000,0.000000,0.000000);
]
2937:20110721:120009.941 [Z3005] query failed: [1062] Duplicate entry '22172-1311246000' for key 'PRIMARY' [insert into trends_uint (itemid,clock,num,value_min,value_avg,value_max) values (22171,1311246000,10,1549,1812,2255
),(22172,1311246000,10,873,4341,15906),(22174,1311246000,10,541,1184,1760);
]

I can't reproduce it, but the problem is quite real!

----------

Valgrind output (trunk r25576):

==00:00:04:56.530 23549== Conditional jump or move depends on uninitialised value(s)
==00:00:04:56.530 23549== at 0x42F78A: DCflush_trends (dbcache.c:473)
==00:00:04:56.530 23549== by 0x431B47: DCmass_update_trends (dbcache.c:712)
==00:00:04:56.530 23549== by 0x43301D: DCsync_history (dbcache.c:2105)
==00:00:04:56.530 23549== by 0x4121B9: main_dbsyncer_loop (dbsyncer.c:65)
==00:00:04:56.530 23549== by 0x4115CA: MAIN_ZABBIX_ENTRY (server.c:710)
==00:00:04:56.530 23549== by 0x43F120: daemon_start (daemon.c:286)
==00:00:04:56.530 23549== by 0x411B69: main (server.c:469)



 Comments   
Comment by Alexander Vladishev [ 2012 Feb 24 ]

Related issue ZBX-3731.

Comment by Alexander Vladishev [ 2012 Feb 24 ]

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

Comment by dimir [ 2012 Feb 27 ]

Great fix. This can potentially improve performance of db syncer when syncing trends.

Comment by Alexander Vladishev [ 2012 Feb 27 ]

Fixed in versions pre-1.8.11 r25628 and pre-1.9.10 r25629.





[ZBX-4693] mysql database upgrade scripts cause: Cannot add or update a child row: a foreign key constraint fails... Created: 2012 Feb 24  Updated: 2017 May 30  Resolved: 2012 Feb 25

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Installation (I)
Affects Version/s: 1.9.9 (beta)
Fix Version/s: 2.0.0rc1

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

Attachments: File patch.sql    

 Description   

I am not sure if this kind of issue fits bug tracker.

I am upgrading mysql database from zabbix 1.8.10 to 1.9.9 with script patch.sql. My mysql database is size about 50GB.

During an upgrade I get error:
ERROR 1452 (23000) at line 886: Cannot add or update a child row: a foreign key constraint fails (`zabbix`.<result 2 when explaining filename '#sql-2621_6'>, CONSTRAINT `c_hosts_2` FOREIGN KEY (`maintenanceid`) REFERENCES `maintenances` (`maintenanceid`))

My second try:
ERROR 1452 (23000) at line 886: Cannot add or update a child row: a foreign key constraint fails (`zabbix`.<result 2 when explaining filename '#sql-396b_2'>, CONSTRAINT `c_hosts_2` FOREIGN KEY (`maintenanceid`) REFERENCES `maintenances` (`maintenanceid`))

Temporary directory for mysql is about 65G free.

Any sugestion how can I workaround this issue and convert all database?



 Comments   
Comment by dimir [ 2012 Feb 24 ]

Could you attach the patch.sql that was used?

Comment by Robert Jerzak [ 2012 Feb 24 ]

This is script from zabbix-1.9.9.

Comment by dimir [ 2012 Feb 24 ]

Oh, right.

Comment by dimir [ 2012 Feb 24 ]

Please give me the output of these 2 sql queries:

select maintenanceid from hosts where maintenanceid is not null;
select maintenanceid from maintenances;

I think some host is referencing (is in maintenance status of) some non-existing maintenance.

Comment by Robert Jerzak [ 2012 Feb 24 ]

> select maintenanceid from maintenances;
---------------

maintenanceid

---------------

528
686
793
918
919
921
922
923
924

---------------
9 rows in set (0.00 sec)

> select maintenanceid from hosts where maintenanceid is not null;
---------------

maintenanceid

---------------

0
0
0
0
0
792
0
0
0
0
0
181
0
0
0
0
0
746
747
747
747
747
751
0
0
0
0
0
751
0
751
0
0
0
0
0
0
0
751
752
752
753
0
0
0
0
0
762
0
0
0
0
747
746
0
0
0
751
752
0
0
0

[…]

0
743
752
754
0
0
0
0
0
0
0
740
0
0
0

[…]

0
0
792
0
792

[…]

0
0
0

---------------
1688 rows in set (0.00 sec)

There is a lot of (~1600) rows with 'maintenanceid' = 0.

Comment by dimir [ 2012 Feb 25 ]

Please run next command before running an upgrade script:

UPDATE hosts
SET maintenanceid=NULL,
maintenance_status=0,
maintenance_type=0,
maintenance_from=0
WHERE maintenanceid=0
OR maintenanceid NOT IN (SELECT maintenanceid FROM maintenances);

Comment by dimir [ 2012 Feb 25 ]

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

Comment by Robert Jerzak [ 2012 Feb 27 ]

It seems that your solution helped - script passes that section.

I don't know if script has completed without error because it is still running - for about 31h (50 GB database):

2 root localhost zabbix Query 112165 Sending data INSERT INTO tmp_events_eventid (eventid,prev_value)
(
SELECT e1.eventid,(SELECT e2.value
FROM events e2
WHERE e2.source=e1.source
AND e2.object=e1.object
AND e2.objectid=e1.objectid
AND (e2.clock<e1.clock OR (e2.clock=e1.clock AND e2.eventid<e1.eventid))
AND e2.value<2
ORDER BY e2.source DESC,
e2.object DESC,
e2.objectid DESC,
e2.clock DESC,
e2.eventid DESC,
e2.value DESC
LIMIT 1) AS prev_value
FROM events e1
WHERE e1.source=0
AND e1.object=0
AND e1.value=0
HAVING prev_value IS NULL OR prev_value = 1
)

But I dont think you can help me in this matter?

<dimir> Could be some DB lock issue. It shouldn't be running for that long. You mean it's stuck on that query?

Comment by Alexander Vladishev [ 2012 Feb 27 ]

(1) please review my changes in r25619.

<dimir> Perfect, tested with every DB! CLOSED

Comment by dimir [ 2012 Feb 27 ]

Fixed in pre-1.9.10 r25648.

During db upgrade invalid maintenance references are set to NULL in hosts table.

Comment by Robert Jerzak [ 2012 Feb 27 ]

> <dimir> Could be some DB lock issue. It shouldn't be running for that long. You mean it's stuck on that query?

We can say that it is stuck, this query is running for about 37h. One processor core is utilized in 100% by mysqld process with this query, IO utilization is 0 percent - looks like there is no disk involved in this operation.

Do you have any suggestion?

Comment by richlv [ 2012 Mar 02 ]

so... is the query still running ?

Comment by Robert Jerzak [ 2012 Mar 03 ]

I have killed the process after 57h of running. I found a way to speed up an upgrade - "truncate events" and upgrade lasted almost 4h. In the events table I have almost 46000000 records - it is very time consuming. Events are less important for me than history and trends.





[ZBX-4683] History data is missing Created: 2012 Feb 22  Updated: 2017 May 30  Resolved: 2012 Feb 22

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P)
Affects Version/s: 1.8.10, 1.9.9 (beta)
Fix Version/s: 1.8.11, 2.0.0rc1

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

Attachments: JPEG File Latest 500 values.jpg    
Issue Links:
Duplicate

 Description   

[Summary]

In Zabbix Proxy environment, history value is always missing when Zabbix server is stopped. The missing value is only one after stop Zabbis server.

Please see screenshot "Latest 500 value"

[Reproduce]

1. Setup agent, server, proxy
2. Add proxy server
3. Add host using above proxy
4. Add icmpping item (60 sec interval) to above host
5. Wait after receive new value
6. Stop Zabbix server
7. Wait 5 minutes
8. Start Zabbix server

The value at "2012.Feb.21 09:00:22" (unixtime : 1329782482) is missing. This value is exists on Proxy database, but not exists on Server database.

However, there is strange value at "2012.Feb.21 09:05:32" (unixtime : 1329782732). This value is not exists on Proxy database, but exists on Server database.

Please see zabbix_server_debug.log and zabbix_proxy_debug.log.
Proxy send 1329782482 data to Server, and Server receive the data. but Server store the data with 1329782732 timestamp.

[history value on Zabbix Proxy database]

  1. mysql -uroot zabbix_proxy -e 'select clock, from_unixtime(clock), value from proxy_history order by clock desc;'
    -------------------------------------
    clock from_unixtime(clock) value

    -------------------------------------

    1329782962 2012-02-21 09:09:22 1
    1329782902 2012-02-21 09:08:22 1
    1329782842 2012-02-21 09:07:22 1
    1329782782 2012-02-21 09:06:22 1
    1329782722 2012-02-21 09:05:22 1
    1329782662 2012-02-21 09:04:22 1
    1329782602 2012-02-21 09:03:22 1
    1329782542 2012-02-21 09:02:22 1
    1329782482 2012-02-21 09:01:22 1
    1329782422 2012-02-21 09:00:22 1
    1329782362 2012-02-21 08:59:22 1
    1329782302 2012-02-21 08:58:22 1
    1329782242 2012-02-21 08:57:22 1

    -------------------------------------

[history value on Zabbix Server database]

  1. mysql -uroot zabbix -e 'select clock, from_unixtime(clock), value from history_uint order by clock desc'
    -------------------------------------
    clock from_unixtime(clock) value

    -------------------------------------

    1329782962 2012-02-21 09:09:22 1
    1329782902 2012-02-21 09:08:22 1
    1329782842 2012-02-21 09:07:22 1
    1329782782 2012-02-21 09:06:22 1
    1329782732 2012-02-21 09:05:32 1
    1329782722 2012-02-21 09:05:22 1
    1329782662 2012-02-21 09:04:22 1
    1329782602 2012-02-21 09:03:22 1
    1329782542 2012-02-21 09:02:22 1
    1329782422 2012-02-21 09:00:22 1
    1329782362 2012-02-21 08:59:22 1
    1329782302 2012-02-21 08:58:22 1
    1329782242 2012-02-21 08:57:22 1

    -------------------------------------



 Comments   
Comment by Alexander Vladishev [ 2012 Feb 22 ]

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

Comment by dimir [ 2012 Feb 23 ]

Successfully tested! The history data timestamps are properly transferred to server.

Comment by Alexander Vladishev [ 2012 Feb 23 ]

Fixed in version pre-1.8.11 r25568 and pre-1.9.10 r25569.





[ZBX-4682] invalid SNMP OID at position 0: " " Created: 2012 Feb 22  Updated: 2017 May 30  Resolved: 2012 Feb 23

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

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

RHEL 6.2



 Description   

I'm running pre1.9.10 build 25525 and there following error gets logged all the time (several every minute usually, but sometimes a break of five minutes)

invalid SNMP OID at position 0: " "

This wasn't an issue in 1.9.9, but I upgraded to pre1.9.10 build 25456 to fix the can't add a template with triggers issue and it first appeared for me in that version. I tried upgrading to build 25525 this morning as I thought it would fix this issue as it was reported in ZBX-4675 but they fixed a crashing issue, not this issue.



 Comments   
Comment by Alexander Vladishev [ 2012 Feb 22 ]

After implementing of ZBX-4591 on server side has been added more strict validation of item keys and SNMP OIDs.

Please check SNMP OIDs in your database. They shouldn't be empty for SNMP items.

Comment by richlv [ 2012 Feb 22 ]

could the error message include host/key ? otherwise searching that in a somewhat sizeable database is quite hard...

Comment by Andrew Howell [ 2012 Feb 23 ]

Can you confirm the below query would be okay for checking, as I can't see any SNMP items with empty OIDs

select itemid, type, snmp_oid, hostid, name, key_ from items where snmp_oid = '' and (type = '1' or type = '4' or type = '6');

Comment by richlv [ 2012 Feb 23 ]

just a quick note - this would miss dynamic snmp index items w/o oid specified properly

Comment by Andrew Howell [ 2012 Feb 23 ]

Thanks, ran another query and didn't find any issues with them either (only had 3 and they are returning correct results)

select itemid, type, snmp_oid, hostid, name, key_ from items where snmp_oid like '%"index"%';

Comment by richlv [ 2012 Feb 23 ]

thanks for the update. i guess we really need hostname & key printed then

Comment by dimir [ 2012 Feb 23 ]

Successfully tested. Now the item with invalid SNMP OID becomes unsupported (with proper error message) and the host does not get disabled.

Comment by Alexander Vladishev [ 2012 Feb 23 ]

Fixed in version pre-1.9.10, r25576.

This message will be deduced in the 'error' field of an item. The item status will change on ' Not supported'.

Comment by richlv [ 2012 Feb 24 ]

andrew, if you have a chance to compile latest trunk, does it give you an idea which items it doesn't like ?

Comment by Andrew Howell [ 2012 Feb 27 ]

I'm not getting anything logged now about those SNMP OIDs since upgrade to 25607

Comment by Alexander Vladishev [ 2012 Feb 27 ]

Do you have low-level discovery rules? They also could cause the given message.

Comment by Andrew Howell [ 2012 Feb 28 ]

I do have LLD rules, but I can't see any issues with them.

Comment by Alexander Vladishev [ 2012 Feb 28 ]

This error message was shown not correctly at handling LLD rules.

Comment by Andrew Howell [ 2012 Feb 28 ]

If that was fixed in 25607 then that explains it then





[ZBX-4680] typo in frontends/php/js/class.rpc.js : onSucces Created: 2012 Feb 21  Updated: 2017 May 30  Resolved: 2012 Feb 21

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

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

trunk, 1.8 svn head



 Description   

frontends/php/js/class.rpc.js has :

'onSucces': function(){},

that doesn't seem likely to be useful



 Comments   
Comment by Alexei Vladishev [ 2012 Feb 21 ]

Resolved in revision 25507. No need to code review, just a minor typo.

Comment by richlv [ 2012 Feb 21 ]

...and 25505 for 1.8





[ZBX-4677] Typo in frontends/php/api/classes/class.cscript.php Created: 2012 Feb 18  Updated: 2017 May 30  Resolved: 2012 Feb 18

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

Type: Incident report Priority: Trivial
Reporter: Łukasz Jernaś Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File 0001-Fix-typo.patch    

 Description   

There's a typo in frontends/php/api/classes/class.cscript.php. Should be "failed" instead of "faileds" Patch attached



 Comments   
Comment by Alexei Vladishev [ 2012 Feb 18 ]

Fixed in trunk revision 25455. Minor typo (one bytes fix), no testing required.





[ZBX-4674] server crash soon after startup: malloc(): memory corruption (fast) Created: 2012 Feb 18  Updated: 2017 May 30  Resolved: 2012 Feb 20

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

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

trunk rev 25445.


Attachments: File zabbix.log.bz2     File zabbix_server_objdump-DSswx.obj.bz2     File zabbix_server_objdump.obj.bz2    

 Description   

11692:20120218:043031.817 Starting Zabbix Server. Zabbix 1.9.10 (revision ).
11692:20120218:043031.817 ****** Enabled features ******
11692:20120218:043031.817 SNMP monitoring: YES
11692:20120218:043031.817 IPMI monitoring: YES
11692:20120218:043031.817 WEB monitoring: YES
11692:20120218:043031.817 Jabber notifications: NO
11692:20120218:043031.817 Ez Texting notifications: YES
11692:20120218:043031.817 ODBC: NO
11692:20120218:043031.817 SSH2 support: YES
11692:20120218:043031.817 IPv6 support: YES
11692:20120218:043031.817 ******************************
11692:20120218:043032.161 server #0 started [main process]
11716:20120218:043032.162 server #9 started trapper #1
11717:20120218:043032.163 server #10 started trapper #2
11718:20120218:043032.163 server #11 started trapper #3
11719:20120218:043032.164 server #12 started trapper #4
11721:20120218:043032.164 server #14 started icmp pinger #1
11722:20120218:043032.164 server #15 started alerter #1
11724:20120218:043032.165 server #17 started timer #1
11723:20120218:043032.165 server #16 started housekeeper #1
11723:20120218:043032.165 executing housekeeper
11725:20120218:043032.166 server #18 started http poller #1
11720:20120218:043032.166 server #13 started trapper #5
11728:20120218:043032.168 server #20 started history syncer #1
11730:20120218:043032.169 server #22 started history syncer #3
11708:20120218:043032.170 server #1 started configuration syncer #1
11709:20120218:043032.171 server #2 started db watchdog #1
11732:20120218:043032.171 server #24 started escalator #1
11733:20120218:043032.172 server #25 started proxy poller #1
11731:20120218:043032.172 server #23 started history syncer #4
11729:20120218:043032.169 server #21 started history syncer #2
11734:20120218:043032.172 server #26 started self-monitoring #1
11723:20120218:043035.914 housekeeper deleted: 2185 records from history and trends, 0 records of deleted items, 0 events, 0 alerts, 0 sessions
11713:20120218:043040.798 server #6 started poller #4
11714:20120218:043040.798 server #7 started poller #5
11712:20120218:043040.798 server #5 started poller #3
11711:20120218:043040.799 server #4 started poller #2
11715:20120218:043040.799 server #8 started unreachable poller #1
11710:20120218:043040.799 server #3 started poller #1
11726:20120218:043040.800 server #19 started discoverer #1
11726:20120218:043042.960 discovery rule "sdsdsd": wrong format of IP range "0.0.0.0"
11715:20120218:043101.827 resuming Zabbix agent checks on host [A Test Host 5]: connection restored
11710:20120218:043102.015 invalid OID at position 0: ""
11710:20120218:043102.017 invalid OID at position 0: ""
11710:20120218:043102.019 invalid OID at position 0: ""
11710:20120218:043102.020 invalid OID at position 0: ""
11710:20120218:043132.320 invalid OID at position 0: ""
11710:20120218:043132.321 invalid OID at position 0: ""
11710:20120218:043132.324 invalid OID at position 0: ""
11710:20120218:043132.325 invalid OID at position 0: ""
11710:20120218:043202.591 invalid OID at position 0: ""
11710:20120218:043202.592 invalid OID at position 0: ""
11710:20120218:043202.596 invalid OID at position 0: ""
11710:20120218:043202.600 invalid OID at position 0: ""
11711:20120218:043232.848 invalid OID at position 0: ""
11711:20120218:043232.849 invalid OID at position 0: ""
11711:20120218:043232.852 invalid OID at position 0: ""
11711:20120218:043232.856 invalid OID at position 0: ""
11714:20120218:043302.059 invalid OID at position 0: ""
11714:20120218:043302.060 invalid OID at position 0: ""
11714:20120218:043302.062 invalid OID at position 0: ""
11714:20120218:043302.064 invalid OID at position 0: ""
11714:20120218:043332.344 invalid OID at position 0: ""
11714:20120218:043332.345 invalid OID at position 0: ""
11714:20120218:043332.347 invalid OID at position 0: ""
11714:20120218:043332.348 invalid OID at position 0: ""
11714:20120218:043402.611 invalid OID at position 0: ""
11714:20120218:043402.612 invalid OID at position 0: ""
11714:20120218:043402.614 invalid OID at position 0: ""
11714:20120218:043402.615 invalid OID at position 0: ""
11714:20120218:043432.874 invalid OID at position 0: ""
11714:20120218:043432.875 invalid OID at position 0: ""
11714:20120218:043432.877 invalid OID at position 0: ""
11714:20120218:043432.878 invalid OID at position 0: ""
11712:20120218:043502.146 invalid OID at position 0: ""
11712:20120218:043502.147 invalid OID at position 0: ""
11712:20120218:043502.149 invalid OID at position 0: ""
11712:20120218:043502.150 invalid OID at position 0: ""
11712:20120218:043532.416 invalid OID at position 0: ""
11712:20120218:043532.417 invalid OID at position 0: ""
11712:20120218:043532.420 invalid OID at position 0: ""
11712:20120218:043532.422 invalid OID at position 0: ""
11712:20120218:043602.677 invalid OID at position 0: ""
11712:20120218:043602.678 invalid OID at position 0: ""
11712:20120218:043602.680 invalid OID at position 0: ""
11712:20120218:043602.681 invalid OID at position 0: ""
11713:20120218:043632.934 invalid OID at position 0: ""
11713:20120218:043632.935 invalid OID at position 0: ""
11713:20120218:043632.937 invalid OID at position 0: ""
11713:20120218:043632.938 invalid OID at position 0: ""
11710:20120218:043702.145 invalid OID at position 0: ""
11710:20120218:043702.147 invalid OID at position 0: ""
11710:20120218:043702.150 invalid OID at position 0: ""
11710:20120218:043702.151 invalid OID at position 0: ""
11710:20120218:043732.401 invalid OID at position 0: ""
11710:20120218:043732.402 invalid OID at position 0: ""
11710:20120218:043732.404 invalid OID at position 0: ""
11710:20120218:043732.405 invalid OID at position 0: ""
11710:20120218:043802.669 invalid OID at position 0: ""
11710:20120218:043802.670 invalid OID at position 0: ""
11710:20120218:043802.672 invalid OID at position 0: ""
11710:20120218:043802.673 invalid OID at position 0: ""
11710:20120218:043832.931 invalid OID at position 0: ""
11710:20120218:043832.932 invalid OID at position 0: ""
11710:20120218:043832.935 invalid OID at position 0: ""
11710:20120218:043832.936 invalid OID at position 0: ""
11712:20120218:043902.202 invalid OID at position 0: ""
11712:20120218:043902.203 invalid OID at position 0: ""
11712:20120218:043902.206 invalid OID at position 0: ""
11712:20120218:043902.207 invalid OID at position 0: ""
11712:20120218:043913.278 Zabbix agent item [system.sw.packages[]] on host [A Test Host] failed: first network error, wait for 15 seconds
11715:20120218:043928.903 Zabbix agent item [system.sw.packages[]] on host [A Test Host] failed: another network error, wait for 15 seconds
11715:20120218:043944.056 resuming Zabbix agent checks on host [A Test Host]: connection restored
11712:20120218:044002.620 invalid OID at position 0: ""
11712:20120218:044002.621 invalid OID at position 0: ""
11712:20120218:044002.624 invalid OID at position 0: ""
11712:20120218:044002.625 invalid OID at position 0: ""
11712:20120218:044032.888 invalid OID at position 0: ""
11712:20120218:044032.889 invalid OID at position 0: ""
11712:20120218:044032.892 invalid OID at position 0: ""
11712:20120218:044032.893 invalid OID at position 0: ""
11712:20120218:044102.149 invalid OID at position 0: ""
11712:20120218:044102.150 invalid OID at position 0: ""
11712:20120218:044102.152 invalid OID at position 0: ""
11712:20120218:044102.153 invalid OID at position 0: ""
11712:20120218:044132.208 invalid OID at position 0: ""
11712:20120218:044132.209 invalid OID at position 0: ""
11712:20120218:044132.212 invalid OID at position 0: ""
11712:20120218:044132.215 invalid OID at position 0: ""
11712:20120218:044202.284 invalid OID at position 0: ""
11712:20120218:044202.285 invalid OID at position 0: ""
11712:20120218:044202.287 invalid OID at position 0: ""
11712:20120218:044202.288 invalid OID at position 0: ""
11713:20120218:044232.452 invalid OID at position 0: ""
11713:20120218:044232.453 invalid OID at position 0: ""
11713:20120218:044232.454 invalid OID at position 0: ""
11713:20120218:044232.455 invalid OID at position 0: ""
11712:20120218:044302.551 invalid OID at position 0: ""
11712:20120218:044302.552 invalid OID at position 0: ""
11712:20120218:044302.553 invalid OID at position 0: ""
11712:20120218:044302.554 invalid OID at position 0: ""
11711:20120218:044332.031 invalid OID at position 0: ""
11711:20120218:044332.032 invalid OID at position 0: ""
11711:20120218:044332.035 invalid OID at position 0: ""
11711:20120218:044332.036 invalid OID at position 0: ""
11714:20120218:044402.050 invalid OID at position 0: ""
11714:20120218:044402.052 invalid OID at position 0: ""
11714:20120218:044402.054 invalid OID at position 0: ""
11714:20120218:044402.055 invalid OID at position 0: ""
11714:20120218:044432.143 invalid OID at position 0: ""
11714:20120218:044432.144 invalid OID at position 0: ""
11714:20120218:044432.147 invalid OID at position 0: ""
11714:20120218:044432.148 invalid OID at position 0: ""
11714:20120218:044502.254 invalid OID at position 0: ""
11714:20120218:044502.255 invalid OID at position 0: ""
11714:20120218:044502.259 invalid OID at position 0: ""
11714:20120218:044502.261 invalid OID at position 0: ""
11711:20120218:044532.345 invalid OID at position 0: ""
11711:20120218:044532.346 invalid OID at position 0: ""
11711:20120218:044532.349 invalid OID at position 0: ""
11711:20120218:044532.350 invalid OID at position 0: ""
11710:20120218:044602.439 invalid OID at position 0: ""
11710:20120218:044602.440 invalid OID at position 0: ""
11710:20120218:044602.443 invalid OID at position 0: ""
11710:20120218:044602.444 invalid OID at position 0: ""
11710:20120218:044632.534 invalid OID at position 0: ""
11710:20120218:044632.535 invalid OID at position 0: ""
11710:20120218:044632.541 invalid OID at position 0: ""
11710:20120218:044632.542 invalid OID at position 0: ""
11711:20120218:044702.625 invalid OID at position 0: ""
11711:20120218:044702.626 invalid OID at position 0: ""
11711:20120218:044702.629 invalid OID at position 0: ""
11711:20120218:044702.630 invalid OID at position 0: ""
11714:20120218:044732.699 invalid OID at position 0: ""
11714:20120218:044732.700 invalid OID at position 0: ""
11714:20120218:044732.702 invalid OID at position 0: ""
11714:20120218:044732.703 invalid OID at position 0: ""
11710:20120218:044802.775 invalid OID at position 0: ""
11710:20120218:044802.776 invalid OID at position 0: ""
11710:20120218:044802.778 invalid OID at position 0: ""
11710:20120218:044802.781 invalid OID at position 0: ""
11711:20120218:044832.832 invalid OID at position 0: ""
11711:20120218:044832.833 invalid OID at position 0: ""
11711:20120218:044832.835 invalid OID at position 0: ""
11711:20120218:044832.836 invalid OID at position 0: ""
11711:20120218:044902.045 invalid OID at position 0: ""
11711:20120218:044902.046 invalid OID at position 0: ""
11711:20120218:044902.048 invalid OID at position 0: ""
11711:20120218:044902.049 invalid OID at position 0: ""

      • glibc detected *** /usr/local/zabbix-1.9.10/sbin/zabbix_server: malloc(): memory corruption (fast): 0x081a05d8 ***
        ======= Backtrace: =========
        /lib/libc.so.6(+0x6fa5a)[0xb7326a5a]
        /lib/libc.so.6(+0x72d17)[0xb7329d17]
        /lib/libc.so.6(__libc_malloc+0x5a)[0xb732be9a]
        /lib/libc.so.6(__strdup+0x30)[0xb7330220]
        /usr/local/zabbix-1.9.10/sbin/zabbix_server(zbx_strdup2+0x24)[0x8090ae4]
        /usr/local/zabbix-1.9.10/sbin/zabbix_server(substitute_simple_macros+0x73c)[0x80a47cc]
        /usr/local/zabbix-1.9.10/sbin/zabbix_server(substitute_key_macros+0x503)[0x80a3be3]
        /usr/local/zabbix-1.9.10/sbin/zabbix_server[0x80600e7]
        /usr/local/zabbix-1.9.10/sbin/zabbix_server(main_poller_loop+0x8c)[0x8061f2c]
        /usr/local/zabbix-1.9.10/sbin/zabbix_server(MAIN_ZABBIX_ENTRY+0x5ba)[0x805764a]
        /usr/local/zabbix-1.9.10/sbin/zabbix_server(daemon_start+0x248)[0x808d1d8]
        /usr/local/zabbix-1.9.10/sbin/zabbix_server(main+0x25f)[0x8056dbf]
        /lib/libc.so.6(__libc_start_main+0xe6)[0xb72cdec6]
        /usr/local/zabbix-1.9.10/sbin/zabbix_server[0x8052f61]
        ======= Memory map: ========
        08048000-08113000 r-xp 00000000 08:01 68434 /usr/local/zabbix-1.9.10/sbin/zabbix_server
        08113000-08116000 rw-p 000ca000 08:01 68434 /usr/local/zabbix-1.9.10/sbin/zabbix_server
        08116000-081bc000 rw-p 00000000 00:00 0 [heap]
        b4b00000-b4b21000 rw-p 00000000 00:00 0
        b4b21000-b4c00000 ---p 00000000 00:00 0
        b4ca6000-b4cc1000 r-xp 00000000 08:01 534121 /usr/lib/libgcc_s.so.1
        b4cc1000-b4cc2000 rw-p 0001a000 08:01 534121 /usr/lib/libgcc_s.so.1
        b4ce1000-b4e15000 rw-s 00000000 00:04 3506181 /SYSV73010b54 (deleted)
        b4e15000-b54e2000 rw-s 00000000 00:04 3473412 /SYSV67010b54 (deleted)
        b54e2000-b58e3000 rw-s 00000000 00:04 3440643 /SYSV74010b54 (deleted)
        b58e3000-b68e4000 rw-s 00000000 00:04 3407874 /SYSV78010b54 (deleted)
        b68e4000-b70ed000 rw-s 00000000 00:04 3375105 /SYSV68010b54 (deleted)
        b70ed000-b70f7000 r-xp 00000000 08:01 823977 /lib/libnss_files-2.14.1.so
        b70f7000-b70f8000 r--p 00009000 08:01 823977 /lib/libnss_files-2.14.1.so
        b70f8000-b70f9000 rw-p 0000a000 08:01 823977 /lib/libnss_files-2.14.1.so
        b70f9000-b7102000 r-xp 00000000 08:01 823916 /lib/libnss_nis-2.14.1.so
        b7102000-b7103000 r--p 00008000 08:01 823916 /lib/libnss_nis-2.14.1.so
        b7103000-b7104000 rw-p 00009000 08:01 823916 /lib/libnss_nis-2.14.1.so
        b7104000-b710b000 r-xp 00000000 08:01 823908 /lib/libnss_compat-2.14.1.so
        b710b000-b710c000 r--p 00006000 08:01 823908 /lib/libnss_compat-2.14.1.so
        b710c000-b710d000 rw-p 00007000 08:01 823908 /lib/libnss_compat-2.14.1.so
        b710d000-b710f000 rw-p 00000000 00:00 0
        b710f000-b7125000 r-xp 00000000 08:01 534503 /usr/lib/libsasl2.so.2.0.23
        b7125000-b7126000 rw-p 00015000 08:01 534503 /usr/lib/libsasl2.so.2.0.23
        b7126000-b7131000 r-xp 00000000 08:01 49342 /usr/lib/liblber-2.4.so.2.5.6
        b7131000-b7132000 rw-p 0000a000 08:01 49342 /usr/lib/liblber-2.4.so.2.5.6
        b7132000-b7147000 r-xp 00000000 08:01 823950 /lib/libpthread-2.14.1.so
        b7147000-b7148000 ---p 00015000 08:01 823950 /lib/libpthread-2.14.1.so
        b7148000-b7149000 r--p 00015000 08:01 823950 /lib/libpthread-2.14.1.so
        b7149000-b714a000 rw-p 00016000 08:01 823950 /lib/libpthread-2.14.1.so
        b714a000-b714c000 rw-p 00000000 00:00 0
        b714c000-b7151000 r-xp 00000000 08:01 534953 /usr/lib/libgdbm.so.3.0.0
        b7151000-b7152000 rw-p 00004000 08:01 534953 /usr/lib/libgdbm.so.3.0.0
        b7152000-b7153000 rw-p 00000000 00:00 0
        b7153000-b7192000 r-xp 00000000 08:01 823741 /lib/libncurses.so.5.9
        b7192000-b7195000 rw-p 0003f000 08:01 823741 /lib/libncurses.so.5.9
        b7195000-b719b000 r-xp 00000000 08:01 552118 /usr/local/lib/libOpenIPMIutils.so.0.0.1
        b719b000-b719c000 rw-p 00005000 08:01 552118 /usr/local/lib/libOpenIPMIutils.so.0.0.1
        b719c000-b719e000 r-xp 00000000 08:01 823976 /lib/libdl-2.14.1.so
        b719e000-b719f000 r--p 00001000 08:01 823976 /lib/libdl-2.14.1.so
        b719f000-b71a0000 rw-p 00002000 08:01 823976 /lib/libdl-2.14.1.so
        b71a0000-b71e4000 r-xp 00000000 08:01 823698 /lib/libssl.so.0.9.8
        b71e4000-b71e8000 rw-p 00044000 08:01 823698 /lib/libssl.so.0.9.8
        b71e8000-b7225000 r-xp 00000000 08:01 535666 /usr/lib/libldap-2.4.so.2.5.6
        b7225000-b7226000 rw-p 0003d000 08:01 535666 /usr/lib/libldap-2.4.so.2.5.6
        b7226000-b7227000 rw-p 00000000 00:00 0
        b7227000-b7257000 r-xp 00000000 08:01 535668 /usr/lib/libidn.so.11.6.5
        b7257000-b7258000 rw-p 0002f000 08:01 535668 /usr/lib/libidn.so.11.6.5
        b7258000-b726b000 r-xp 00000000 08:01 535670 /usr/lib/libz.so.1.2.5
        b726b000-b726c000 rw-p 00012000 08:01 535670 /usr/lib/libz.so.1.2.5
        b726c000-b7281000 r-xp 00000000 08:01 823881 /lib/libnsl-2.14.1.so
        b7281000-b7282000 r--p 00014000 08:01 823881 /lib/libnsl-2.14.1.so
        b7282000-b7283000 rw-p 00015000 08:01 823881 /lib/libnsl-2.14.1.so
        b7283000-b7285000 rw-p 00000000 00:00 0
        b7285000-b728e000 r-xp 00000000 08:01 823874 /lib/libcrypt-2.14.1.so
        b728e000-b728f000 r--p 00009000 08:01 823874 /lib/libcrypt-2.14.1.so
        b728f000-b7290000 rw-p 0000a000 08:01 823874 /lib/libcrypt-2.14.1.so
        b7290000-b72b7000 rw-p 00000000 00:00 0
        b72b7000-b7417000 r-xp 00000000 08:01 823973 /lib/libc-2.14.1.so
        b7417000-b7418000 ---p 00160000 08:01 823973 /lib/libc-2.14.1.so
        b7418000-b741a000 r--p 00160000 08:01 823973 /lib/libc-2.14.1.so
        b741a000-b741b000 rw-p 00162000 08:01 823973 /lib/libc-2.14.1.so
        b741b000-b741f000 rw-p 00000000 00:00 0
        b741f000-b7433000 r-xp 00000000 08:01 823957 /lib/libresolv-2.14.1.so
        b7433000-b7434000 r--p 00013000 08:01 823957 /lib/libresolv-2.14.1.so
        b7434000-b7435000 rw-p 00014000 08:01 823957 /lib/libresolv-2.14.1.so
        b7435000-b7437000 rw-p 00000000 00:00 0
        b7437000-b743e000 r-xp 00000000 08:01 823960 /lib/librt-2.14.1.so
        b743e000-b743f000 r--p 00006000 08:01 823960 /lib/librt-2.14.1.so
        b743f000-b7440000 rw-p 00007000 08:01 823960 /lib/librt-2.14.1.so
        b7440000-b7464000 r-xp 00000000 08:01 823879 /lib/libm-2.14.1.so
        b7464000-b7465000 r--p 00023000 08:01 823879 /lib/libm-2.14.1.so
        b7465000-b7466000 rw-p 00024000 08:01 823879 /lib/libm-2.14.1.so
        b7466000-b746a000 r-xp 00000000 08:01 552126 /usr/local/lib/libOpenIPMIposix.so.0.0.1
        b746a000-b746b000 rw-p 00003000 08:01 552126 /usr/local/lib/libOpenIPMIposix.so.0.0.1
        b746b000-b752a000 r-xp 00000000 08:01 552123 /usr/local/lib/libOpenIPMI.so.0.0.5
        b752a000-b7539000 rw-p 000be000 08:01 552123 /usr/local/lib/libOpenIPMI.so.0.0.5
        b7539000-b753b000 rw-p 00000000 00:00 0
        b753b000-b755f000 r-xp 00000000 08:01 796250 /usr/local/lib/libssh2.so.1.0.1
        b755f000-b7560000 rw-p 00023000 08:01 796250 /usr/local/lib/libssh2.so.1.0.1
        b7560000-b7561000 rw-p 00000000 00:00 0
        b7561000-b768e000 r-xp 00000000 08:01 823699 /lib/libcrypto.so.0.9.8
        b768e000-b76a4000 rw-p 0012d000 08:01 823699 /lib/libcrypto.so.0.9.8
        b76a4000-b76a7000 rw-p 00000000 00:00 0
        b76a7000-b7714000 r-xp 00000000 08:01 535773 /usr/lib/libnetsnmp.so.25.0.1
        b7714000-b7717000 rw-p 0006d000 08:01 535773 /usr/lib/libnetsnmp.so.25.0.1
        b7717000-b7736000 rw-p 00000000 00:00 0
        b7736000-b7785000 r-xp 00000000 08:01 535047 /usr/lib/libcurl.so.4.2.0
        b7785000-b7787000 rw-p 0004f000 08:01 535047 /usr/lib/libcurl.so.4.2.0
        b7787000-b77c9000 r-xp 00000000 08:01 76172 /usr/local/lib/mysql/libmysqlclient.so.16.0.0
        b77c9000-b77f3000 rw-p 00041000 08:01 76172 /usr/local/lib/mysql/libmysqlclient.so.16.0.0
        b77f3000-b77f4000 rw-p 00000000 00:00 0
        b780f000-b7810000 rw-p 00000000 00:00 0
        b7810000-b7812000 rw-s 00000000 00:04 3538950 /SYSV53010b54 (deleted)
        b7812000-b7814000 rw-p 00000000 00:00 0
        b7814000-b7832000 r-xp 00000000 08:01 823999 /lib/ld-2.14.1.so
        b7832000-b7833000 r--p 0001d000 08:01 823999 /lib/ld-2.14.1.so
        b7833000-b7834000 rw-p 0001e000 08:01 823999 /lib/ld-2.14.1.so
        bfeba000-bfef7000 rwxp 00000000 00:00 0 [stack]
        bfef7000-bfef8000 rw-p 00000000 00:00 0
        ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso]
        11692:20120218:044914.146 One child process died (PID:11711,exitcode/signal:6). Exiting ...
        11692:20120218:044916.150 syncing history data...
        11692:20120218:044916.171 syncing history data done
        11692:20120218:044916.172 syncing trends data...
        11692:20120218:044916.259 syncing trends data done
        11692:20120218:044916.259 Zabbix Server stopped. Zabbix 1.9.10 (revision ).


 Comments   
Comment by richlv [ 2012 Feb 18 ]

reproduced 3 times in a row so far, attaching another log with one crash at debuglevel 3, one at debuglevel 4

Comment by richlv [ 2012 Feb 19 ]

oops, sorry. proper objdump attached

Comment by Alexander Vladishev [ 2012 Feb 20 ]

Server has been broken after implementation ZBX-4591.

Comment by Alexander Vladishev [ 2012 Feb 20 ]

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

Comment by dimir [ 2012 Feb 21 ]

Successfully tested.

Comment by Alexander Vladishev [ 2012 Feb 21 ]

Fixed in the version pre-1.9.10, revision 25525.

Comment by Andrew Howell [ 2012 Feb 22 ]

I just updated to pre-1.9.10, revision 25525 and my server log is still spammed with 'invalid SNMP OID at position 0: " "'

Comment by richlv [ 2012 Feb 22 ]

that is a different problem probably - please, create a new issue





[ZBX-4673] icons get cut off in the configuration view and displayed in a different position in the monitoring view Created: 2012 Feb 17  Updated: 2017 May 30  Resolved: 2012 Mar 01

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: 2.0.0rc1

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

trunk rev 25445


Attachments: PNG File cut_icon.png     PNG File different_location_in_monitoring.png    
Issue Links:
Duplicate
duplicates ZBX-4295 icons may end outside of the map Closed

 Description   

create a 100px high map, add an element (for example, cloud (128)
drag it somewhere else - notice how top and bottom of the icon is cut off. this happens with other icons as well.

this does not happen if grid is switched off before dragging the icon.

additionally, icon is displayed in a different location in the monitoring view.



 Comments   
Comment by richlv [ 2012 Feb 17 ]

reproducible in opera 11.60, konqueror 4.6 and firefox 10.0

Comment by Oleksii Zagorskyi [ 2012 Feb 18 ]

Reproduced for versions 1.9.5-1.9.9 and latest trunk.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 28 ]

Will be fixed in ZBX-4295.

CLOSED.

Comment by Toms (Inactive) [ 2012 Mar 01 ]

Fixed in pre-1.9.10 r25680

Comment by Oleksii Zagorskyi [ 2012 Mar 01 ]

reopened to set fix version

Comment by Oleksii Zagorskyi [ 2012 Mar 01 ]

closed again





[ZBX-4662] Zabbix server crashed while linking a template with DebugLevel=4 Created: 2012 Feb 15  Updated: 2017 May 30  Resolved: 2012 Feb 15

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

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


 Description   

5711:20120215:205512.553 query [txnlev:1] [select nextid from ids where nodeid=0 and table_name='item_discovery' and field_name='itemdiscoveryid']
5711:20120215:205512.554 End of DBget_nextid():62 table:'item_discovery' recid:'itemdiscoveryid'
5711:20120215:205512.554 query [txnlev:1] [insert into item_discovery (itemdiscoveryid,itemid,parent_itemid) values (62,24120,24119);
]
5711:20120215:205512.555 Got signal [signal:11(SIGSEGV),reason:1,refaddr:0x1f1]. Crashing ...
5711:20120215:205512.555 ====== Fatal information: ======
5711:20120215:205512.556 Program counter: 0x7f9cc39aa35e
5711:20120215:205512.556 === Registers: ===
5711:20120215:205512.556 r8 = 3 = 3 = 3
5711:20120215:205512.556 r9 = 1f1 = 497 = 497
5711:20120215:205512.556 r10 = 0 = 0 = 0
5711:20120215:205512.556 r11 = ffffffeb = 4294967275 = 4294967275
5711:20120215:205512.556 r12 = 1f = 31 = 31
5711:20120215:205512.556 r13 = 7fffd9aad2c0 = 140736845238976 = 140736845238976
5711:20120215:205512.556 r14 = 46e432 = 4645938 = 4645938
5711:20120215:205512.556 r15 = ffffffffffffffa8 = 18446744073709551528 = -88
5711:20120215:205512.556 rdi = 1f1 = 497 = 497
5711:20120215:205512.556 rsi = 46e431 = 4645937 = 4645937
5711:20120215:205512.556 rbp = 7fffd9aad1a0 = 140736845238688 = 140736845238688
5711:20120215:205512.556 rbx = 10357d0 = 16996304 = 16996304
5711:20120215:205512.556 rdx = 20 = 32 = 32
5711:20120215:205512.556 rax = 0 = 0 = 0
5711:20120215:205512.556 rcx = ffffffffffffffff = 18446744073709551615 = -1
5711:20120215:205512.556 rsp = 7fffd9aacb10 = 140736845237008 = 140736845237008
5711:20120215:205512.556 rip = 7f9cc39aa35e = 140311273317214 = 140311273317214
5711:20120215:205512.556 efl = 10286 = 66182 = 66182
5711:20120215:205512.556 csgsfs = 33 = 51 = 51
5711:20120215:205512.556 err = 4 = 4 = 4
5711:20120215:205512.556 trapno = e = 14 = 14
5711:20120215:205512.556 oldmask = 0 = 0 = 0
5711:20120215:205512.556 cr2 = 1f1 = 497 = 497
5711:20120215:205512.556 === Backtrace: ===
5711:20120215:205512.557 17: sbin/zabbix_server(print_fatal_info+0xcf) [0x43fb49]
5711:20120215:205512.557 16: sbin/zabbix_server() [0x43f32c]
5711:20120215:205512.557 15: /lib/libc.so.6(+0x33af0) [0x7f9cc3994af0]
5711:20120215:205512.557 14: /lib/libc.so.6(_IO_vfprintf+0x3fbe) [0x7f9cc39aa35e]
5711:20120215:205512.557 13: /lib/libc.so.6(__vfprintf_chk+0x77) [0x7f9cc3a5ed97]

5711:20120215:205512.557 12: sbin/zabbix_server(__zbx_zabbix_log+0x42f) [0x42e90f]
5711:20120215:205512.557 11: sbin/zabbix_server(DBcopy_template_elements+0x1adb) [0x45fcbb]
5711:20120215:205512.557 10: sbin/zabbix_server(op_template_add+0x61) [0x40fa0a]
5711:20120215:205512.557 9: sbin/zabbix_server(process_actions+0x4a6) [0x40ee75]
5711:20120215:205512.557 8: sbin/zabbix_server(process_event+0x2d5) [0x410135]
5711:20120215:205512.557 7: sbin/zabbix_server() [0x467eb0]
5711:20120215:205512.557 6: sbin/zabbix_server(discovery_update_host+0xd2) [0x467f87]
5711:20120215:205512.557 5: sbin/zabbix_server(main_discoverer_loop+0x78d) [0x4134c1]
5711:20120215:205512.557 4: sbin/zabbix_server(MAIN_ZABBIX_ENTRY+0x7ff) [0x411705]
5711:20120215:205512.558 3: sbin/zabbix_server(daemon_start+0x348) [0x43f241]
5711:20120215:205512.558 2: sbin/zabbix_server(main+0x377) [0x411cfa]
5711:20120215:205512.558 1: /lib/libc.so.6(__libc_start_main+0xfd) [0x7f9cc397fc4d]
5711:20120215:205512.558 0: sbin/zabbix_server() [0x40d6e9]



 Comments   
Comment by Alexander Vladishev [ 2012 Feb 15 ]

Fixed in the version pre-1.9.10, revision 25412.





[ZBX-4656] zabbix[host,<type>,available] not available in item key selection list Created: 2012 Feb 15  Updated: 2017 May 30  Resolved: 2012 Feb 15

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

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

RHEL 6.2



 Description   

When creating a new item, I choose zabbix internal as the type and then click on the select button for the key.

zabbix[host, <type>, available] is not in the list of available zabbix internal checks.



 Comments   
Comment by Oleksii Zagorskyi [ 2012 Feb 15 ]

just for record: 'status' has been replaced to 'zabbix[host,...]' in the ZBXNEXT-406

Comment by Alexander Vladishev [ 2012 Feb 15 ]

Updated records in the "help_items" table in the upgrade patches.

Available in version pre-1.9.10, revision 25398.

Comment by Andrew Howell [ 2012 Feb 20 ]

Should there be a database patch available via the incremental database patch method? http://www.zabbix.org/wiki/How_to/trunk_db_patches

Comment by richlv [ 2012 Feb 20 ]

nope, existing keys are not converted (as that would make existing triggers invalid, and triggers could have all kinds of other logic in them - such a patch is not really possible).
also see http://www.zabbix.com/documentation/2.0/manual/installation/upgrade_notes

Comment by Andrew Howell [ 2012 Feb 20 ]

I don't mean existing items. I meant the 'help_items' table so the item is actually available to be selected. e.g. the bug report. I don't see the db patch you refer is available in 25398 in the incremental patches. http://www.zabbix.org/wiki/How_to/trunk_db_patches

Comment by richlv [ 2012 Feb 20 ]

ahh. yes, a patch for that will eventually be available (the diff also rearranged entries, so i postponed creating the patch - this doesn't impact running the trunk )

Comment by Andrew Howell [ 2012 Feb 20 ]

No problem I just wanted to make sure it wasn't forgotten about

Comment by richlv [ 2012 Feb 23 ]

incremental patches up to svn head should be available now - feedback would be appreciated

Comment by Andrew Howell [ 2012 Feb 27 ]

Applied the database patches (25398 to be precise) and it looks good now. Thanks





[ZBX-4655] creating custom low-level discovery rule using JSON format: wrong data in JSON object Created: 2012 Feb 15  Updated: 2017 May 30  Resolved: 2012 Feb 15

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

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

Attachments: PNG File Screen shot 2012-02-14 at 23.38.06 .png     PNG File Screen shot 2012-02-14 at 23.38.18 .png    

 Description   

I am trying to create my own low-level discovery rule using JSON format which is described on:
http://www.zabbix.com/documentation/2.0/manual/discovery/low_level_discovery#discovery_item_json_format

1. zabbix_agentd host (h157)

a) file /usr/local/home/a (exact from documentation content):

#!/usr/bin/perl

$first = 1;

print "{\n";
print "\t\"vfs.fs.discovery_perl\":[\n\n";

for (`cat /proc/mounts`)
{
($fsname, $fstype) = m/\S+ (\S+) (\S+)/;
$fsname =~ s!/!
/!g;

print "\t,\n" if not $first;
$first = 0;

print "\t{\n";
print "\t\t\"

{#FSNAME}\":\"$fsname\",\n";
print "\t\t\"{#FSTYPE}\":\"$fstype\"\n";
print "\t}\n";
}

print "\n\t]\n";
print "}\n";

b) zabbix_agentd.conf:

UserParameter=a,/usr/local/home/a


2. zabbix_server side:

a) testing item 'a':

# zabbix_get -s h157 -k a
{
"vfs.fs.discovery_perl":[

{
"{#FSNAME}

":"\/",
"

{#FSTYPE}":"rootfs"
}
,
{
"{#FSNAME}":"\/",
"{#FSTYPE}

":"ext4"
}
,
{
"

{#FSNAME}":"\/dev",
"{#FSTYPE}":"devtmpfs"
}
,
{
"{#FSNAME}

":"\/proc",
"

{#FSTYPE}":"proc"
}
,
{
"{#FSNAME}":"\/sys",
"{#FSTYPE}

":"sysfs"
}
,
{
"

{#FSNAME}":"\/run",
"{#FSTYPE}":"tmpfs"
}
,
{
"{#FSNAME}

":"\/dev\/pts",
"

{#FSTYPE}":"devpts"
}
,
{
"{#FSNAME}":"\/dev\/shm",
"{#FSTYPE}

":"tmpfs"
}
,
{
"

{#FSNAME}":"\/dist",
"{#FSTYPE}":"ext4"
}
,
{
"{#FSNAME}

":"\/dist\/dev",
"

{#FSTYPE}":"ext4"
}
,
{
"{#FSNAME}":"\/dist\/usr\/run",
"{#FSTYPE}

":"ext4"
}
,
{
"

{#FSNAME}":"\/matrix\/dev\/cgroup",
"{#FSTYPE}":"cgroup"
}
,
{
"{#FSNAME}

":"\/fs\/m-b10",
"

{#FSTYPE}":"ext4"
}
,
{
"{#FSNAME}":"\/fs\/data2",
"{#FSTYPE}

":"ext4"
}
,
{
"

{#FSNAME}

":"\/fs\/data",
"

{#FSTYPE}

":"ext4"
}

]
}

Data returned from item 'a' seems to be correct JSON format.

However in position with discovery rule 'a' there is an error:
"wrong data in JSON object"



 Comments   
Comment by Alexander Vladishev [ 2012 Feb 15 ]

The problem happens because of mismatch of an item key (a) and a key in returned value (vfs.fs.discovery_perl). They should coincide.

Comment by Alexander Vladishev [ 2012 Feb 15 ]

More clear error report is added in the version pre-1.9.10, revision 25411.

Comment by Simon Kowallik [ 2012 Mar 02 ]

Maybe related to: https://support.zabbix.com/browse/ZBX-4725





[ZBX-4650] zabbix_server: str.c:271: zbx_strcpy_alloc: Assertion `src' failed. Created: 2012 Feb 14  Updated: 2017 May 30  Resolved: 2012 Feb 16

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

Type: Incident report Priority: Critical
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: crash, database, oracle
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate

 Description   

server crashed after a query to the db failed :

19165:20120213:144806.379 [Z3006] fetch failed: [3114] ORA-03114: not connected to ORACLE
Process ID: 27519
Session ID: 1492 Serial number: 15

19165:20120213:144806.379 [Z3006] fetch failed: [3114] ORA-03114: not connected to ORACLE
Process ID: 27519
Session ID: 1492 Serial number: 15

zabbix_server: str.c:271: zbx_strcpy_alloc: Assertion `src' failed.
18498:20120213:144806.421 One child process died (PID:19165,exitcode/signal:6). Exiting ...



 Comments   
Comment by Alexander Vladishev [ 2012 Feb 16 ]

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

Such situation is possible in following cases:

  • the broken data in a database (functionid not found in 'functions' table). In GUI it looks so: ERROR > 5 in trigger expression field;
  • database error at calculating of trigger functions.
Comment by dimir [ 2012 Feb 20 ]

Reviewed. Case when unevaluated trigger expressions are processed handled properly.

Comment by Alexander Vladishev [ 2012 Feb 21 ]

Fixed in version pre-1.8.11 (revision 25494) and pre-1.9.10 (revision 25495).





[ZBX-4647] create trigger prototypes: "Cannot implode expression" Created: 2012 Feb 13  Updated: 2017 May 30  Resolved: 2012 Mar 05

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

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

Attachments: PNG File Screen shot 2012-02-13 at 16.39.54 .png     PNG File Screen shot 2012-02-13 at 16.41.44 .png    
Issue Links:
Duplicate
is duplicated by ZBX-4517 Items in discovery are not created on... Closed
is duplicated by ZBX-4731 Problem adding trigger prototype Closed

 Description   

Creating trigger prototypes cause:

ERROR: Cannot add trigger

Created: Trigger prototype "test" on "Template H".
Cannot implode expression "

{12128}

<10".

Item and trigger configuration in attachment.



 Comments   
Comment by Oleksii Zagorskyi [ 2012 Feb 14 ]

Confirmed for latest trunk revision 25374

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 20 ]

For the record, it only happens if the trigger prototype is created on a template linked to a host.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 21 ]

(1) It also turns out, that trigger prototypes also suffer from ZBX-4558 and new prototypes are not inherited. Fortunately, given we've recently solved similar issues for plain triggers, the fix should be easy.

<pavels> RESOLVED.

<Vedmak> CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 22 ]

(2) Even more problems with LLDs. Item prototypes are not inherited from templated discoveries.

<pavels> RESOLVED.

<Vedmak> CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 22 ]

(3) Graph prototypes are only inherited to the direct children, deeper inheritance does not work.

<pavels> I've encountered this bug a couple of times, but I can't reproduce it on purpose. Maybe it's some kind of side effect of me messing around with the database. Still, whoever is going to test this issue, please test that as well. RESOLVED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 22 ]

(4) This one is a bit tricky:
1. Created a template A with a discovery rule;
2. Link it to some host;
3. Create a new template B with a different discovery rule and link it to A;
4. At this point both rules should be properly inherited, but if you unlink A from the host, the rule from B remains on the host.

<pavels> RESOLVED.

Comment by Simon Kowallik [ 2012 Mar 04 ]

Sorry to bother you,
Is this fix already in http://www.zabbix.com/downloads/nightly/pre-zabbix-1.9.10.x-25776.tar.gz ?

Comment by richlv [ 2012 Mar 04 ]

the fix has not been finished yet, thus it is no merged to trunk. you can follow it... um, in the corresponding development branch - hopefully somebody will post a link to that branch tomorrow

Comment by Simon Kowallik [ 2012 Mar 04 ]

Thank you richlv!
I will check during this week!

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 05 ]

The development branch is available at svn://svn.zabbix.com/branches/dev/ZBX-4647/.

Comment by Alexey Fukalov [ 2012 Mar 05 ]

(5) [GUI]
When create trigger prototype, messages says that additional normal trigger is created.

Created: Trigger prototype "trigprot2" on "tpl disc".
Created: Trigger "trigprot2" on "tpl disc".

<pavels> RESOLVED.

<Vedmak> CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 06 ]

Merged to trunk r25820.

CLOSED.

Comment by richlv [ 2012 Jun 01 ]

it seems that this made api methods case sensitive. assuming that was intentional, it has not been documented anywhere.

(if it's not intentional, it should be returned back to case insensitive, of course)

reported as ZBX-5115





[ZBX-4641] Popup "Discovery checks" broken when configuring action conditions Created: 2012 Feb 10  Updated: 2017 May 30  Resolved: 2012 Mar 06

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

Type: Incident report Priority: Blocker
Reporter: Jens Berthold Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: actions, check, discovery, popups
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian 6.0.3
mysql Ver 14.14 Distrib 5.1.49, for debian-linux-gnu (x86_64)
PHP 5.3.3-7+squeeze3 with Suhosin-Patch (cli)


Attachments: PNG File Bildschirmfoto-Discovery checks - Mozilla Firefox.png    

 Description   

When trying to add "Discovery check" as a new condition to a discovery action, there is an error in the popup where I can should select a discovery check:
Undefined index: dchecks [popup.php:197]
Undefined index: dchecks [popup.php:198]
Critical error. Incorrect value "dcheckid" for "srcfld1" field.
Critical error. Incorrect value "name" for "srcfld2" field.



 Comments   
Comment by Oleksii Zagorskyi [ 2012 Feb 11 ]

Confirmed for trunk revision 25318

Comment by Alexander Vladishev [ 2012 Mar 06 ]

Fixed in versions pre-1.8.11 r25853 and pre-1.9.10 r25852.





[ZBX-4630] A problem with the "Trigger overview" screen item Created: 2012 Feb 08  Updated: 2017 May 30  Resolved: 2012 Feb 10

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

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

Attachments: PNG File trigger-overview.png    

 Description   

The "trigger overview" screen item is displayed incorrectly when the "Hosts location" option is set to "Top". Additionally multiple repeating notices are triggered:

Illegal offset type in isset or empty [include/triggers.inc.php:1540]
Illegal offset type in isset or empty [include/triggers.inc.php:1655]
Illegal offset type in isset or empty [include/triggers.inc.php:1540]
Illegal offset type in isset or empty [include/triggers.inc.php:1655]
...

Originally reported by Richlv.



 Comments   
Comment by Oleksii Zagorskyi [ 2012 Feb 09 ]

I confirm this bug with latest rev 25260.

Comment by Eduards Samersovs (Inactive) [ 2012 Feb 10 ]

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

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 14 ]

I've fixed a minor code style issue in r25373. Everything else is ok.

TESTED.

Comment by Eduards Samersovs (Inactive) [ 2012 Feb 14 ]

trunk r.25374 version pre-1.9.10





[ZBX-4628] Can't use Zabbix Proxy 1.9.10 (invalid number of fields) Created: 2012 Feb 07  Updated: 2017 May 30  Resolved: 2012 Feb 13

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

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

CentOS 6.2 x86_64 and also reproduced on FreeBSD 8.1 amd64



 Description   

When trying to use Zabbix Proxy 1.9.9/1.9.10 I receive the error described below (the proxy starts but Server is unable to receive data) :

25663:20120207:183323.768 invalid number of fields "[25916,7,"","",10064,"vm.memory.size[free]",30,0,3,"","",0,"","","0","","","","",0,0,"","","","",0,"",,""]"

I can confirm the problem happens on MySQL and SQLite3.

Thanks for the awsome software.

Marcus



 Comments   
Comment by Marcus Oliveira [ 2012 Feb 07 ]

The problem also happens on 1.9.8.

Marcus

Comment by richlv [ 2012 Feb 07 ]

are you using the exact same version of server and proxy ?
is the proxy database new, created for that exact same version that is running ?
is the server upgraded version, or a new installation of that specific version ?

Comment by Marcus Oliveira [ 2012 Feb 07 ]

> are you using the exact same version of server and proxy ?

Tried almost everything... including compiling the binaries for both Server and Proxy with the same tar file.

> is the proxy database new, created for that exact same version that is running ?

Brand new. Yes.

is the server upgraded version, or a new installation of that specific version ?

Server is an upgraded database from 1.8.10. Proxy is a new database as said previously.

Thanks for the fast answer...

Marcus

Comment by Marcus Oliveira [ 2012 Feb 08 ]

Just to be clear enough : The error is generated in Zabbix Proxy's log.

Thanks for the awesome software.

Marcus

Comment by Marcus Oliveira [ 2012 Feb 09 ]

Could you tell me the table where this line would be inserting ? I'll try to identify the problem.

OBS : This should be informed in the debug message.

Marcus

Comment by Alexander Vladishev [ 2012 Feb 13 ]

Could you execute SQL statement on server side and attach its output:

select * from items where itemid = 25916

What database you use on server side?

The problem happens in the absence of one of values. But I can't reproduce it.
This line should be such:
[25916,7,"","",10064,"vm.memory.size[free]",30,0,3,"","",0,"","","0","","","","",0,0,"","","","",0,"",null,""]

Comment by Alexander Vladishev [ 2012 Feb 13 ]

A problem is localized! It will be fixed as soon as possible.

Comment by Alexander Vladishev [ 2012 Feb 13 ]

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

Comment by dimir [ 2012 Feb 13 ]

Tested. The null-value check was added.

Comment by Marcus Oliveira [ 2012 Feb 13 ]

Thanks a lot.

When will it be implemented in the nightly builds so I can test it?

Marcus

Comment by Alexander Vladishev [ 2012 Feb 13 ]

Fixed in version pre-1.9.10, revision 25365.

Changes will be included into the night build also. Please confirm, if the problem doesn't repeat.

Comment by Marcus Oliveira [ 2012 Feb 14 ]

Thanks,

Compiled and updated Server and Proxy. Now we have a new error :

56829:20120213:225945.279 failed to update local proxy cofiguration copy: column "hosts.ipmi_username" cannot be null

Marcus

Comment by Alexander Vladishev [ 2012 Feb 14 ]

What database you use on server side?

Comment by Marcus Oliveira [ 2012 Feb 14 ]

Oracle.

Marcus

Comment by Alexander Vladishev [ 2012 Feb 14 ]

Fixed collecting of configuration data by Zabbix server with ORACLE DB in version pre-1.9.10, revision 25380.

Comment by Alexander Vladishev [ 2012 Feb 14 ]

Please retest it on your environment.

Comment by Marcus Oliveira [ 2012 Feb 14 ]

Sure.

I'll do it as soon the nightly build is available.

But, just to make sure. This error is seen in the Proxy side log. Was it a problem in the Server side ? I'd like to understand how it works so I can be more effective in helping to find the problems.

Marcus

Comment by Marcus Oliveira [ 2012 Feb 15 ]

It worked, thanks a lot.

Marcus





[ZBX-4624] system.cpu.switches not supported in zabbix agent pre2.0 Created: 2012 Feb 07  Updated: 2017 May 30  Resolved: 2012 Feb 15

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 2.0.0rc1
Fix Version/s: 2.0.0rc1

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

Debian 6.0.3


Issue Links:
Duplicate

 Description   

broken in rev 19752 in ZBXNEXT-677

  1. ./zabbix_agentd --test system.cpu.switches
    system.cpu.switches [u|955691993]
  2. ./zabbix_agentd -V
    Zabbix Agent (daemon) v1.8.11rc1 (revision 25166) (28 December 2011)
    Compilation time: Feb 2 2012 14:34:06
  1. zabbix_agentd --test system.cpu.switches
    system.cpu.switches [m|ZBX_NOTSUPPORTED]
  2. zabbix_agentd -V
    Zabbix Agent (daemon) v1.9.10 (revision 25173) (01 February 2012)
    Compilation time: Feb 2 2012 13:33:11


 Comments   
Comment by Alexander Vladishev [ 2012 Feb 15 ]

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

Comment by Andris Mednis [ 2012 Feb 17 ]

Reviewed and tested.

Comment by Alexander Vladishev [ 2012 Feb 17 ]

Fixed in version pre-1.9.10, revision 25437.





[ZBX-4623] Create host group button should be hidden for non super admin users. Created: 2012 Feb 07  Updated: 2017 May 30  Resolved: 2012 Feb 14

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

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


 Description   

Only super admins can create host groups, so "Create group" button should be hidden for others.



 Comments   
Comment by Alexander Vladishev [ 2012 Feb 14 ]

Also "New host group" field should be hidden in "Host" and "Hosts mass update" forms for non superadmins

Comment by Toms (Inactive) [ 2012 Feb 14 ]

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

Comment by Toms (Inactive) [ 2012 Mar 06 ]

Resolved in r.25423





[ZBX-4612] convertion zabbix database to DM setup returns exit code 255 but should return 0 Created: 2012 Feb 06  Updated: 2017 May 30  Resolved: 2012 Mar 11

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

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

Attachments: Text File mysql-dbconversion-success.log     Text File mysql-dbconversion-with-error.log    
Issue Links:
Duplicate

 Description   

I try to automate the zabbix server installation with puppet (www.puppetlabs.com), this works mostly well, only the conversion result has one problem.
The conversion works as expected, but the command finishes with return code (exit status) 255.
This is the problem because puppet assumes 0 as return code for successful commands.

Normally on Unix the return code is 0 on success , only on failure > 0 ,

Example:

  1. zabbix_server -n 1 -c /etc/zabbix/zabbix_server.conf ; echo $?
    Converting tables ........................................................................................ done.
    Conversion completed.
    255

Moreover, here I try to again convert already converted database:

  1. zabbix_server -n 1 -c /etc/zabbix/zabbix_server.conf ; echo $?
    Converting tables ................zabbix_server [3641]: Warning: slow query: 2.272360 sec, "update history set itemid=itemid+100100000000000 where itemid>0"
    ........................................................................zabbix_server [3641]: Error: [Z3005] query failed: [1062] Duplicate entry '1' for key 'PRIMARY' [insert into nodes (nodeid,name,ip,nodetype) values (1,'Local node','127.0.0.1',1)]
    zabbix_server [3641]: Warning: slow query: 4.901873 sec, "rollback;"
    done.
    Conversion completed.
    255

As you see even if I have an failed query I receive the same exit code and it's not very good. I think in this case it should be > 0.
Final message "Conversion completed" could be customized if I have any failed query.



 Comments   
Comment by Alexander Vladishev [ 2012 Feb 08 ]

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

Comment by richlv [ 2012 Feb 08 ]

also see ZBX-2196

Comment by Oleksii Zagorskyi [ 2012 Feb 09 ]

(1) dev branch tested.
Now conversion process always returns exitcode 0.
Even when I convert already converted database and I have SQL query failed (described in the issue description) I still have exitcode 0.
Final message not customized too.

Is it ok? We are not going to handle any errors in the conversion process?

<Sasha> RESOLVED added handling of database errors

<zalex> Awesome!
Description how it works already:
When conversion success: process exits with exitcode 0
Last message printed to STDOUT: "Conversion completed successfully."

When conversion finished with SQL errors: process exits with exitcode 1
Last message printed to STDOUT: "Conversion failed."

In both cases all warnings and errors printed to STDERR during conversion.

When conversion failed we see these two lines printed to STDOUT and STDERR respectively:
Conversion failed.
zabbix_server [3532]: Warning: slow query: 3.702927 sec, "rollback;"

So new question: maybe STDERR should be printed out first and then print STDOUT ?
I mean would be better if "Conversion failed." will be last visible line.

<Sasha> RESLOVED in 1.8

<dimir> CLOSED based on comment below

Comment by dimir [ 2012 Feb 09 ]

Successfully tested.

Comment by Alexander Vladishev [ 2012 Feb 09 ]

Fixed in version pre-1.8.11 (revision 25296) and pre-1.9.10 (revision 25298),

Comment by Oleksii Zagorskyi [ 2012 Feb 13 ]

Final description how it works:
When conversion success: process exits with exitcode 0
Last message printed to STDOUT: "Conversion completed successfully."

When conversion finished with SQL errors: process exits with exitcode 1
Last message printed to STDOUT: "Conversion failed."

In both cases all warnings (for instance when LogSlowQueries enabled in zabbix_server.conf) and SQL-errors printed to STDERR during conversion.

Debugging information:
When conversion failed, "rollback" query is performed, but it doesn't guarantee that DB will be returned to previous state.
For instance if I convert already converted database (already nodeid=1) again then I receive an error:
Error: [Z3005] query failed: [1062] Duplicate entry '1' for key 'PRIMARY' [insert into nodes (nodeid,name,ip,nodetype) values (1,'Local node','127.0.0.1',1)]
But disregarding on that all queries performed in transaction and last query is "rollback", all IDs in database actually increased from nodeid=1 to nodeid=2. At the end foreign keys will be not recreated.

I don't know why that happens, maybe this note will help once someone.
Sql.log(s) with success and error conversion attached just for case.

Issue CLOSED.

Comment by dimir [ 2012 Feb 28 ]

Reopening to close subissue.





[ZBX-4607] On DM setup, scripts (ping, traceroute, etc.) shows up duplicate times (one for each node) in pop on Dashboard and Maps Created: 2012 Feb 04  Updated: 2017 May 30  Resolved: 2012 Mar 11

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

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

CentOS 6.2
MySQL 5.5.19
Firefox 10.0


Attachments: JPEG File screenshot-1.jpg    
Issue Links:
Duplicate
is duplicated by ZBX-4651 Cannot create a host on a child node Closed
is duplicated by ZBX-4652 Unable to create a host group on a ne... Closed
is duplicated by ZBX-4653 In DM setup new scripts are created w... Closed

 Description   

On DM setup, scripts (ping, traceroute, etc.) shows up duplicate times (one for each node) in pop on Dashboard and Maps.

Setup:
Each node has ping and traceroute setup under scripts.

For Example:

Dashboard
1. Go to the dashboard with current node set to "All" so all nodes show up on the list.
2. On "last 20 issues", click on the hostname of a host being reported.
3. Ping and traceroute will show for each node instance. In our case we have 5 nodes so ping and traceroute show up 5 times each.

Dashboard
1. Go to the monitor->maps with current node set to "All" so all nodes show up on the list.
2. On host map icon, click on the icon.
3. Ping and traceroute will show for each node instance. In our case we have 5 nodes so ping and traceroute show up 5 times each.



 Comments   
Comment by Oleksii Zagorskyi [ 2012 Feb 05 ]

Connected issue ZBXNEXT-1077

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 14 ]

Well, before we can fix this issue, we must fix ZBX-4651, ZBX-4652 and ZBX-4653.

<pavels> It turns out, that all of these issues are caused by the same problem, and the fix is really easy, so I'll fix it here.

<pavels> RESOLVED.
<Eduard> CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 20 ]

Fixed the main issue, plus a couple of related problems.

RESOLVED.
<Eduard> CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 20 ]

(1) Note: the "selectHosts" option for Script.get works a bit different, then in other API's. If the script has a host group defined, it will return the hosts from that host group, otherwise - all hosts on which the script is available. Same for "selectGroups" and "hostids". I think that should be documented.\

<pavels> RESOLVED.

Comment by Eduards Samersovs (Inactive) [ 2012 Feb 29 ]

Code is tested, but seems we need to update DOC's

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 01 ]

Merged to trunk r25719. Please review the changed to the docs.

Comment by Alexey Fukalov [ 2012 Mar 01 ]

Docs reviewed.





[ZBX-4604] Cannot add screen on screen Created: 2012 Feb 04  Updated: 2017 May 30  Resolved: 2012 Mar 02

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

Type: Incident report Priority: Major
Reporter: Atsushi Tanaka Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: screens
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS 6.2, Firefox 10.0, IE 8.0, Safari 5.1.2


Issue Links:
Duplicate
duplicates ZBXNEXT-904 Redesign Configuration->Screens Closed

 Description   

I tried add screen on other screen, but error occured.
That error message is below.

ver 1.8.10


Cannot add item
Incorrect resource provided for screen item


ver 1.9.9


Details
ERROR: Cannot add item

Error in query [SELECT t.screenitemid,si.screenid FROM screens_items t WHERE (si.screenid IN ('3')) ] [Unknown column 'si.screenid' in 'field list']
mysql_fetch_assoc() expects parameter 1 to be resource, boolean given [include/db.inc.php:560]
mysql_free_result() expects parameter 1 to be resource, boolean given [include/db.inc.php:561]
Incorrect screen ID "3" provided for screen element.

Undefined index: templateid [include/screens.inc.php:947]


Operation Steps:
1. Create new screen
2. Add graph to that new screen
3. Create other new screen
4. Add first screen to second new screen



 Comments   
Comment by Oleksii Zagorskyi [ 2012 Feb 05 ]

I can confirm it for both versions: 1.8.10 and 1.9.9

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 15 ]

RESOLVED for 1.8 in /branches/dev/ZBX-4604.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 21 ]

Merged to 1.8 r25511 and trunk r25512.

CLOSED.

Comment by Alexei Vladishev [ 2012 Feb 22 ]

Have a look at ZBX-4686. It has to be fixed.

Comment by Eduards Samersovs (Inactive) [ 2012 Feb 24 ]

Resolved in ZBXNEXT-904 (for trunk)

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 27 ]

The fix for 1.8 is available in /branches/dev/ZBX-4604. I've also fixed the bug, that the "change" link was not displayed for clocks.

RESOLVED.

Comment by Alexey Fukalov [ 2012 Mar 01 ]

(1) [GUI]
In screens.inc.php you changed line 1375. It made graphs on subscreens clickable in monitoring section, but when you click on graph that is on subscreen it is not shown.

<Vedmak> CLOSED seems caused by my broken configuration.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 02 ]

Merged to 1.8 r25746. The trunk will be fixed in ZBXNEXT-904.

CLOSED.





[ZBX-4600] Incorrect function MassUpdate to trigger configuration mode. Created: 2012 Jan 30  Updated: 2017 May 30  Resolved: 2012 Apr 10

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A), Frontend (F)
Affects Version/s: 1.8.8, 1.8.9, 1.8.10
Fix Version/s: 1.8.11, 2.0.0rc1

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

PHP 5.3.8 (5.3.6)


Attachments: File Scr1.Dependency.JPG     File Scr2.TriggerSelect.JPG     File Scr3.SetNewSeverity.JPG     File Scr4.ResetDependency.JPG    

 Description   

google translate :
--------------------------------------------------------
The problem is that when a mass update trigger level (severity), whether on the level or pattern of the host in the presence of established relationships (dependency) to these triggers, resets these dependencies.

example:
1. Choose any triggers, for which we want to change the level (severity): Fig. "Scr1.Dependency.JPG"
We note that the selected triggers are set depending on!
2. Go into configuration mode triggers (Fig. "Scr2.TriggerSelect.JPG")
and select a new level (Fig. "Scr3.SetNewSeverity.JPG")
At the same time to change depending on triggers is not planned. Do not put the check for the item "Trigger dependencies".
3. After changing the trigger level, we obtain that the current dependence of triggers that were set for this moment, no!

--------------------------------------------------------
original :
--------------------------------------------------------
???????? ??????????? ? ???, ??? ??? ???????? ?????????? ?????? ????????? (severity), ?? ?????, ?? ?????? ??????? ??? ?????, ??? ??????? ????????????? ???????????? (dependency) ??? ???? ?????????, ?????????? ????? ???? ????????????.

??????:
1. ???????? ????? ????????, ??? ??????? ????? ???????? ??????? (severity): ???. "Scr1.Dependency.JPG"
????????, ??? ????????? ???????? ????? ????????????? ???????????!
2. ??????? ? ????? ???????????????? ????????? (???. "Scr2.TriggerSelect.JPG")
? ???????? ????? ??????? (???. "Scr3.SetNewSeverity.JPG")
??? ???? ?????? ??????????? ??? ????????? ?? ???????????. ?? ?????? ????? ??? ?????? "Trigger dependencies".
3. ????? ????????? ?????? ????????? ???????? ??? ??????? ??????????? ?????????, ??????? ???? ??????????? ??? ????? ???????, ???????????!



 Comments   
Comment by Oleksii Zagorskyi [ 2012 Feb 01 ]

I can confirm this issue for pre1.8.11
But it is not reproducible for trunk rev 25095 (pre1.9.9), i.e. dependency is saved !

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 08 ]

The fix for 1.8 is available in /branches/dev/ZBX-4600.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 08 ]

(1) There's a related problem in the trunk: if we check the dependencies checkbox and leave the dependency list empty, the dependencies should be cleared, but they are left unmodified. I'll fix it as soon as we close ZBX-4598.

<pavels> RESOLVED.

<Eduards> CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 21 ]

Fixed for trunk in /branches/dev/ZBX-4600-trunk.

RESOLVED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 21 ]

Merged to 1.8 r25516.

Comment by Eduards Samersovs (Inactive) [ 2012 Feb 29 ]

Tested

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 01 ]

Merged to trunk r25714.

CLOSED.

Comment by richlv [ 2012 Apr 10 ]

reopening to specify a subissue as closed





[ZBX-4599] Warning on the Monitoring - Events page for guests Created: 2012 Jan 30  Updated: 2017 May 30  Resolved: 2012 Feb 08

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

Type: Incident report Priority: Major
Reporter: Pavels Jelisejevs (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: events
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File events-error.png    

 Description   

The error only appears when loggin in as a guest.



 Comments   
Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 09 ]

Merged to trunk r25308.

CLOSED.





[ZBX-4598] Cannot add host from frontend Created: 2012 Jan 30  Updated: 2017 May 30  Resolved: 2012 Feb 02

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

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:

rev 25069.


Issue Links:
Duplicate
is duplicated by ZBX-4654 Can't add any template to host, Error... Closed

 Description   

I'm trying add host and receive this errors:
Undefined variable: rows [include/triggers.inc.php:301]
Undefined variable: rows [include/triggers.inc.php:301]
Undefined variable: rows [include/triggers.inc.php:301]
Undefined variable: rows [include/triggers.inc.php:301]
Undefined variable: rows [include/triggers.inc.php:301]
Undefined variable: rows [include/triggers.inc.php:301]
Undefined variable: rows [include/triggers.inc.php:301]
Undefined variable: rows [include/triggers.inc.php:301]
mysql_real_escape_string() expects parameter 1 to be string, array given [include/db.inc.php:616]
mysql_real_escape_string() expects parameter 1 to be string, array given [include/db.inc.php:616]
Error in query [INSERT INTO auditlog_details (auditdetailid,auditid,table_name,field_name,oldvalue,newvalue) VALUES (5885,43941,'','hosts',Array,Array)] [Unknown column 'Array' in 'field list']



 Comments   
Comment by richlv [ 2012 Jan 31 ]

most likely the same as ZBX-4596

Comment by Oleksii Zagorskyi [ 2012 Jan 31 ]

I cannot reproduce it anyhow in r25095
Alexey, please describe details how you add the host.

Comment by Alexey Pustovalov [ 2012 Jan 31 ]

try to clone host with templates

Comment by Alexey Pustovalov [ 2012 Jan 31 ]

error is started receive after svn log -r25039
------------------------------------------------------------------------
r25039 | pavels | 2012-01-26 21:02:35 +0600 (Чтв, 26 Янв 2012) | 4 lines

..F....... ZBX-4558 added audit logging when udpating and creating triggers
A.F....... ZBX-4558 fixed deleting child template triggers when moving a trigger to a template
A......... ZBX-4558 fixed child template trigger attributes being reset when updating a template trigger
..F....... ZBX-4558 fixed trigger form "type" field value being inverted
------------------------------------------------------------------------

Comment by Alexey Pustovalov [ 2012 Jan 31 ]

it is trouble saving in rev 25100.
Bug appears when trying add new host and with cloning hosts. New hosts must containing triggers.

Comment by Oleksii Zagorskyi [ 2012 Jan 31 ]

The problem appears when I'm trying to link a template which has at least one trigger:

mysql_real_escape_string() expects parameter 1 to be string, array given [include/db.inc.php:616]
mysql_real_escape_string() expects parameter 1 to be string, array given [include/db.inc.php:616]
Error in query [INSERT INTO auditlog_details (auditdetailid,auditid,table_name,field_name,oldvalue,newvalue) VALUES (4085,210998,'','hosts',Array,Array)] [Unknown column 'Array' in 'field list']

And I cannot reproduce anyhow mentioned error: "Undefined variable: rows [include/triggers.inc.php:301]

Actually no problems with just host creation.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 01 ]

(1) Another problem caused by ZBX-4558: when cloning a host with templated triggers, these triggers are deleted from the original host.

<pavels> RESOLVED.
<Sasha> CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 02 ]

RESOLVED.

Comment by Oleksii Zagorskyi [ 2012 Feb 02 ]

(2) I'm using this dev branch for usual work (because it works better than current trunk ) and I've observed one problem:
Open items list for some host, move mouse over "Triggers (1)" value in the Triggers column -> a tool-tip with the triggers details doesn't appear. On the mouse click doesn't appear too.
REOPENED.

<zalex> meh, the problem reproducible even on the rev 25142 (a base of copy this dev branch). This problem already fixed today in the trunk rev 25162.
Status changed to RESOLVED again.
CLOSED.

Comment by Alexander Vladishev [ 2012 Feb 08 ]

Successfully tested!

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 08 ]

Merged to trunk r25260.

CLOSED.

Comment by Alexey Serba [ 2012 Mar 13 ]

Is there any workaround/patch to make "link template" working on 1.9.9 release?

Comment by Oleksii Zagorskyi [ 2012 Mar 13 ]

You may consider this page: http://www.zabbix.org/wiki/How_to/trunk_db_patches





[ZBX-4597] IE8 JS warnings. Message: Expected ')' Created: 2012 Jan 29  Updated: 2017 May 30  Resolved: 2012 Feb 27

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

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
Environment:

IE8 (with all updates)
latest trunk r25045 pre1.9.9



 Description   

Seems all is working, it's just a visible JS warning in IE state panel.

Visible for me only on pages: Monitoring -> [Dashboard, Overview, Discovery]



 Comments   
Comment by Toms (Inactive) [ 2012 Feb 27 ]

Hint popup didn't work also

Comment by Toms (Inactive) [ 2012 Feb 27 ]

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

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 01 ]

Seems that this has already been fixed in the latest trunk, somewhere before r25623, so this issue can be closed. Toms, please delete the dev branch and close the issue.

Comment by Oleksii Zagorskyi [ 2012 Mar 01 ]

I confirm that in the latest trunk rev 25719 this problem disappeared.
BUT, if I move mouse over some issue in the "Last 20 issues" widget, a JS warning in IE state panel appears:
Object doesn't support this property or method
and a popup cannot be fixed "on top" by mouse click

<Toms> This has been fixed with ZBX-4187

<zalex> yes, in the rev 25749 NO that JS warning in IE.
and probably missing ability fix the popup "on top" by mouse click it's ok (the same in latest 1.8 revisions). Feel free to close this comment if it's ok and the issue as well (as Fixed).

Comment by Oleksii Zagorskyi [ 2012 Mar 06 ]

take a note - previous comment should be closed





[ZBX-4596] Error in Details when deleting trigger prototype. Undefined variable: rows [include/triggers.inc.php:301] Created: 2012 Jan 27  Updated: 2017 May 30  Resolved: 2012 Feb 07

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

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

Issue Links:
Duplicate
duplicates ZBXNEXT-903 Redesign Configuration->Items Closed

 Description   

Reproduced on latest rev 25055
Broken revision is 24440 in ZBXNEXT-905

Details Trigger deleted
Deleted: Trigger prototype "BIG traffic Port IN ?

{#SNMPINDEX}

{#SNMPVALUE}

" on "DES-3100-Gigabit".
Undefined variable: rows [include/triggers.inc.php:301]

The trigger actually deleted.



 Comments   
Comment by Eduards Samersovs (Inactive) [ 2012 Jan 28 ]

Resolved in ZBXNEXT-903

Comment by Alexei Vladishev [ 2012 Jan 30 ]

Reopening, should be closed only after proper testing.

Comment by richlv [ 2012 Jan 31 ]

ZBX-4598 is probably the same

<pavels> No, these are different errors.

Comment by Alexey Fukalov [ 2012 Feb 07 ]

Cannot reproduce that in current trunk. Is trigger prototype somehow special?

<zalex> Cannot reproduce it too in the trunk rev 25199. Seems has been fixed in some dev branch.
CLOSED

Comment by Oleksii Zagorskyi [ 2012 Feb 07 ]

Closed as fixed for version 1.9.10





[ZBX-4593] can't add screen element "triggers info", showing all groups Created: 2012 Jan 27  Updated: 2017 May 30  Resolved: 2012 Feb 09

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 1.8.10
Fix Version/s: 1.8.11, 2.0.0rc1

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


 Description   

try to add screen element "Triggers info" without choosing a group - that fails with "[ CScreenItem::update ] No resource provided for screen item"

this was possible before, is a totally valid configuration and previously saved screen elements work as expected

this was broken in r23675 as part of ZBX-3104



 Comments   
Comment by richlv [ 2012 Jan 27 ]

interesting - group selection actually has "all groups" option, which probably should be the default as well - but choosing that results in a different error message :

No host group ID provided for screen element. [CScreenItem.create -> CScreenItem.checkInput]

<pavels> Same thing, only the error message in the trunk differs from 1.8.

Comment by richlv [ 2012 Jan 27 ]

actually, there might be a problem with displaying as well - at least in trunk i get :

Illegal offset type in isset or empty [include/triggers.inc.php:1540]
Illegal offset type in isset or empty [include/triggers.inc.php:1655]

<pavels> Can't reproduce it, could you give some more details? May be a screenshot?

<richlv> for the record, this happened when an element with 'all groups' or no groups selected was already added to a screen (thus the original bug must be fixed to see this one)

<pavels> Wait, the original issue only affects the "Trigger info" screen items, while the one you describe affects the "Trigger overview" items. They're not connected. Or am I missing something?

<richlv> oh, that is possible - i had a screen with multiple elements and assumed errors come from triggers info. should a new issue be opened or can both problems be solved in here ?

<pavels> It's a trunk-only problem, so I've opened a new issue for it ZBX-4630.

<richlv> thanks, CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 06 ]

Fix for 1.8 is available in /branches/dev/ZBX-4593.

Comment by Alexey Fukalov [ 2012 Feb 09 ]

(1) [GUI]
Seems triggers info group is missing validation now.

<pavels> Right, fixed. RESOLVED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 13 ]

Merged to 1.8 r25360 and trunk r25361.

CLOSED.





[ZBX-4591] Low Level Detection fails when using dynamic indexes where the ifDescr has a double quote. Created: 2012 Jan 26  Updated: 2017 May 30  Resolved: 2012 Feb 12

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

Type: Incident report Priority: Critical
Reporter: Matthew Schumacher Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: discovery, lld
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Slackware linux



 Description   

While using low level discovery I used
ifInOctets["index","ifDescr","

{#SNMPVALUE}"]
for the OID and
ifInOctets["{#SNMPVALUE}

"]
for both the key and name.

This generates an item like this:

ifInOctets["index", "ifDescr", "1/2/7, 10/100/Gig Ethernet SFP, "to 7705-1.lnbg GE1/1/7 PathC via CRMT""]

However it's not a valid item because the " isn't escaped so zabbix marks the item as Not_supported. It should generate:

ifInOctets["1/2/7, 10/100/Gig Ethernet SFP, \"to 7705-1.lnbg GE1/1/7 PathC via CRMT\""]

I marked this as major because it totally breaks the ability to use lld on many of our routers.

Let me know if you need more information.



 Comments   
Comment by Alexander Vladishev [ 2012 Feb 07 ]

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

Comment by Matthew Schumacher [ 2012 Feb 08 ]

I would be happy to test, however, I don't see the changes in trunk. I downloaded version 25240 and can't find anything relevant in the changelog nor does the issue seem to be solved.

Comment by Oleksii Zagorskyi [ 2012 Feb 08 ]

Matthew, you have to wait status Closed and then you can take it from trunk branch.
At the moment you can take it from development branch. See Alexander's comments above.

Comment by dimir [ 2012 Feb 09 ]

Successfully tested. Please check small changes in r25276.

Thanks! CLOSED

Comment by Alexander Vladishev [ 2012 Feb 09 ]

Fixed in version pre-1.9.10, revision 25286.

Comment by Oleksii Zagorskyi [ 2012 Feb 11 ]

Critical bug observed because of this commit:
An item prototype creates a real SNMP item with OID "IF-MIB::ifOutOctets.

{#SNMPINDEX}" instead of OID "IF-MIB::ifOutOctets.2"
I mean the macro {#SNMPINDEX}

doesn't substitute to the real numbers.
Broken in revision 25286.
REOPENED

Sasha, and I see typo in previous comment, actually merged revision is 25286

<Sasha> Many thanks! RESOLVED

<zalex> heh, it was a just luck to hit in this bug so fast . Dev branch tested, works as expected, the bug gone. TESTED.

Comment by Alexander Vladishev [ 2012 Feb 12 ]

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

Comment by dimir [ 2012 Feb 13 ]

Tested, works for snmp discovery now. Please review my small changes in r25348.

<Sasha> I like it! REVIEWED

Comment by Alexander Vladishev [ 2012 Feb 13 ]

Processing of macros in SNMP OID has been fixed in r25351 (pre-1.9.10).





[ZBX-4581] aggregate items' functions doesn't work with unit symbols (avg, sum, maybe more) Created: 2012 Jan 25  Updated: 2017 May 30  Resolved: 2012 Mar 09

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

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

RHEL 5.6 with Oracle



 Description   

this works (function last): grpavg[<group>,<item>,last,5m]

other functions (tested sum, avg) doesn't work:
grpavg[<group>,<item>,avg,5m]
grpavg[<group>,<item>,sum,5m]

but works:
grpavg[<group>,<item>,avg,300]
grpavg[<group>,<item>,sum,300]

Simply unit symbols doesn't work with all functions in aggregate items



 Comments   
Comment by Alexei Vladishev [ 2012 Jan 31 ]

They are not supposed to work, I changed issue type to improvement.

Comment by dimir [ 2012 Mar 01 ]

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

Comment by Alexander Vladishev [ 2012 Mar 05 ]

(1) Please review my changes in r25791

<dimir> Corrected a bit, please review my changes in r25801.
<Sasha> Thanks! CLOSED

Comment by Alexander Vladishev [ 2012 Mar 05 ]

(2) Some improvements:

  • validation of 4th parameter should be added
  • functions str2uint() and is_uint_prefix() should be rewritten

<dimir> RESOLVED. There were lots of commits, including style fixes. str2uint() was ditched as it's not used anywere.
<Sasha> CLOSED Great work!

Comment by Alexander Vladishev [ 2012 Mar 08 ]

(3) Please review my changes before merge with trunk.

<dimir> Perfect. I have also capitalized some GUI error messages in r25927.
<Sasha> Thanks! CLOSED

Comment by dimir [ 2012 Mar 09 ]

Fixed in pre-1.9.10 r25933.

Comment by dimir [ 2012 Mar 09 ]

Reopening to reassign.

Comment by dimir [ 2013 Feb 14 ]

This fix introduced a regression ZBX-6262. Will be fixed for 2.0 and 2.2 .





[ZBX-4580] In "Configuration->Actions->Operations" report element usrgrps_'7' can not be found anymore Created: 2012 Jan 24  Updated: 2017 May 30  Resolved: 2012 Feb 01

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

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


 Description   

testFormAction::testActionCreate
PHPUnit_Framework_Exception: Response from Selenium RC server for testComplete().
ERROR: Element usrgrps_'7' not found.

trunk-FRONTEND-POSTGRESQL/frontends/php/tests/selenium/testFormAction.php:188

P.S. Something wrong with quotation marks.



 Comments   
Comment by Pavels Jelisejevs (Inactive) [ 2012 Jan 25 ]

The problems is that in some pop ups, that have checkboxes (e.g. /popup.php?dstfrm=action.edit&srctbl=usrgrp&srcfld1=usrgrpid&srcfld2=name&multiselect=1), the 'srcfld1' is quoted before inserting it into the "name" and "id" attributes of the checkboxes, which: 1. produces invalid HTML, 2. breaks some tests. Then the code looks like this:

<input type="checkbox" value="8" name="usrgrps["8"]" id="usrgrps_"8"" class="input checkbox pointer">

This parameter should not be quoted.

We must also make sure, that we don't have any pop up with checkboxes where we try to insert any object names or other user input in the checkbox "name" or "id" attributes.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Jan 25 ]

(1) Another bug caused by ZBXNEXT-1066: the trigger info pop up is not working in the item configuration list.

<pavels> RESOLVED.

<Vedmak> CLOSED

Comment by Alexey Fukalov [ 2012 Feb 01 ]

(2) [GUI]
Maps configuration seems broken.

<pavels> RESOLVED.

<Vedmak> CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 02 ]

(3) Fixed one more thing we talked about in r25158, please review.

REOPENED.

<Vedmak> CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 02 ]

Merged to trunk r25162.

CLOSED.





[ZBX-4579] Incorrect "unknown" column values in an availability report without data Created: 2012 Jan 24  Updated: 2017 May 30  Resolved: 2012 Feb 25

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

Type: Incident report Priority: Major
Reporter: Pavels Jelisejevs (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: reports
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

PHP 5.3.8, MySQL Ver 14.14 Distrib 5.5.16


Issue Links:
Duplicate

 Description   

The value for the unknown "column" in the availability report changes randomly from 0% to 100% with each refresh if the trigger has no events.



 Comments   
Comment by Oleksii Zagorskyi [ 2012 Jan 25 ]

I can confirm, but not only for Unknown column only, for Problems and Ok columns too. I'd say that values in all columns randomly are jumping to 0%.
Tested on latest rev 25003

Comment by Alexei Vladishev [ 2012 Jan 31 ]

I tried hard to reproduce it, no luck so far.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 01 ]

It probably only happens on some specific seconds.

Comment by Alexei Vladishev [ 2012 Feb 25 ]

Fixed in revision 25601. It was just two line code change.





[ZBX-4563] Problems with user defined macros Created: 2012 Jan 19  Updated: 2017 May 30  Resolved: 2012 Feb 27

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

Type: Incident report Priority: Critical
Reporter: Alexander Vladishev Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: usermacros
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

trunk, r24888


Attachments: JPEG File admin.jpg     JPEG File distance-between-macros.jpg     JPEG File super-admin.jpg    
Issue Links:
Duplicate
is duplicated by ZBX-4669 API method "usermacro.updateglobal" d... Closed

 Description   

Some problems found with user macros:

1. host and template level macros:

  • some macros can disappear at their saving; how to repeat a problem:
    a. add two macros {$A} and {$B}
    b. remove macro {$A}
    c. add macro {$C} and save host or template
    d. only {$C} macro will be saved

2. template level macros:

  • the distance between macros isn't enough (see a screenshot)

3. the source code for template/host and global level macros is very different; it should be unified

4. the validation order of macros isn't logical

5. in API there aren't some checks

  • a check for duplicated macros

6. error messages violates coding style; for example:
frontends/php/api/classes/class.cusermacro.php:735, 738



 Comments   
Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 07 ]

We've discussed it with Vedmak and Eduard, and decided, that from now on, each public API method will have it's own validator, instead of a single monstrous checkInput-like method. Each validator will consist of multiple, mostly independent checks. That way the validation process will be clearer and more flexible.

RESOLVED.

<Eduard> CLOSED

Comment by richlv [ 2012 Feb 08 ]

(7) api documentation doesn't seem to be updated (both individual method pages and http://www.zabbix.com/documentation/2.0/manual/appendix/api/changes_1.8_-_2.0 )

<pavels> Yeah, I'll update the docs as soon as the fix is reviewed and tested.

<pavels> Updated the changes section http://www.zabbix.com/documentation/2.0/manual/appendix/api/changes_1.8_-_2.0 and the API docs http://www.zabbix.com/documentation/2.0/manual/appendix/api/usermacro?&#methods

<Sasha> CLOSED

Comment by Eduards Samersovs (Inactive) [ 2012 Feb 14 ]

(8) After saving host with user macros, macros will doubles (if user is not Super Admin).

<pavels> RESOLVED.
<Eduard> CLOSED

Comment by Eduards Samersovs (Inactive) [ 2012 Feb 20 ]

(9) Duplicate "form_refresh" variable in administration->general->user macros page

<pavels> RESOLVED.
<Eduard> CLOSED

Comment by Eduards Samersovs (Inactive) [ 2012 Feb 20 ]

(10) Typo in message: Macro "%1$s is not unique."

<pavels> RESOLVED.
<Eduard> CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 20 ]

(11) Permission checks should be made prior to everything else.

<pavels> RESOLVED.
<Eduard> CLOSED

Comment by Eduards Samersovs (Inactive) [ 2012 Feb 20 ]

(12) Login as common Admin user. Edit some host where exist {$A} and {$B}. Create {$C} and delete {$B} - error message is shown..
array_merge(): Argument #1 is not an array [api/classes/class.cusermacro.php:622]
Argument 1 passed to CUserMacro::checkHostPermissions() must be an array, null given, called in /home/zabbix/www/testing-ZBX-4563/frontends/php/api/classes/class.cusermacro.php on line 623 and defined [api/classes/class.cusermacro.php:865]
Invalid argument supplied for foreach() [api/classes/class.cusermacro.php:881]

<pavels> RESOLVED.
<Eduard> CLOSED

Comment by Eduards Samersovs (Inactive) [ 2012 Feb 22 ]

(13) Global macros ordering is jumping after saving.

<pavels> RESOLVED.
<Eduard> CLOSED

Comment by Alexander Vladishev [ 2012 Feb 22 ]

(14) in fields, created dynamically an 'id' property are missing.

value:
<input class="input text" type="text" id="macros_2_value" name="macros[2][value]" size="40" maxlength="255" placeholder="value">
<input class="input text" type="text" name="macros[3][value]" size="40" maxlength="255" placeholder="value">

button:
<input class="input button shadow ui-corner-all link_menu macroRemove" type="button" id="macros_del" name="macros_del" value="Remove" onclick="">
<input class="input link_menu macroRemove" type="button" value="Remove" data-is-new="1">

<pavels> RESOLVED.
<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Feb 22 ]

(15) Very strange SQL requests while saving macros
The rights are checked some times.

5 macros updated
2 macros added

https://support.zabbix.com/secure/attachment/18100/super-admin.jpg
https://support.zabbix.com/secure/attachment/18101/admin.jpg

<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Feb 24 ]

Great work! Successfully tested.

Don't forget to update API documentation.

Comment by Alexander Vladishev [ 2012 Feb 27 ]

Related issue: ZBX-4621

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 27 ]

Merged to trunk r25614.

Comment by Alexander Vladishev [ 2012 Feb 27 ]

(16) Please change validateCreate() function to protected.

<pavels> CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 27 ]

CLOSED.





[ZBX-4562] API "mediatype.update" return wrong formatted result Created: 2012 Jan 19  Updated: 2017 May 30  Resolved: 2012 Mar 14

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 1.8.10
Fix Version/s: 1.8.11, 2.0.0rc1

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

CentOS5.5, MySQL



 Description   

I send to API
{
"method" : "mediatype.update"
"params" : [

{ "smtp_server" : "[email protected]", "mediatypeid" : 4 }

],
"auth" : "xxx",
"jsonrpc" : "2.0",
"id" : 1,
}

I expect
{"jsonrpc":"2.0","result":

{"mediatypeids":[4]}

,"id":1}
but get
{"jsonrpc":"2.0","result":

{"mediatypeids":true}

,"id":1}

So I modified frontends/php/api/classes/class.cmediatype.php

410d409
< $mediatypeids = zbx_objectValues($mediatypes, 'mediatypeid');
453c452
< DB::update('media_type', $update);

> $mediatypeids = DB::update('media_type', $update);



 Comments   
Comment by Toms (Inactive) [ 2012 Feb 29 ]

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

Comment by Alexey Fukalov [ 2012 Mar 01 ]

Trunk version tested, but this also should be fixed in 1.8 branch.

<Toms > RESOLVED Fixed in dev. branch: svn://svn.zabbix.com/branches/dev/ZBX-4562-18

<Vedmak> CLOSED

Comment by Toms (Inactive) [ 2012 Mar 06 ]

Fixed in 1.9 r.25749 and 1.8 r.25819

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 08 ]

You forgot to add an entry in the trunk ChangeLog under the 1.8 section.

REOPENED.

<Toms> RESOLVED in r.25819

<richlv> revision 25819 modifies branches/1.8/ChangeLog
additionally, in the trunk changelog entry has been added for 1.9.10, not in the corresponding 1.8 section

<Toms> RESOLVED in r.25957

<richlv> the entry ordering did not match the one in the 1.8 changelog - i reordered them in rev 25958, please review

<pavels> I think the first letter should be in lower case. Otherwise, everything is fine. CLOSED.





[ZBX-4560] Item error message is started with lowercase letter. Created: 2012 Jan 18  Updated: 2017 May 30  Resolved: 2012 Feb 19

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

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


 Description   

When LLD tries to create item that already exists, item error is set as "cannot create item [vfs.fs.size[/,pfree]]: item already exists".



 Comments   
Comment by Alexei Vladishev [ 2012 Feb 19 ]

Fixed in trunk revision 25456. No need to test, just fixed message strings.





[ZBX-4554] In map element configuration form, images in dropdowns are not natural sorted. Created: 2012 Jan 16  Updated: 2017 May 30  Resolved: 2012 Mar 01

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

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


 Comments   
Comment by Toms (Inactive) [ 2012 Feb 27 ]

Worked fine in MySQL without ORDER BY. But as I think it is special behavior. Added Order By for general case.

Comment by Toms (Inactive) [ 2012 Feb 27 ]

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

Comment by Eduards Samersovs (Inactive) [ 2012 Feb 29 ]

(1) Please review r.25684, if fine can merge

<Toms> Looks ok. MERGED

Comment by Toms (Inactive) [ 2012 Feb 29 ]

Fixed in pre-1.9.9 r25685

Comment by Toms (Inactive) [ 2012 Mar 01 ]

Fixed in pre-1.9.10 r25680

Comment by Oleksii Zagorskyi [ 2012 Mar 01 ]

Actually fixed in pre-1.9.10 r25685

Comment by Toms (Inactive) [ 2012 Mar 01 ]

Sorry. You are right.





[ZBX-4552] Importing Linked Template Changes Item's Host Interface Created: 2012 Jan 16  Updated: 2017 May 30  Resolved: 2012 Mar 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Templates (T)
Affects Version/s: 1.9.8 (beta)
Fix Version/s: 2.0.0rc1

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

redhat-release-5Server-5.5.0.2


Issue Links:
Duplicate
is duplicated by ZBX-3531 Export/import basic functionality Closed

 Description   

Description:
Our hosts are monitored both via Agent and JMX, and hosts are applied with several templates, some templates are for Agent items and some templates are for JMX items, all items worked properly. In order to update items, I updated the template for JMX and imported it, all item's hosts interface changed to "Agent Interface" instead of "JMX interface" after importing, and hosts JMX monitoring changed to unavailable minutes later. I got the message "Invalid port number" on UI, and the hosts JMX monitoring can't work until I changed all JMX items host interface to "JMX Interface".

Reproduce Steps:

  1. Create a host with both JMX interface and Agent interface
  2. Create two templates, one for JMX interface and one for Agent interface, there should be at lease one item in each template
  3. Apply templates to the host
  4. The items for both JMX and Agent should work properly
  5. Change JMX template and import it again(or you can just import the template without changing it), keep all check bot as default when importing
  6. See the host interface of JMX items, it should change from "JMX interface" to "Agent interface"


 Comments   
Comment by Igor Danoshaites (Inactive) [ 2012 Mar 08 ]

In dev branch ZBX-3531 can not reproduce such error any more.

Comment by Igor Danoshaites (Inactive) [ 2012 Mar 08 ]

This problem has been fixed in ZBX-3531 and will be available in the trunk branch when src code will be merged.





[ZBX-4549] ERROR: nested transaction detected. Please report it to Zabbix Team. Created: 2012 Jan 16  Updated: 2017 May 30  Resolved: 2012 Feb 28

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

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

RedHat 5.5 + Oracle10G + Zabbix Server 1.8.8


Attachments: Text File zabbix_server-1.8.8parts.log    
Issue Links:
Duplicate
is duplicated by ZBX-4691 server crash: zabbix_server: db.c:506... Closed
is duplicated by ZBX-4768 ERROR: nested transaction detected. P... Closed

 Description   

It just happened.
See attached log for details.



 Comments   
Comment by dimir [ 2012 Feb 28 ]

Confirmed for both 1.8 and trunk.

Comment by dimir [ 2012 Feb 28 ]

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

Comment by Alexander Vladishev [ 2012 Feb 29 ]

Great! Successfully tested.

Comment by dimir [ 2012 Feb 29 ]

Fixed in pre-1.8.11 r25698, pre-1.9.10 r25700.





[ZBX-4537] Using the Zabbix classes from another project impossible due to relative includes/requires Created: 2012 Jan 12  Updated: 2017 May 30  Resolved: 2012 Feb 25

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

Type: Incident report Priority: Minor
Reporter: Timo A. Hummel Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

When attempting to use the Zabbix classes from another project, this is currently not possible because the includes are relative.

A possible workaround would be to chdir() to the zabbix root directory, but this is not a clean method.

There are several methods:

  • Rewrite the require/includes using _DIR_ (or dirname(_FILE_) for backwards compatibility) - not nice, but it would work. Drawback is that one would need to change all the occurences in case of a chance
  • Add a dedicated require/include method which automatically uses _DIR_ to find out the absolute path, something like this (untested):

function zbx_require_once ($file)

{ // Additional checks if the include really exists would need to go here // Also, the following line would need to be adjusted whereever the zbx_require_once function lives require_once(dirname(__FILE__) . $file); }

I'm open for discussion for a possible bugfix, which I could eventually write.



 Comments   
Comment by Pavels Jelisejevs (Inactive) [ 2012 Jan 16 ]

We've decided to start added dirname(_FILE_) to our require paths from now on and added this to our guidelines, but the existing calls will be refactored over time. It's too much work to change it all at once.

Comment by Alexei Vladishev [ 2012 Feb 25 ]

It is documented under https://zabbix.org/wiki/Docs/specs/coding_style#Statement_formatting

Comment by Alexei Vladishev [ 2012 Feb 25 ]

Fixed in pre-1.9.10, revision 25606. It won't be integrated into 1.8.x.





[ZBX-4494] URL resource type within screens are not available to user Created: 2011 Dec 29  Updated: 2017 May 30  Resolved: 2012 Feb 08

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

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


 Description   

Non-admin user is not able to see URL resource cell within defined screen.
All other screen cells (resources) are visible.



 Comments   
Comment by Alexei Vladishev [ 2012 Feb 01 ]

It also does not work for Clock, perhaps other screen elements as well.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 09 ]

Merged to trunk r25300.

CLOSED.





[ZBX-4467] Screen - Select Zoom "ALL" -> Warning. Time period max value: 63072000 (730 d) Created: 2011 Dec 19  Updated: 2017 May 30  Resolved: 2012 Mar 06

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

Type: Incident report Priority: Major
Reporter: Kenneth Palmertree Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Zabbix-1.9.9-23907
CentOS 6.0
MySQL 5.5.19



 Description   

If a user selects "ALL" in zoom while viewing SCREENS, even if there is only a few weeks of data, the zoom goes out to 2 years and displays the following message: Warning. Time period max value: 63072000 (730 d).



 Comments   
Comment by Alexander Sorokin (Inactive) [ 2012 Jan 18 ]

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

Comment by richlv [ 2012 Jan 18 ]

(2) as discussed with zalex, string change that only changed [] to "" should also be reflected in all translations that had those strings translated. it should be made so that these translations are not lost (both msgid and msgstr must be properly changed). it should not be changed for languages that didn't have those strings translated.
if in doubt, consult translation maintainers : https://zabbix.org/wiki/Translating_Zabbix

<pavels> But he didn't change only of those strings. Or am I missing something?

<richlv> this was my failure, commented on the wrong issue. added (30) to ZBX-2737 instead, CLOSED here

Comment by Pavels Jelisejevs (Inactive) [ 2012 Jan 19 ]

(3) Since we have a nice _n() function, let's use it in graphs.inc.php:378 and :382.
<sanja> RESOLVED

<pavels> CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Jan 25 ]

Merged to trunk r25017.

CLOSED.

Comment by richlv [ 2012 Feb 24 ]

(4) regression. set ZBX_MAX_PERIOD to 10 years, have 5 years worth of data. in a graph, click "all" - it goes to two years. try this in rev 25016 - it goes to whatever amount of data you have

<pavels> RESOLVED in /branches/dev/ZBX-4467.

<richlv> functionally seems to work as expected again, CLOSED

Comment by Eduards Samersovs (Inactive) [ 2012 Feb 29 ]

(5) Will be nice to crop slider till max period size in event when user make it bigger.

<pavels> I've talked to Alexander about that, and we've decided to fix this as a separate issue later. CLOSED.

Comment by Eduards Samersovs (Inactive) [ 2012 Mar 05 ]

Tested

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 05 ]

The fix for the maximum period has been merged to trunk r25792.

CLOSED.

Comment by Oleksii Zagorskyi [ 2012 Mar 06 ]

In cases like this the "Fix version/s" should contain two values: 1.9.9 and 1.9.10 because both releases have changes related to this issue.
REOPENED

Comment by Oleksii Zagorskyi [ 2012 Mar 06 ]

closed again with two values





[ZBX-4442] Incorrect JavaScript for URL handling on network maps Created: 2011 Dec 14  Updated: 2017 May 30  Resolved: 2012 Mar 01

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: 2.0.0rc1

Type: Incident report Priority: Minor
Reporter: Sergey Syreskin Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: maps
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates ZBX-4295 icons may end outside of the map Closed

 Description   

??????? ?????????? ??????, ????? ??? ?????? "URL" ??? ???????? ?????, ??? url ??????????? ? ??????? javascript location.replace,
???????, ? ????? ?????? ???????? ????????? ?? ????? ????????, ? ???????? ?????????? ???????.

??? ??, ???? ? ???????? ?????? ?????? "?", ?? ???????? ?? ?? ?????????? ???????? (? ??????? ?? ????), ? ?? ????_????????.

http://www.zabbix.com/forum/showthread.php?t=23986



 Comments   
Comment by Alexander Vladishev [ 2012 Feb 27 ]

Related issue: ZBX-4253

Comment by Toms (Inactive) [ 2012 Feb 29 ]

Resolved in ZBX-4253

Comment by Toms (Inactive) [ 2012 Mar 01 ]

Fixed in pre-1.9.10 r25680

Comment by Oleksii Zagorskyi [ 2012 Mar 27 ]

Note: svn log of revision 25680 mentions ZBX-4295 (which fixed only in the trunk)

So, I suppose this issue has been resolved in the ZBX-4295 but not in the ZBX-4253.
Links will be updated.





[ZBX-4342] inefficient item config page Created: 2011 Nov 10  Updated: 2017 May 30  Resolved: 2012 Feb 26

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: 2.0.0rc1

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


 Description   

with profile setting to show 200 rows per page (and debug enabled), item configuration page that shows 200 items out of 209 results in :

106 queries ----> "SELECT MAX(g.gui_access) as gui_access FROM usrgrp g,users_groups ug WHERE ug.userid=3 AND g.usrgrpid=ug.usrgrpid"
106 queries ----> "SELECT ug.userid FROM usrgrp g,users_groups ug WHERE ug.userid=3 AND g.usrgrpid=ug.usrgrpid AND g.debug_mode=1"

together with api debug the page ends up being more than 4.5 mb large (and, of course, there's the db load increase)

also, this page does a large amount of queries against the items table, requesting info for single item at a time -
there are 192 queries of "SELECT i.itemid, h.* FROM hosts h, items i WHERE i.hostid=h.hostid AND (i.itemid IN"



 Comments   
Comment by richlv [ 2011 Nov 10 ]

...and there's more

106 queries of : "SELECT u.userid,u.alias,u.name,u.surname,u.url,u.autologin,u.autologout,u.lang,u.refresh,u.type, u.theme,u.attempt_failed,u.attempt_ip,u.attempt_clock,u.rows_per_page FROM users u WHERE u.userid=3"

106 queries of: "SELECT u.userid,u.autologout,s.lastaccess FROM sessions s,users u WHERE s.sessionid=..."

Comment by Alexei Vladishev [ 2012 Feb 25 ]

It is much more efficient in pre-1.9.10 (around 100 SQL queries to display 100 items), yet I agree that it could be optimized even more. I am closing it.

It won't be back-ported to 1.8.x.





[ZBX-4333] Not adding triggers dependencies from template Created: 2011 Nov 08  Updated: 2017 May 30  Resolved: 2012 Mar 07

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

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

Attachments: JPEG File triggers.jpg    
Issue Links:
Duplicate

 Description   

This issue is the same as ZBX-4056 but for 1.8 branch.

We have two templates with one trigger per every template where one is the dependency for another.
After link templates to host, trigger dependency is missing.
API was not tested.



 Comments   
Comment by richlv [ 2011 Nov 21 ]

still the same in 1.8.9rc2

Comment by richlv [ 2012 Jan 17 ]

(1) changes in rev 24828 violate coding style guidelines
<Slava>RESOLVED

<richlv> if statement indentation seems to be still broken, it's spacing is broken as well (after all, that line was modified...) and sql statement still has excess spaces between arguments. there might be other things not listed here.

<Sasha> An update_template_dependencies_for_host() function is not used anywhere; a commented code should be removed
<Slava>RESOLVED r 24896

<pavels> More coding style fixes in r25011, please review.

<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Jan 18 ]

(2) when linking a template to a host, host triggers depends on template triggers
https://support.zabbix.com/secure/attachment/17827/triggers.jpg
<Slava>RESOLVED r 24896

<pavels> No it wasn't. RESOLVED in r25038.
<Sasha> CLOSED

Comment by richlv [ 2012 Jan 20 ]

(3) rev 24923 - typo in the changelog entry
<Slava>RESOLVED

<pavels> CLOSED.

Comment by Alexander Vladishev [ 2012 Jan 23 ]

(4) dependencies aren't copied in operation "Copy selected to ..."

<pavels> RESOLVED.
<Sasha> CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2012 Jan 26 ]

(5) When linking a template with a dependency on a different template, an empty error line appears:

Trigger in template [ template ] has dependency with trigger in template [ template2 ]

Cannot link template
Host update failed

<pavels> RESOLVED.
<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Jan 30 ]

(6) when copying trigger from host to another host there are superfluous actions with DB:

.....
Time:0.000961 SQL: INSERT INTO trigger_depends (triggerdepid,triggerid_down,triggerid_up) VALUES (29,13482,13480)
.....
Time:0.000961 SQL: INSERT INTO trigger_depends (triggerdepid,triggerid_down,triggerid_up) VALUES (30,13483,13481)
.....
Time:0.000969 SQL: DELETE FROM trigger_depends WHERE triggerid_up=13480 AND triggerid_down=13482
Time:0.000971 SQL: DELETE FROM trigger_depends WHERE triggerid_up=13481 AND triggerid_down=13483
.....
Time:0.000962 SQL: INSERT INTO trigger_depends (triggerdepid,triggerid_down,triggerid_up) VALUES (31,13482,13483)
.....
Time:0.000963 SQL: INSERT INTO trigger_depends (triggerdepid,triggerid_down,triggerid_up) VALUES (32,13483,13484)
.....

<pavels> RESOLVED.
<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Feb 01 ]

(7) include/triggers.inc.php:2317 A 'triggerArray' variable can be undefined.

<pavels> RESOLVED.
<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Feb 01 ]

(8) Operation "Copy selected to..." and "Full clone" copies trigger dependencies only for one level. All child triggers remains without dependencies.

<pavels> RESOLVED.
<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Feb 01 ]

(9) When adding trigger with dependencies, new child triggers are added without dependencies.

<pavels> RESOLVED.
<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Feb 01 ]

(10) Mass update operation clears all dependencies. Related issue: ZBX-4600

<pavels> This problem is not related to the current issue, I suggest we fix it in a separate branch. Shouldn't it be a blocker? Looks quite nasty.
<Sasha> Ok, CLOSED

Comment by Alexander Vladishev [ 2012 Feb 02 ]

Related issue: ZBX-648

<pavels> Isn't this a server side problem?
<Sasha> Of course, it's on a server side.

Comment by Alexander Vladishev [ 2012 Feb 06 ]

Successfully tested!

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 07 ]

Merged to 1.8 r25222.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 07 ]

The problem persists in the trunk, but we need to close ZBX-4598 before we can fix it.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 09 ]

Alexander has written a spec on how templated trigger dependencies should be handled. It's available here http://zabbix.org/wiki/Docs/specs/ZBX-4333

<zalex> I guess we have ZBXNEXT-1072 to discuss this awesome work. I'll add few thoughts there.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 14 ]

The fix for the trunk is available in /branches/dev/ZBX-4333-trunk. I've done some code refactoring and fixed several bugs connected to trigger dependencies. I think the code will be a little simpler now.

RESOLVED.

Comment by Oleksii Zagorskyi [ 2012 Feb 15 ]

ZBX-4317 could be retested after this fix and maybe closed too

Comment by Eduards Samersovs (Inactive) [ 2012 Mar 01 ]

(11) Create T2 from T3 dependence. Create T1 from T2 dependence. Create T3 from T1 dependence. The result is incorrect error message, seems update with rollback happens.
Updated: Trigger "cpu t3" on "dep_t3".
Incorrect dependency. [CTrigger.update -> CTrigger.addDependencies -> CTrigger.validateAddDependencies -> CTrigger.checkDependencies]

<pavels> Indeed, we need to create the triggers first, and only then can we validate the dependencies and rollback, if something is not right. To fix this, we would need to completely rewrite the code.

<Eduard> CLOSED

Comment by Eduards Samersovs (Inactive) [ 2012 Mar 01 ]

(12) Trigger can be dependent on himself.

P.S. When we try remove trigger dependence on himself error message is shown:
Updated: Trigger "cpu t3" on "dep_t3".
Empty input parameter. [CTrigger.update -> CTrigger.addDependencies -> CTrigger.validateAddDependencies]

<pavels> RESOLVED.
<Eduard> CLOSED

Comment by Eduards Samersovs (Inactive) [ 2012 Mar 01 ]

(13) Create template with trigger (TT1). Create host with trigger (HT1). Create dependence TT1 to HT1. Save. Try remove this dependence - error message is shown..

Updated: Trigger "t1" on "dep_t1".
Empty input parameter. [CTrigger.update -> CTrigger.addDependencies -> CTrigger.validateAddDependencies]

<pavels> RESOLVED.
<Eduard> CLOSED

Comment by Eduards Samersovs (Inactive) [ 2012 Mar 01 ]

(14) Create Template with 1 item and 2 triggers (T1 and T2). Create trigger dependence T2 from T1. Make full clone. Error message is shown..

Created: Item "cpu t1" on "dep_t1_clone".
Created: Trigger "t1.1" on "dep_t1_clone".
Created: Trigger "t1.2" on "dep_t1_clone".
mysql_real_escape_string() expects parameter 1 to be string, array given [include/db.inc.php:616]
mysql_real_escape_string() expects parameter 1 to be string, array given [include/db.inc.php:616]
Cannot create dependency [CTrigger.create -> CTrigger.addDependencies]

<pavels> RESOLVED.
<Eduard> CLOSED

Comment by Eduards Samersovs (Inactive) [ 2012 Mar 01 ]

(15) Create Template with 1 item and 2 triggers (T1 and T2). Create trigger dependence T2 from T1. Try "copy to" T1 to some other template. Validation message is confusing..

Created: Trigger "t1.1" on "dep_t2_clone".
Empty input parameter. [CTrigger.addDependencies -> CTrigger.validateAddDependencies]

<pavels> RESOLVED.
<Eduard> Still can reproduce

<pavels> Sorry, I've misunderstood your description. RESOLVED.
<Eduard> CLOSED

Comment by Eduards Samersovs (Inactive) [ 2012 Mar 01 ]

(16) Some messages are not translatable.

CTrigger->addDependencies()
self::exception(ZBX_API_ERROR_PARAMETERS, 'Cannot create dependency');

CTrigger->deleteDependencies()
self::exception(ZBX_API_ERROR_PARAMETERS, 'Cannot delete dependency');

<pavels> RESOLVED.
<Eduard> CLOSED

Comment by Eduards Samersovs (Inactive) [ 2012 Mar 07 ]

Tested

Comment by Oleksii Zagorskyi [ 2012 Mar 08 ]

Pavels, just interesting, why here is so many work for trunk although we have resolved and closed ZBX-4056?
Additional improvements?

<pavels> More like additional bug fixes. Even after ZBX-4056 a lot of problems with trigger dependencies remained.
<zalex> Thanks. CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 08 ]

I've updated to the latest trunk and manually resolved some conflicts, please check that everything is ok in CTemplate.php, CTrigger.php and CTriggerGeneral.php.

<Eduard> Unfortunately can't find any bug, so CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 08 ]

Merged to trunk r25906.

CLOSED.

Comment by Pavel Timofeev [ 2012 Mar 12 ]

It's very very awaiting change for new 1.8 release.





[ZBX-4296] popup menu unavailable for disabled hosts Created: 2011 Oct 28  Updated: 2017 May 30  Resolved: 2012 Mar 14

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: 2.0.0rc1

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


 Description   

popup menu in the maps (the one containing "tools") is not available for disabled hosts - it should be (we might still want to ping, traceroute or whatever a host that is not actively monitored)



 Comments   
Comment by Toms (Inactive) [ 2012 Feb 17 ]

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

Comment by Alexander Vladishev [ 2012 Feb 27 ]

(1) I think only scripts should be shown for disabled hosts. "Status of triggers" and "Host screens" doesn't work for disabled hosts.

<Tomtom> RESOLVED
<Sasha> CLOSED

Comment by Toms (Inactive) [ 2012 Feb 27 ]

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

Comment by Toms (Inactive) [ 2012 Feb 28 ]

Fixed in version pre 1.9.11 r25655





[ZBX-4295] icons may end outside of the map Created: 2011 Oct 28  Updated: 2017 May 30  Resolved: 2012 Mar 01

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: 2.0.0rc1

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

Attachments: PNG File icon_outside_map.png    
Issue Links:
Duplicate
is duplicated by ZBX-4673 icons get cut off in the configuratio... Closed
is duplicated by ZBX-4442 Incorrect JavaScript for URL handling... Closed

 Description   

while several cases have been fixed, it is still possible for icons to end up outside of the map area.

create a 100 px high map, add an icon. change icon to "server (128)", apply. change the icon to "rackmountable server 3d (128)", apply. icon is positioned outside the map area (in the db, y position is -30). it should also be verified that api has some sane validation for icon placement (negative placement might be allowed, but not if it's > than 50% of icon width height or such)

(you may use images from create/images/png directory to reproduce this problem)



 Comments   
Comment by Toms (Inactive) [ 2012 Feb 17 ]

Unable to reproduce the problem.

Comment by Toms (Inactive) [ 2012 Feb 17 ]

Unable to reproduce the problem.

Comment by richlv [ 2012 Feb 17 ]

the specific problem indeed seems to be gone in trunk rev 25445

Comment by Oleksii Zagorskyi [ 2012 Feb 18 ]

For the record: I cannot reproduce it with any release 1.9.5-1.9.9 and latest trunk.
Even tried revision 22784 (merged 2011 Oct 28 15:27) - still not reproducible.

Probably we have to always note a revision when we create trunk bug reports (actually we are doing that lately ).

So I'd change resolution to "Cannot reproduce"

Comment by Toms (Inactive) [ 2012 Feb 23 ]

It is possible to put an icon and after resizing the map enough small icon comes out of it.

Comment by Toms (Inactive) [ 2012 Feb 23 ]

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

Comment by richlv [ 2012 Feb 23 ]

would this also fix ZBX-4673 ?

Comment by Toms (Inactive) [ 2012 Feb 24 ]

Yes, it will fix 4673.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 28 ]

TESTED.

Comment by Toms (Inactive) [ 2012 Feb 29 ]

Fixed in pre-1.9.10 r25680





[ZBX-4280] Incorrect behavior filter for items Created: 2011 Oct 26  Updated: 2017 May 30  Resolved: 2012 Feb 07

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

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

lastest trunk 22689


Issue Links:
Duplicate
duplicates ZBXNEXT-903 Redesign Configuration->Items Closed

 Description   

1. Checking only active items
2. Click 'Filter'
3. Search needed host in search form.
4. Click show items from founded host.
5. Them click on status any item (ex. unsupported)
6. And we have after reloading page filter by status item 'active' now. But in step 4 filter was only by founded host.



 Comments   
Comment by richlv [ 2012 Jan 26 ]

this is most likely the same as ZBX-3330

Comment by Eduards Samersovs (Inactive) [ 2012 Jan 28 ]

Resolved in ZBXNEXT-903

Comment by Alexei Vladishev [ 2012 Jan 30 ]

Reopening, should be closed only after proper testing.





[ZBX-4261] Item prototype is accounted in zabbix queue even if discovery rule is disabled Created: 2011 Oct 21  Updated: 2017 May 30  Resolved: 2012 Feb 11

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

Type: Incident report Priority: Major
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: discovery, lld, queue
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Zabbix 1.9.7 r22573



 Description   

Suppose that discovery rule is disabled, but item prototype is enabled.

That bug is related to frontend & zabbix_server side.



 Comments   
Comment by Aleksandrs Saveljevs [ 2011 Oct 21 ]

Item prototypes should not count towards queue, regardless of discovery rule's status, because they are not real items. Could you please explain your idea with an example?

Comment by Oleksii Zagorskyi [ 2011 Oct 21 ]

Aleksandrs, good question

I think item prototypes should count towards queue.

For instance for some reason the discovery rule becomes not supported, then it will be useful to see delay update for item prototype in the queue (as it's currently)
But if discovery rule is disabled (and eventually the item prototypes are not processed by zabbix_server) then its item prototypes should not count towards queue.

Maybe the page Queue -> Details could be improved to distinguish where is prototypes.

Comment by Aleksandrs Saveljevs [ 2011 Oct 21 ]

There seems to be a misunderstanding of what is a discovery rule and what is an item prototype, so I shall try to explain.

Suppose you create a discovery rule to discover network interfaces on a host: net.if.discovery. That discovery rule (a real item) is processed every "delay" seconds by contacting Zabbix agent.

Suppose you also create an item prototype to graph incoming traffic for every discovered interface: net.if.in[

{#IFNAME}

,bytes]. The prototype itself is not processed by the server.

Suppose then net.if.discovery discovers a bunch of interfaces on a host. Several real items are created from item prototypes: net.if.in[eth0,bytes] and net.if.in[eth1,bytes]. These two items are processed by Zabbix server.

Summarizing, item prototypes are not real items and do not gather any data. They only serve as a template for real items, created as a result of low-level discovery. Discovery rules should count towards queue, but item prototypes - no.

Comment by Oleksii Zagorskyi [ 2011 Oct 21 ]

Aleksandrs, thanks for explanation, but I know very well how LLD works and no need to explain me in details
You should remember how many issues I've created immediately after LLD was committed to trunk

I see your point of view.
My position was in the possibility of troubleshooting, but if discovery rules are counted in the queue (I've not tested and didn't even think in this direction ) then no really need to count item prototypes.

Ok, I agree with you to exclude item prototypes from the queue.
Thanks.

<added> Feel free to change the summary of this issue if you want.

Comment by Aleksandrs Saveljevs [ 2011 Oct 24 ]

Anyway, the bug is there, at least on the server side: item prototypes are counted when calculating queue. This should be fixed.

Comment by Alexander Vladishev [ 2012 Feb 11 ]

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

Also fixed discovery rules in the queue calculation. They always "hung" in queue since the field "lastclock" wasn't updated.

Comment by Alexei Vladishev [ 2012 Feb 18 ]

Tested, both server and front-end sides are perfect.

Comment by Alexander Vladishev [ 2012 Feb 18 ]

Fixed in the version pre-1.9.10, revision 25450.





[ZBX-4253] Make usual link instead of use javascript to open "Configuration of triggers" from tr_status.php Created: 2011 Oct 18  Updated: 2017 May 30  Resolved: 2012 Apr 04

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

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

Issue Links:
Duplicate

 Description   

At the page tr_status.php if we click to the trigger name in the pop-up we can select some actions.

There is some difference in the link types.

To the "Events" the link is like this:
https://zabbix/events.php?triggerid=30467&nav_time=1318925026&sid=32e13e4cacf17b64

To the "Simple graph" it's:
https://zabbix/history.php?action=showgraph&itemid=61516&sid=32e13e4cacf17b64

But to the "Configuration of triggers" it's:
javascript:redirect('triggers.php?form=update&triggerid=20896&switch_node=0').

Because of that we cannot open "Configuration of triggers" in the new browser tab as for "Events" or "Simple graph"
It's not convenient.
It was a "usability" side.

But we can consider this behavior as some "inconsistency" too. Why in the single pop-up are used different types of links?

Would be nice to improve this situation.



 Comments   
Comment by Oleksii Zagorskyi [ 2011 Oct 20 ]

(1) Additionally noted that "URL" link has the same trouble.

Comment by Oleksii Zagorskyi [ 2012 Jan 03 ]

See similar issue ZBXNEXT-1067 (item #1). Should be considered together.

Comment by Eduards Samersovs (Inactive) [ 2012 Feb 24 ]

(2) We don't encode data which we write in database..

Comment by Alexander Vladishev [ 2012 Feb 27 ]

Related issue: ZBX-4442

Comment by Toms (Inactive) [ 2012 Feb 29 ]

Fixed in pre-1.9.10 r25697

Comment by Alexander Vladishev [ 2012 Feb 29 ]

(3) now trigger popup menu doesn't work with URL like:
"</options><script>alert('XSS')</script>
Related issue: ZBX-4015

<Toms> RESOLVED in pre-1.9.9 r25704

<zalex> I see wrong version in this comment (actual version should be pre-1.9.10)

<Toms> My fault. Now I know about versioning.
<zalex> then the comment could edited (fixed) ,
btw, do not forget to fill properly "Fix version" value before closing. Both versions should be included: 1.8.x and 1.9.x

Comment by Alexander Vladishev [ 2012 Feb 29 ]

Please fix it in 1.8 too. By Oleksiy Zagorsky request.

<Toms> RESOLVED in development branch svn://svn.zabbix.com/branches/dev/ZBX-4253 r25710

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 01 ]

(4) We have some major trouble with the URLs both in the trunk and 1.8. E.g. if the trigger URL is "http://ya.ru?q=1&d=2" it is actually displayed as "http://ya.ru/?q=1&d=2?q=1&d=2" Note the encoded ampersand and the repeating parameters.

<Toms> RESOLVED 1.8 in svn://svn.zabbix.com/branches/dev/ZBX-4253 and 1.9 in svn://svn.zabbix.com/branches/dev/ZBX-4253-20

<pavels> This is not exactly what i meant. The URL doesn't need to be sanitizes when outputting, it needs to be validated when a user tries to save it. For now, let's just check that the URL doesn't begin with "javascript:", we can improve it later. BTW, here are some border cases, please check them as well http://ha.ckers.org/xss.html

<Toms> RESOLVED in 1.9 r.25826

<pavels> Validation should be performed in CTrigger::checkInput(), otherwise we'll be able to add a trigger with an incorrect URL through an API call.

<Toms> RESOLVED in r.25966

<pavels> Please review my changes in 25972-25975. An for 1.8 please don't forget to make sure the hacks mentioned above don't work in older browsers.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 01 ]

(5) I think we can fix the "Latest data" link in the host menu too.

<Toms> RESOLVED for 1.8 in svn://svn.zabbix.com/branches/dev/ZBX-4253. Not reproducible in 1.9.

<pavels> CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 12 ]

Please review my changes for 1.9 in (4), if everything is ok, you can merge the changes to the trunk.

Comment by Toms (Inactive) [ 2012 Mar 21 ]

Fixed for 1.8 in svn://svn.zabbix.com/branches/dev/ZBX-4253 r26251

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 21 ]

(6) Same as (4) "Validation should be performed in CTrigger::checkInput(), otherwise we'll be able to add a trigger with an incorrect URL through an API call."

<Toms> I don't think there is CTrigger::checkInput() in 1.8 version

<pavels> Right, my mistake. It has to be done in update_trigger() and add_trigger().

<Toms> RESOLVED in r26331

<pavels> CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 21 ]

(7) You can allow quotes in the URL if you escape the URL with CJs::jsonEncode() in tr_status.php.

<Toms> I don't think there is CJs::jsonEncode() in 1.8 version

<pavels> You can use zbx_jsvalue() instead.

<Toms> RESOLVED in r26331

<pavels> CLOSED.

Comment by Toms (Inactive) [ 2012 Mar 23 ]

Fixed in 1.8.12rc1 r26350

Comment by Oleksii Zagorskyi [ 2012 Mar 23 ]

Fix Version/s: doesn't contain version for trunk branch.
REOPENED
fixed, CLOSED

Comment by richlv [ 2012 Apr 04 ]

(8) missing entry in the corresponding section of the trunk changelog

<Toms> RESOLVED

<Toms> CLOSED





[ZBX-4202] tr_status.php generates too many queries to the DB Created: 2011 Oct 04  Updated: 2017 May 30  Resolved: 2012 Mar 06

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: 2.0.0rc1

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

zabbix php frontend >=1.8.4
Postgresql backend


Issue Links:
Duplicate

 Description   

Why for generating one page are performed 200 queries to DB?
Queries like:

"SELECT COUNT(DISTINCT e.eventid) as rowscount FROM events e WHERE (e.objectid IN (14770)) AND ((e.objectid BETWEEN 000000000000000 AND 099999999999999)) AND e.object=0 AND e.acknowledged=0 AND (e.value IN (1)) "
and
"SELECT DISTINCT h.host,t.description,t.expression,t.triggerid FROM triggers t, functions f, items i, hosts h WHERE f.triggerid=t.triggerid AND i.itemid=f.itemid AND h.hostid=i.hostid AND t.triggerid=22654".

Could be rewritten as:

"SELECT h.hostid FROM hosts h WHERE (h.hostid IN (10070,10169,10222,10229,10216,10220,10235,10733,10234,10175,10170,10362,10117,10689,10069,10745,10171,10209,10214,10204,10225,10183,10208,10211,10210,10205,10172,10173,10206,10185,10177,10176,10236,10232,10370,10212,10174,10223,10207,10219,10215)) AND ((h.hostid BETWEEN 000000000000000 AND 099999999999999)) AND h.status IN (0,1)"?

Why use "IN", if inside it is used only one value?



 Comments   
Comment by Toms (Inactive) [ 2012 Feb 23 ]

At this point multiple "SELECT COUNT(DISTINCT e.eventid) ..." and multiple user data queries resolved.
Others still to fix.

Comment by Toms (Inactive) [ 2012 Feb 24 ]

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

Comment by Toms (Inactive) [ 2012 Feb 24 ]

One query unfixed. Global structural changes should be considered.

Comment by Alexander Vladishev [ 2012 Feb 27 ]

(1) Please review my changes in r25639:25640

<Sasha> all my changes have disappeared

<Toms> My fault. I think it is due to misunderstanding with several branches. Nothing to resolve.

<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Feb 27 ]

(2) frontends/php/api/classes/class.cevent.php:176 Here a COUNT() function should be with DISTINCT.

<Toms> Resolved in r25654
<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Feb 27 ]

(3) frontends/php/api/classes/class.cevent.php:359 Possible undefined variable. DBselect can return NULL.

<Toms> Resolved in r25654
<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Feb 27 ]

(4) 'groupCount' option should depend on other options. For example hostids, triggerids ...

<Toms> Resolved in r25654
<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Feb 28 ]

(5) Please rename expand_trigger_description_multiple() function according to codung style.
http://www.zabbix.org/wiki/Docs/specs/coding_style#PHP_conventions

<Toms> Resolved in r25670
<Sasha> REOPENED function name should be like expandTriggersDescriptions()

<Toms> got the idea. RESOLVED in r25682
<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Feb 28 ]

(6) A new function DBfetchFirstArray() isn't used anywhere

<Toms> Resolved in r25670
<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Feb 28 ]

(7) Please recreate development branch. ZBX-4202-2 has been created from ZBX-4202. Not from trunk!

<Toms> Resolved in r25670
<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Feb 29 ]

(8) frontends/php/tr_status.php:447 unused code should not be commented out, but removed.

<Toms> RESOLVED in r25682
<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Feb 29 ]

(9) new or changed lines should be formatted correctly:
overview.php:132 no spaces between function arguments
triggers.inc.php:1311:1313 extra space between sql conditions
class.cuser.php:1010 the following statement(s) after if, while, for ... should always be in braces
class.cevent.php:365 "else {" statement should be on a new line
tr_status.php:372,376,379,443,451,530,532

<Toms> RESOLVED in r25682
<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Mar 05 ]

(10) Long SQL. Please look at it.

Time:2.283103 LONG SQL: SELECT DISTINCT t.*,hg.groupid FROM triggers t,functions f,items i,hosts_groups hg WHERE t.triggerid BETWEEN 000000000000000 AND 099999999999999 AND hg.hostid=i.hostid AND f.triggerid=t.triggerid AND f.itemid=i.itemid AND (hg.groupid IN ('6')) 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.flags IN ('0','4')) ) ORDER BY lastchange DESC,t.lastchange DESC
CAPIObject->get() > CAPIObject>__call() > czbxrpc::call() -> czbxrpc::callAPI() -> call_user_func() -> CTrigger>get() -> DBselect()

<Toms> RESOLVED in r.25812
<Sasha> CLOSED Now: Time:1.03052 ....

Comment by Alexander Vladishev [ 2012 Mar 05 ]

(11) The trigger dependencies aren't shown correctly

<Toms> RESOLVED in r.25812
<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Mar 05 ]

(12) Please review my changes in r25785:25786.

<Toms> RESOLVED in r.25812
<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Mar 05 ]

(13) Undefined variable: description [tr_status.php:478]

<Toms> RESOLVED in r.25812
<Sasha> CLOSED

Comment by Toms (Inactive) [ 2012 Mar 06 ]

..F....... ZBX-4202 Optimized triggerids retrieval. Fixed simple bugs.

Comment by Toms (Inactive) [ 2012 Mar 06 ]

Resolved in r.25831





[ZBX-4187] dashboard popup uses a slightly different font Created: 2011 Sep 29  Updated: 2017 May 30  Resolved: 2012 Feb 28

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

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

Attachments: PNG File font-compare.png    

 Description   

See font-compare.png. The font in the popup is slightly larger than in the dashboard itself.



 Comments   
Comment by Aleksandrs Saveljevs [ 2011 Oct 18 ]

Also note that the horizontal alignment in the "Ack" column is different.

Comment by Toms (Inactive) [ 2012 Feb 28 ]

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

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 28 ]

(1) In CTag::setHint() the $updateBlinkink parameter should be removed as well.

<Toms> Resolved in r25674

<pavels> CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 01 ]

TESTED.

Comment by Toms (Inactive) [ 2012 Mar 02 ]

Fixed in pre-1.9.10 r25736





[ZBX-4140] trigger evaluation is not work truly for x#2 Created: 2011 Sep 13  Updated: 2017 May 30  Resolved: 2012 Feb 23

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

Type: Incident report Priority: Major
Reporter: hamid sfandiari Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: triggers, triggertesting, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

FreeBSD 8.2 , MySQL Apache


Attachments: PNG File Untitled.png    
Issue Links:
Duplicate
is duplicated by ZBX-3780 test of triggerexpression "Absolute d... Closed

 Description   

if we define a trigger expression like

{Zyxel IES6000:slotModuleStatus[01].min(#2)}

=2&

{Zyxel IES6000:slotModuleStatus[01].last(0)}

#2

not it works truely on Trigger test(attachment) Nor works on ZABBIX server evaluation



 Comments   
Comment by richlv [ 2011 Sep 13 ]

confirming gui problem in branch 1.8 & trunk, rev 21618.
last(0)#2 alone fails in the test interface never evaluates to TRUE

server seems to work correctly both with last(0)#2 alone and min(#2)=2&last(0)#2 - could you please specify how it fails for you ?

Comment by hamid sfandiari [ 2011 Sep 13 ]

it seems that it works truely on server , only it have problem on test interface

regards

Comment by Oleksii Zagorskyi [ 2012 Feb 22 ]

Not working last(0)#2 in GUI confirmed for latest versions pre1.8.11 and trunk.

Comment by Alexei Vladishev [ 2012 Feb 23 ]

Fixed in revision 25548. No need to code review, just a one byte code change.





[ZBX-4110] ssh key auth form field "password" should be renamed Created: 2011 Sep 05  Updated: 2017 May 30  Resolved: 2012 Apr 05

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

Type: Incident report Priority: Trivial
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: itemconfigform, ssh
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates ZBXNEXT-903 Redesign Configuration->Items Closed

 Description   

when ssh item is using key auth, there is still a field, labeled "Password".
this is quite confusing and instead the label should change to "Key passphrase" or similar. of course, it should properly change back to "Password" if user switches back to password auth



 Comments   
Comment by Eduards Samersovs (Inactive) [ 2012 Jan 25 ]

Resolved in ZBXNEXT-903

Comment by Alexei Vladishev [ 2012 Jan 30 ]

Reopening, should be closed only after proper testing.

Comment by Alexei Vladishev [ 2012 Jan 31 ]

Tested under ZBXNEXT-903, works fine.

Comment by Oleksii Zagorskyi [ 2012 Apr 02 ]

Please do the same for action operation SSH remote command configuration page.
I mean to change the string "Password" to "Key passphrase" when selected Authentication method is Public key.

Sorry, I'll reopen this issue to not forgot do that.
I'm not sure is it worth to open new issue to perform this additional small string improvement.
REOPENED

Comment by Alexey Fukalov [ 2012 Apr 03 ]

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

Comment by richlv [ 2012 Apr 03 ]

(1) "becuese"
"otherwise their are"

<Vedmak> RESOLVED

<richlv> CLOSED

Comment by Toms (Inactive) [ 2012 Apr 05 ]

(1) attr("disabled", "disabled") to prop("disabled", true) change I think should be performed within whole file

<Vedmak> RESOLVED

<Toms> CLOSED

Comment by Toms (Inactive) [ 2012 Apr 05 ]

(2) new_operation_opcommand_password id still duplicate. unable to update password when in Authentication method: password

<Vedmak> RESOLVED

<Toms> CLOSED

Comment by Toms (Inactive) [ 2012 Apr 05 ]

(3) Password field displayed when not necesarry

<Vedmak> RESOLVED

<Toms> CLOSED

Comment by Alexey Fukalov [ 2012 Apr 10 ]

svn://svn.zabbix.com/trunk 26700





[ZBX-3992] web monitoring items are synced to the proxy Created: 2011 Jul 28  Updated: 2017 May 30  Resolved: 2012 Feb 09

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

Type: Incident report Priority: Major
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: codequality, performance, proxy, webmonitoring
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

web monitoring items are synchronised to zabbix proxy. this is useless.



 Comments   
Comment by Alexander Vladishev [ 2012 Feb 09 ]

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

Comment by dimir [ 2012 Feb 10 ]

Tested. The web monitoring items are not synced anymore.

Comment by Alexander Vladishev [ 2012 Feb 10 ]

Fixed in versions pre-1.8.11 (revision 25335) and pre-1.9.10 (revision 25336)





[ZBX-3788] zabbix daemon processes hang on futex Created: 2011 May 06  Updated: 2017 May 30  Resolved: 2012 Feb 17

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

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

Attachments: File ZBX-3788_investigation1.odt     File hanging-on-futex.c     File no-hanging-on-futex.c    

 Description   

sometimes zabbix agent will leave one process hanging upon exit. this has so far always happened after sending "killall -15 zabbix_agentd".

strace shows :

Process 10468 attached - interrupt to quit
futex(0xb783ca50, FUTEX_WAIT_PRIVATE, 2, NULL

what's confusing, this pid does not appear in the agentd log at all.

no idea whether this is in any way related to shared memory/semaphores, but the only thing owned by zabbix at that time is :

------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 3801088 zabbix 600 491612 1 dest



 Comments   
Comment by richlv [ 2011 May 06 ]

additional information : this is trunk from april 29th 10:00 (~ revision 19247)

looks like the source of the problem might be a child process that the agent has :

[sh] <defunct>

of course, that one can not be straced

looks like agent is not successfully killing child processes that time out or become dysfunctional

Comment by dimir [ 2011 Jun 03 ]

Can not reproduce. Maybe it's already fixed by ZBX-3072 .

Comment by richlv [ 2011 Aug 22 ]

just happened again with a debug build from ZBX-3994

this time, pid (30076) had some entries in the logfile :

10496:20110822:194101.619 End of zbx_popen():6 child:30076
30076:20110822:194101.620 zbx_popen(): executing script, parent:10496 [echo "show global status like 'Com_insert';" | HOME=/home/zabbix mysql -N | awk '

{print $2}

']

Comment by Aleksandrs Saveljevs [ 2011 Nov 17 ]

We have reproduced the problem with the small program in hanging-on-futex.c.

The idea is that some functions are not safe to use in signal handler. In our particular case, the use of function localtime() causes the process to hang on futex() call.

More details are available at http://www.fedoraforum.org/forum/showthread.php?t=187375 . The thread also links to the list of functions that are safe to use in signal handlers at http://pubs.opengroup.org/onlinepubs/000095399/functions/xsh_chap02_04.html .

Comment by Aleksandrs Saveljevs [ 2011 Nov 17 ]

Note that the problem affects not only agent, but server and proxy, too. The problem can also manifest itself while the process is operating normally, not necessarily during shutdown.

Comment by dimir [ 2011 Nov 23 ]

Same example using reentrant version of localtime(), no hanging. See attachment no-hanging-on-futex.c .

Comment by dimir [ 2011 Nov 23 ]

One of the biggest problems seems to me localtime() in our logging function ( __zbx_zabbix_log() ). There is lots of logging in our signal handlers. These should be replaced with reentrant functions for sure.

Comment by dimir [ 2012 Jan 31 ]

Reproduced again with unknown zabbix_server process:

$ ps u -p 3835
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
vl 3835 0.0 0.0 52960 1048 ? SN Jan25 0:10 sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf

$ grep 3835 /tmp/zabbix_server.log
$

$ strace -p 3835
Process 3835 attached - interrupt to quit
futex(0xb72a6a6c, FUTEX_WAIT_PRIVATE, 2, NULL

$ tail /tmp/zabbix_server.log
3826:20120131:152550.161 In zbx_mem_destroy() descr:'configuration cache'
3826:20120131:152550.161 End of zbx_mem_destroy()
3826:20120131:152550.161 In zbx_strpool_destroy()
3826:20120131:152550.161 In zbx_mem_destroy() descr:'string pool'
3826:20120131:152550.161 End of zbx_mem_destroy()
3826:20120131:152550.161 End of zbx_strpool_destroy()
3826:20120131:152550.161 End of free_configuration_cache()
3826:20120131:152550.162 In free_selfmon_collector() collector:0xb4ba1000
3826:20120131:152550.162 End of free_selfmon_collector()
3826:20120131:152550.162 Zabbix Server stopped. Zabbix 1.9.9 (revision

{ZABBIX_REVISION}

).

Comment by Andris Mednis [ 2012 Feb 10 ]

Problem reproduced and investigated.with zabbix_agentd from Zabbix 1.8.11rc1 on Debian GNU/Linux 6.0 (64-bit). More detailed document with proposed solution is in progress.

Comment by Andris Mednis [ 2012 Feb 16 ]

Signal handlers changed to reduce probability of process hang on exit in development branch svn://svn.zabbix.com/branches/dev/ZBX-3788

Comment by Andris Mednis [ 2012 Feb 16 ]

How the bug was investigated and proposed solutions - see attached document ZBX-3788_investigation1.odt

Comment by Alexander Vladishev [ 2012 Feb 16 ]

Great! Successfully tested!

Please review my changes in r25427.

Comment by Andris Mednis [ 2012 Feb 17 ]

Fixed in version pre-1.8.11 (revision 25433) and pre-1.9.10 (revision 25434).

Comment by richlv [ 2012 Feb 17 ]

i believe correct resolution should be "fixed", not "incomplete"

Comment by Oleksii Zagorskyi [ 2012 Feb 18 ]

Andris, great analysis, it was interesting to read.

Comment by Andris Mednis [ 2012 Feb 20 ]

Thanks for kind words! It was great to learn about "ltrace", which reveals much more than "strace". As of "Fixed" vs."Incomplete" - I believe the change, although significantly reduces probability of process hangup (especially for DebugLevel=4)), does not completely eliminate it. We saw how evil localtime() can be in a signal handler, but even printf() is not acceptable there. Properly designed sIgnal handlers do something simple and lightweight, leaving the real work to others.





[ZBX-3780] test of triggerexpression "Absolute difference between last and previous value NOT n" not working Created: 2011 May 04  Updated: 2017 May 30  Resolved: 2012 Feb 25

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.3 (alpha)
Fix Version/s: 1.8.11, 2.0.0rc1

Type: Incident report Priority: Trivial
Reporter: Martin H. Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: triggers, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

AMD Sempron 2600+ with 1,5GB RAM running Debian Squeeze - Linux version 2.6.32-5-686 (Debian 2.6.32-31)


Attachments: PNG File regexp.png    
Issue Links:
Duplicate
duplicates ZBX-4140 trigger evaluation is not work truly ... Closed

 Description   

While trying to add a new Triggerexpression i mentioned that the testfunction for the expression

"Absolute difference between last and previous value NOT n"

seems not to work.

Regardles of the value i enter, the result always is false. Please see Screenshot below.



 Comments   
Comment by Alexei Vladishev [ 2012 Feb 25 ]

It was fixed in ZBX-4140.





[ZBX-3735] password can be sent in http GET Created: 2011 Apr 18  Updated: 2020 Jul 16  Resolved: 2012 Feb 26

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

Type: Defect (Security) Priority: Major
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: security
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File general.login.php.patch    

 Description   

i haven't figured out exact steps to reproduce this, but every now and then i can get password sent as http GET variable, which doesn't seem to be too secure.

an example url :

index.php?request=&name=Admin&password=zabbix&autologin=1&enter=Sign+in



 Comments   
Comment by Joseph Bueno [ 2012 Feb 17 ]

Problem still present in 1.9.9
How to reproduce:

  • In login page fill Username and Password fields and click Sign in.

In Apache access log:
GET /zabbix/index.php?request=&name=XXXXXX&password=XXXXX&enter=Sign+in

In 1.8 versions, Zabbix correctly used POST instead of GET.

Comment by Joseph Bueno [ 2012 Feb 17 ]

I have attached a patch that sets form login method to POST.
It seems to fix this problem.

Comment by Alexei Vladishev [ 2012 Feb 26 ]

Thanks for the patch, great work.

Fixed in pre-1.9.10, revision 25607.





[ZBX-3688] item's status is error when network error with using dynamic index Created: 2011 Apr 04  Updated: 2017 May 30  Resolved: 2012 Feb 20

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: 1.8.3
Fix Version/s: 1.8.11, 2.0.0rc1

Type: Incident report Priority: Trivial
Reporter: hiromichi nakagawa Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: snmp, snmpdynamicindex
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS, MySQL, zabbix 1.8.3


Issue Links:
Duplicate

 Description   

item's status is error when network error with using dynamic index.
but item's status is not error when network error without using dynamic index.
different result in normal oid or dynamic index.

source:
checks_snmp.c
get_value_snmp()
[using dynamic index]
snmp_get_index function returned NETWORK_ERROR when snmp timeout.
but parent get_value_snmp returned NOTSUPPORTED.

[normal oid]
get_value_snmp returned NETWORK_ERROR in normal oid.



 Comments   
Comment by Alexander Vladishev [ 2012 Feb 20 ]

Fixed in the version pre-1.8.11 (revision 25489) and pre-1.9.10 (revision 25490)





[ZBX-3588] incorrect total time reported in debug Created: 2011 Mar 03  Updated: 2017 May 30  Resolved: 2012 Apr 12

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: 2.0.0rc1

Type: Incident report Priority: Major
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: codequality, debugging
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBX-4872 Wrong debug Total time in charts.php Closed

 Description   

on some pages, "total time" in debug output is a bit wrong. for example, open history or simple graph, look at debug output :

Total time: 1299145896.3394



 Comments   
Comment by richlv [ 2011 May 31 ]

still the same in trunk rev 19930

Comment by richlv [ 2012 Apr 11 ]

ZBX-4872 might have a hint at what's wrong

Comment by Alexey Fukalov [ 2012 Apr 12 ]

svn://svn.zabbix.com/trunk 26002





XML export/import in 2.0 (ZBX-4867)

[ZBX-3531] Export/import basic functionality Created: 2011 Feb 14  Updated: 2012 Apr 11  Resolved: 2012 Apr 11

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

Type: Sub-task Priority: Blocker
Reporter: Oleksii Zagorskyi Assignee: Alexey Fukalov
Resolution: Fixed Votes: 12
Labels: xml
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

trunk rev 17688


Attachments: Text File export.inc.php.patch     XML File template1b-cut7.xml    
Issue Links:
Duplicate
duplicates ZBX-4552 Importing Linked Template Changes Ite... Closed
is duplicated by ZBX-3213 Export template with low-level discov... Closed
is duplicated by ZBX-4236 xml export and import does not work i... Closed
is duplicated by ZBX-1326 importing same host does not update h... Closed
is duplicated by ZBX-4702 Dynamic item missing in the exported ... Closed
is duplicated by ZBX-4723 There is no check in API for object h... Closed
is duplicated by ZBX-3060 can't import maps that include other ... Closed
is duplicated by ZBX-3418 Applications not used by items are no... Closed
is duplicated by ZBX-3720 Host export and (or) import are broke... Closed
is duplicated by ZBX-3723 Templates export and (or) import is b... Closed
is duplicated by ZBX-3945 Need to export name of the valuemap i... Closed
is duplicated by ZBX-4030 Not exporting items to XML Closed
is duplicated by ZBX-4770 Does not work import / export from xm... Closed
is duplicated by ZBX-1921 date format in xml export sub-optimal Closed
is duplicated by ZBX-3631 XML import/export ignores/omits value... Closed
is duplicated by ZBX-3393 Scalar items in exported xml are in r... Closed

 Description   

Try to export a template or host - see to the XML.
Maybe a problem related to the multiple host interfaces.

Specs: http://zabbix.org/wiki/Docs/specs/ZBX-3531



 Comments   
Comment by justin phelps [ 2011 Apr 09 ]

I've found this bug too.
export template returns an empty XML file.

I've converted the old Zapcat Java_Template to the new jmx format.
I've also gotten rid of the old JVM stats (e.g., MemoryPool,name=PS Old Gen, etc) to the new thread model.
If this gets fixed I'll submit it.

Comment by Alexey Serba [ 2011 Aug 09 ]

Is there any workaround to make export template feature work in 1.9.4?

Comment by richlv [ 2011 Aug 10 ]

no, at this time xml export is not available in trunk

Comment by Alexey Serba [ 2011 Aug 10 ]
  • Is it possible to migrate db data to previous release and use export feature there?
  • Any ideas why it's failing? Is it possible to patch scripts / sql queries somehow?
  • Is there some external tool (script) to retrieve this information out of database and import into another? SQL dump or anything?
Comment by richlv [ 2011 Aug 10 ]

1. not really
2. data model changed, especially because of multiple interface support
3. if it's exactly same schema, sure, just dump the db. if not, nope.

anyway, it's alpha software... did you have any cats ?

Comment by Alexey Serba [ 2011 Aug 10 ]

2. data model changed, especially because of multiple interface support

Has Export/Import XML format changed with 2.0 release? If I manually generate XML file in 1.8.x format would Import work?

Comment by richlv [ 2011 Aug 10 ]

last i tried importing 1.8 xml format worked in trunk

Comment by Alexey Serba [ 2011 Aug 16 ]

Here's attached patch for export.inc.php script to fix export template feature (tested in 1.9.4). It seems the problem is that XML export class is expecting hosts attribute for items, but API::Item is returning hostid. I'm not sure if it's proper long term fix or if it breaks some other functionality, but it works for me. Attaching it in case others struggling with this bug and desperately waiting for some workaround.

Comment by Oleksii Zagorskyi [ 2011 Aug 16 ]

Alexey, regarding to your patch "export.inc.php.patch" maybe you are wrong in your last comment?
I mean need to swap hosts and hostid in your last comment.

Comment by Alexey Serba [ 2011 Nov 29 ]

Alexey, regarding to your patch "export.inc.php.patch" maybe you are wrong in your last comment?
I mean need to swap hosts and hostid in your last comment.

I'm not an expert in Zabbix codebase but with applied attached patch "export template" feature was working correctly in 1.9.4

-	$item['hosts'] = zbx_toHash($item['hosts'], 'hostid');
-	if(isset($item['hosts'][$host['hostid']])){
+	#$item['hosts'] = zbx_toHash($item['hosts'], 'hostid');
+	if(isset($item['hostid']) && $item['hostid'] == $host['hostid']){

So there's "hostid" mapping in "$item" hash map instead of "hosts".

Comment by Alexei Vladishev [ 2011 Dec 19 ]

A new XML specification document: http://zabbix.org/wiki/Docs/specs/ZBX-3531

Comment by Igor Danoshaites (Inactive) [ 2012 Feb 28 ]

(1). "ERROR: Import failed" when importing xml with trigger dependencies in it.

Details:

Created: Trigger "1trigger1" on "FULL_TEST2".
Created: Trigger "2trigger2" on "FULL_TEST2".
Incorrect value "" for unsigned int field "triggerid_up".

Dependency is defined in the following way:

<dependency>
<name>1trigger1</name>
<expression>

{FULL_TEST2:key1.last(0)}

>10</expression>
</dependency>

<Vedmak> RESOLVED
<Igor> CLOSED

Comment by Alexey Fukalov [ 2012 Feb 28 ]

(2). When trying to export network map is created xml file with the following content:

Fatal error</b>: Call to undefined function prepareMapExport() in <b>C:\Program Files\Xampp\xampp\htdocs\Zabbix\ZBX-3531\frontends\php\include\classes\export\CConfigurationExport.php</b> on line <b>553</b><br />

<Vedmak> RESOLVED
<Igor> CLOSED

Comment by Alexey Fukalov [ 2012 Feb 28 ]

(3). When importing screen appears message "Imported successfully", but in the details are visible the following errors:

Details
Imported successfully

Error in query [SELECT t.screenitemid,si.screenid FROM screens_items t WHERE (si.screenid IN ('2')) ] [Unknown column 'si.screenid' in 'field list']
mysql_fetch_assoc() expects parameter 1 to be resource, boolean given [include\db.inc.php:560]
mysql_free_result() expects parameter 1 to be resource, boolean given [include\db.inc.php:561]
Error in query [SELECT t.screenitemid,t.x,t.y,t.screenid,si.screenid FROM screens_items t WHERE 1=0 ] [Unknown column 'si.screenid' in 'field list']
mysql_fetch_assoc() expects parameter 1 to be resource, boolean given [include\db.inc.php:560]
mysql_free_result() expects parameter 1 to be resource, boolean given [include\db.inc.php:561]

<Vedmak> RESOLVED
<Igor> CLOSED

Comment by Igor Danoshaites (Inactive) [ 2012 Feb 28 ]

(4). Error when trying to import netw map:

ERROR: Import failed
Cannot find icon map "Array" for map "map1".

<Vedmak> this should be already fixed, is this in last branch revision?
<Igor> No, that was not the latest revision. Now in rev #25676 this is working fine.

<CLOSED>

Comment by Igor Danoshaites (Inactive) [ 2012 Feb 29 ]

(5) Not a bug, but ... improvement

Would be nice to have button for unchecking all checkboxes (maybe 2 buttons- one for "Update existing" and second for "Add missing" group of checkboxes) in the import form. Now we have 20 checkboxes in the Import form and by default all of them (except "Images" buttons) are checked.
So, in order to import only graphs, we need to uncheck at least all checkboxes and then select graphs.

Yesteday Vedmak proposed the following idea: by default uncheck all checkboxes and let user to choose what to import by checking the appropriate checkbox.

<Vedmak> RESOLVED

<Igor> CLOSED, has been implemented several checkboxes in the import form for hosts, host groups, templates, items, triggers, etc and separately for "update existing" and "add missing" actions.

Comment by Igor Danoshaites (Inactive) [ 2012 Feb 29 ]

(6). When trying to import template with items, triggers, graphs, screens and discovery rules in it, finally on the screen will be visible "Imported successfully", will be created items, triggers, graphs, screens, but:

(6.1). Discovery rules will be not created (but they are defined in the xml file (if required, I can provide such xml file for validation);
(6.2). In the details will be visible the following error: Undefined index: host [include\classes\import\formatters\C20ImportFormatter.php:174]

dev branch rev # 25682.

<Vedmak> RESOLVED

<Igor> OK, now this is resolved, but item/trigger/graph prototypes are still not exported (they does not exist in the result xml) when exporting template, as a result are exported only items, triggers, graphs, screens, discovery rules without item & trigger & graph prototypes.

<Vedmak> RESOLVED

<Igor> Sorry, but in dev branch rev #25695 this is still not working, for me there are NO item/trigger/graph prototypes in discovery rule after importing such template. (as discussed, this occurs in case when there is also one more empty drule, without prototypes and in the export xml file will be only this empty discovery rule).

<Vedmak> ye, there was problem, strange i couldn't reproduce it earlier, RESOLVED

<Igor> Nice, now this is working fine! CLOSED

Comment by Igor Danoshaites (Inactive) [ 2012 Feb 29 ]

(7). ERROR: Import failed

Details: Cannot find icon "open_source" for map "map2_in_host".

How to reproduce: Import previously exported map with icon image inside it, then delete this image and map from the Zabbix config.
When importing that map will occur above mentioned error.

<Vedmak> Were "Images" checkboxes checked in import form?

<Igor> Yes, seems that I forgot to select these checkboxes. Now double checked - it is working fine, icon images and bgimages are imported/exported fine.

<Igor> CLOSED

Comment by Igor Danoshaites (Inactive) [ 2012 Mar 01 ]

(8). ERROR: Cannot add trigger

Details:
Created: Trigger prototype "tr10" on "T2".
Cannot implode expression "

{13753}

=10".

Occurs when trying to add trigger prototype to the second discovery rule in template.

<Igor> OK, the same problem is in trunk (rev 25720) and there is already created ZBX issue for this problem: ZBX-4647.

Closing this problem nr. 8.

<Igor> CLOSED

Comment by Igor Danoshaites (Inactive) [ 2012 Mar 01 ]

(9). ERROR: Import failed
Details: No permissions to referred object or it does not exist!

This error occurs when trying to import only graphs (in the import form has been selected only "graphs") and using previously created export file for hosts.
The same error also occurs when this graph has been deleted before that.

<Vedmak> RESOLVED

<Igor> CLOSED (both for hosts and templates)

Comment by Sergey Syreskin [ 2012 Mar 01 ]

Error message should be more descriptive.

Comment by Igor Danoshaites (Inactive) [ 2012 Mar 02 ]

(10). ERROR: Import failed
Details: Cannot find screen "Zabbix server" used in screen "screen1".

Error appears when trying to import xml file with exported screen "screen1" that contains another screen "Zabbix server" inside it.
In the xml file there is such screen_item with name="Zabbix server", but import is not working.

<Vedmak> RESOLVED

<Igor> CLOSED

Comment by Igor Danoshaites (Inactive) [ 2012 Mar 02 ]

(11). ERROR: Import failed
Details: No permissions to referred object or it does not exist!

This error occur when trying to import screen in which there is map from another host and also in case when there are graphs/simple graphs from the same /another host.

<Vedmak> RESOLVED

<Igor> CLOSED

Comment by Igor Danoshaites (Inactive) [ 2012 Mar 02 ]

(12). ERROR: Import failed
Details: Cannot find map "map3" used in map map1".

Error occurs because map "map3" does not exist any more (has been deleted from the config). In xml file there are no configuration of that map "map3".

The same problem also appears for screens: when in one screen there is another screen, will appear the following error:

ERROR: Import failed
Cannot find screen "screen2" used in screen "screen1".

<Igor> For this problem has been created separate issue ZBX-4723.

Comment by Igor Danoshaites (Inactive) [ 2012 Mar 05 ]

(13). When importing xml file from 1.8 (v.1.8.9rc1) to 2.0, in the Details appears the following message:

Imported successfully
Details: No permission for Template [abc]

In the result host and template has not been created.

<Igor> CLOSED, there was no such template on the destination host.

Comment by Igor Danoshaites (Inactive) [ 2012 Mar 05 ]

(14). When importing xml file from 1.8 (v.1.8.9rc1) into 1.9.10 appears the following error:

ERROR: Import failed
Updated: Item "agent.ping" on "H3".
Updated: Item "snmpv1_item" on "H3".
Created: Item "db_item" on "H3".
Created: Item "2_snmpv3 item" on "H3".
Created: Item "1_snmpv2 item" on "H3".
Updated: Item "key2" on "H3".
Updated: Item "Outgoing traffic on interface $1" on "H3".
Updated: Item "proc.num[apache2,,]" on "H3".
Created: Item "ssh item" on "H3".
No interface found.

<Vedmak> RESOLVED

<Igor> CLOSED, this occurred when importing IPMI items.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 05 ]

(15) I think the calls to CItemGeneral::checkExistingItems() should be moved from createReal() to checkInput()

<Vedmak> agree, RESOLVED

<pavels> I don't think we need two separate methods, it can be implemented in one. Just check if the passed item has an "itemid" field, if it does - check that it's itemid is different from the existing items. See CUserMacro::checkIfHostMacrosDontRepeat() as an example.

<Vedmak> RESOLVED

<pavels> CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 05 ]

(16) The new code really needs more comments.

<pavels> A couple of "TODO: comment:" comments left in CConfigurationExport.php

<Vedmak> RESOLVED

<pavels> CLOSED.

Comment by Igor Danoshaites (Inactive) [ 2012 Mar 06 ]

(17). After importing xml file with value mappings from 1.8.9rc1 into 1.9.10, value mapping will be not created, but in the exported xml file value mapping exists.

<Vedmak> in 1.8 we have incorrect value map reference, export has real db id which is incorrect. From 2.0 -> 2.0 should work.

<Igor> Import / export 2.0->2.0 with valuemaps is working fine. In v1.8.x we need to fix issue devoted to valuemaps in v1.8.x: ZBX-4723

Comment by Igor Danoshaites (Inactive) [ 2012 Mar 06 ]

(18). Screen import 1.8 ->2.0:

ERROR: Import failed
No host group ID provided for screen element.

In the xml file there are really no "hostgroupid" element.
Can provide export xml file.

<Igor> Fixed in trunk, CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 06 ]

(19) the CXmlImportReader::read() method has old translation strings.

<Vedmak> RESOLVED

<pavels> CLOSED

Comment by Igor Danoshaites (Inactive) [ 2012 Mar 07 ]

(20). Does not directly relates to import/export, BUT in dev branch ZBX-3531, when using dynamic item in the screen, there is not possible to set checkbox "Dynamic item" to the "checked" state, after saving, it will be reset to the "unchecked" state and in the xml file always will be "0" value: <dynamic>0</dynamic>
If I in the xml file set dynamic=1 and then import such xml file, then item will be dynamic.

But in trunk branch can check / un-check this button and save screen configuration, but in trunk in the result xml file there are NO parameter "dynamic" at all.

Similar to ZBX-4702.

<Igor> In the latest trunk rev #25871, option "Dynamic item" always will be checked, not possible to uncheck it. Problem with screen cell config form. This will be fixed in trunk under the issue ZBX-4702.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 07 ]

(21) CConfigurationImport::processImages() performs API result checks which are unnecessary since we are expecting the API to throw exceptions.

<Vedmak> RESOLVED

<pavels> CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 07 ]

(22) Shouldn't icon maps and other stuff be resolved through the CImportReferencer instead of plain API calls in CConfigurationImport::processMaps()

<Vedmak> RESOLVED

<pavels> CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 07 ]

(23) Shouldn't there be something under the SYSMAP_ELEMENT_TYPE_IMAGE case in CConfigurationImport::processMaps()?

<Vedmak> No, it shouldn't be there at all RESOLVED

<pavels> CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 07 ]

(24) I think "missed" and "exists" is a poor choice for option names, it's really unclear what they mean when you look at the code. I suggest you rename them to "add" and "update" respectfully.

<Vedmak> "add" and "update" are not much better imo, because it's not clear what will be added and what updated. Probably best would be "addMissing" "updateExisting", what do you think?

<pavels> Yes, that will work too.

<Vedmak> RESOLVED

<pavels> CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 07 ]

(25) Shouldn't CConfigurationImport::processTemplateScreens() check for screen options before saving the objects?

<Vedmak> added separate rules for template screens

<pavels> The "template_screens", "discoveryrules" and "template_linkages" options should be converted to camel case.

<Vedmak> RESOLVED

<pavels> CLOSED.

Comment by Igor Danoshaites (Inactive) [ 2012 Mar 07 ]

(26). Now, when using rev #25859 from dev branch ZBX-3531 and when importing host, appears the following error:

ERROR: Import failed

Illegal offset type [include\classes\import\CConfigurationImport.php:242]
Illegal offset type [include\classes\import\formatters\C20ImportFormatter.php:209]
Illegal offset type [include\classes\import\CConfigurationImport.php:509]
Illegal offset type in isset or empty [include\classes\import\CImportReferencer.php:70]
trim() expects parameter 1 to be string, array given [api\classes\CHost.php:1326]
No groups for host "Array".

<Vedmak> RESOLVED

<Igor> CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 07 ]

(27) CConfigurationExportBuilder::formatMacros() should use order_macros() instead of order_result() for sorting macros. May this problems occurs in some other places as well.

<Vedmak> RESOLVED

<pavels> CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 07 ]

(28) I guess the old export code can be removed from zbxXML.

<Vedmak> RESOLVED

<pavels> You could also me zbxXML to a separate file.

<pavels> CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 07 ]

(29) The ArrayHelper class should be moved to a separate file in the include/classes/helpers folder.

<Vedmak> RESOLVED

<pavels> CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 07 ]

(30) CConfigurationImport::import() should now throw Exceptions inside a try/catch clause.

<Vedmak> RESOLVED

<pavels> CLOSED.

Comment by Igor Danoshaites (Inactive) [ 2012 Mar 08 ]

(31) ERROR: Import failed

Details:
Undefined index: templates [include\classes\import\CConfigurationImport.php:198]Invalid argument supplied for foreach() [include\classes\import\CConfigurationImport.php:198]Updated: Item "jmx[“java.lang:type=Memory”,”HeapMemoryUsage.used”]" on "T_jmx".Undefined index: flags [api\classes\CItemGeneral.php:590]Item with key "jmx[“java.lang:type=Memory”,”HeapMemoryUsage.used”]" already exists on "test_ZBX-4552" as an item.

Error occurs when trying to import template with jmx item (T_jmx:jmx[“java.lang:type=Memory”,”HeapMemoryUsage.used”]) second time.

<Vedmak> RESOLVED

<Igor> CLOSED, can not reproduce such error any more.

Comment by Igor Danoshaites (Inactive) [ 2012 Mar 08 ]

(32) New problem appears when trying to update item in the template linked to the host:

ERROR: Cannot update item

Details:
Updated: Item "agent.ping" on "T_agent".
Undefined index: flags [api\classes\CItemGeneral.php:590]
Item with key "agent.ping" already exists on "test_ZBX-4552" as an item. [CItem.update -> CItem.inherit -> CItemGeneral.prepareInheritedItems -> CItemGeneral.errorInheritFlags]

<Vedmak> RESOLVED

<Igor> CLOSED

Comment by Igor Danoshaites (Inactive) [ 2012 Mar 08 ]

(33) Error "Undefined index: templates [include\classes\class.cpagefilter.php:206]" in the bottom of the Conf->Hosts->Triggers page after updating trigger in the template, but trigger has been updated successfully.

<Vedmak> RESOLVED

<Igor> CLOSED, but appeared new problem, please see below

Comment by Igor Danoshaites (Inactive) [ 2012 Mar 08 ]

(34) Warning "Use of undefined constant S_GRAPHS_BIG - assumed 'S_GRAPHS_BIG' [graphs.php:405]" in the bottom of the Configuration->Templates->Graphs report, also after "Configuration of graphs" record appears non-replaced valuable:

S_GRAPHS_BIG
Group Host
Displaying 0 of 0 found

<Vedmak> RESOLVED

<Igor> CLOSED

Comment by richlv [ 2012 Mar 09 ]

(35) i'd suggest changing "Template linkages" to "Template linkage" - this word doesn't sound too well in plural, and the plural here isn't really needed

<Vedmak> RESOLVED

<richlv> CLOSED

Comment by richlv [ 2012 Mar 09 ]

(36) invalid input file gets me "Incorrect import reader type." - if that's our message, can we make it somewhat... more meaningful ?

<Vedmak> RESOLVED

<richlv> apparently resolution was changing the message to something like :
Unsupported import file extension "txt".

CLOSED

Comment by richlv [ 2012 Mar 09 ]

(37) dev branch rev 25917. see https://support.zabbix.com/secure/attachment/18321/template1b-cut7.xml
importing it fails with "Missing item [:] for host [Template_Windows2]", which doesn't seem to be a very valid item reference.

<Vedmak> Strange, for me in latest revision it gives message "Item [Template_Windows2:network[3]] does not exists.".
Anyway, how message should look like? 'Item "key" on host "host" does not exists for graph "graph".' or 'Graph "graph": missing item "key" on host "host".' or ...?

<Igor> For me the same "Item "Template_Windows2:network[3]" does not exists." error when trying to import this template.

<Vedmak> btw you have
<ymin_item_key>:</ymin_item_key>
<ymax_item_key>:</ymax_item_key>
in xml.

<richlv> oh, nice catch. i'd suggest messages that tell where the invalid item reference was found.
item "key", referenced in trigger "name" does not exist
item "key", referenced in graph "name" items, does not exist
item "key", referenced in graph "name" y axis maximum limit, does not exist
item "key", referenced in graph "name" y axis minimum limit, does not exist

any other location i missed ?

(feel free to adapt the messages to our style / better grammar )

<richlv> ok, after some discussion with Vedmak, new suggestions :
Trigger "name" item reference: item with key "key" on host "host" not found.
Graph "name" item reference: item with key "key" on host "host" not found.
Graph "name" y axis maximum limit: item with key "key" on host "host" not found.
Graph "name" y axis minimum limit: item with key "key" on host "host" not found.

<richlv> see (38), CLOSED

Comment by richlv [ 2012 Mar 09 ]

(38) see (37). error messages like these should provide context information - in this case, if we had both triggers and custom graphs in an xml, we wouldn't know which type is causing this message. the message should print out at least the context where we are encountering the data that it doesn't like.

<richlv> split out as ZBX-4853, CLOSED

Comment by richlv [ 2012 Mar 09 ]

(39) agent items in the exported xml still have things like allowed_hosts, snmp parameters, username/password, key and maybe other incorrect fields
trapper items have ipmi_sensor, snmp parameters, username/password, key and maybe other incorrect fields.

looks like all exported item fields should be reviewed

<Vedmak> All fields should be reviewed, but we decided that at first step we export everything. RESOLVED

<richlv> split out as ZBX-4854 - CLOSED

Comment by richlv [ 2012 Mar 09 ]

(40) documentation

<richlv> split out as ZBX-4855, CLOSED

Comment by richlv [ 2012 Mar 09 ]

(41) 'No icon for map element "New element"' - trailing dot is missing

<Vedmak> RESOLVED

<richlv> CLOSED

Comment by richlv [ 2012 Mar 09 ]

development branch is svn://svn.zabbix.com/dev/ZBX-3531

Comment by Igor Danoshaites (Inactive) [ 2012 Mar 09 ]

(42) When deleting graph from the host:

Deleted: Graph "graph1" on "test_ZBX-4552".
Use of undefined constant S_GRAPHS_DELETED - assumed 'S_GRAPHS_DELETED' [graphs.php:287]
Use of undefined constant S_CANNOT_DELETE_GRAPHS - assumed 'S_CANNOT_DELETE_GRAPHS' [graphs.php:287]

But in the result graph has been deleted.

<Vedmak> RESOLVED

<Igor> CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2012 Mar 09 ]

(43) In CConfigurationImport replace static variables with object properties.

<Vedmak> RESOLVED

<pavels> CLOSED.

Comment by Igor Danoshaites (Inactive) [ 2012 Mar 09 ]

(44) When importing xml with host configuration with valuemap definition, appears the following error: (can be visible in the "Details" of the import process, although import was successful, host has been created, but value map has not been created):

Undefined index: valuemap [include\classes\import\CConfigurationImport.php:695]

<Vedmak> RESOLVED

<Igor> CLOSED

Comment by Alexey Fukalov [ 2012 Mar 13 ]

svn://svn.zabbix.com/trunk 26002

Comment by Igor Danoshaites (Inactive) [ 2012 Mar 13 ]

(45). At this moment (trunk rev #26007), after merging src files from this DEV branch to the trunk branch, exported files do not have correct names.
Earlier there was "zbx_screens_export.xml" for the screen export, "zbx_hosts_export.xml" for host export, "zbx_templates_export.xml" for template export, BUT now for all objects there will be created files with "zbx_export.xml" title.
Before merging this was working fine.

<Vedmak> RESOLVED

<Igor> CLOSED, now in dev branch we will have files with names like zbx_export_hosts.xml, zbx_export_templates.xml, zbx_export_screens.xml, zbx_export_maps.xml.

Comment by Alexey Fukalov [ 2012 Mar 13 ]

(46) [GUI]
Errors in action configuration form.

<Vedmak> RESOLVED

<Igor> CLOSED, now there are no anymore undefined index errors In Conf->Actions report.
<Eduard> CLOSED

Comment by richlv [ 2012 Mar 19 ]

there are several still open sub-problems, reopening

Comment by richlv [ 2012 Mar 21 ]

(47) S_GRAPH_TEMPLATE_HOST_CANNOT_OTHER_ITEMS_HOSTS_SMALL was removed from the old english locale file, but it's still used in api/classes/CGraphPrototype.php

<Vedmak> fixed in rev. 26318.

<richlv> CLOSED

Comment by richlv [ 2012 Mar 21 ]

(48) S_GRAPH_ITEM was removed from the old english locale file, but it's still used in popup_gitem.php

<Vedmak> fixed in rev. 26318.

<richlv> CLOSED

Comment by richlv [ 2012 Apr 10 ]

remaining subproblems have been split out in new issues, closing

Comment by Alexey Fukalov [ 2012 Apr 11 ]

Reopen to rename issue.





[ZBX-3528] fix numbering of long lists with letters all over the frontend Created: 2011 Feb 11  Updated: 2017 May 30  Resolved: 2012 Mar 13

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.4
Fix Version/s: 2.0.0rc1

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

Attachments: PNG File condition-numbering.png    

 Description   

Same as ZBX-3457, but everywhere in the frontend. For instance, condition-numbering.png is how editing of conditions looks in trunk.



 Comments   
Comment by richlv [ 2011 Feb 11 ]

preferably, with a single piece of code doing that, not copypasting same code everywhere

Comment by Alexey Fukalov [ 2012 Mar 09 ]

Dev branch: svn://svn.zabbix.com/branches/dev/ZBX-3528

Comment by Alexander Vladishev [ 2012 Mar 12 ]

(1) Please review my changes in r25960

<Vedmak> CLOSED

Comment by Alexander Vladishev [ 2012 Mar 12 ]

(2) Trigger expression builder should use a new function

<Vedmak> RESOLVED

<Sasha> CLOSED

Comment by Alexey Fukalov [ 2012 Mar 13 ]

svn://svn.zabbix.com/trunk 26042





[ZBX-3522] Need check length message user history Created: 2011 Feb 09  Updated: 2017 May 30  Resolved: 2012 Mar 13

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

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

Attachments: JPEG File user_history.jpg    

 Description   

ociexecute() [<a href='function.ociexecute'>function.ociexecute</a>]: ORA-12899: value too large for column "ZABBIX_TEST"."USER_HISTORY"."URL5" (actual: 295, maximum: 255)[/var/www/zabbix/include/db.inc.php:552]
SQL error [ORA-12899: value too large for column "ZABBIX_TEST"."USER_HISTORY"."URL5" (actual: 295, maximum: 255)] in [UPDATE user_history SET url5='latest.php?groupid=4&hostid=31159&select=%D0%92%D1%80%D0%B5%D0%BC%D1%8F+%D0%BF%D0%BE%D1%81%D0%BB%D0%B5%D0%B4%D0%BD%D0%B5%D0%B3%D0%BE+%D0%BE%D0%B1%D1%80%D0%B0%D1%89%D0%B5%D0%BD%D0%B8%D1%8F+%D0%BF%D1%80%D0%BE%D0%BA%D1%81%D0%B8+%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B0&open=1&applicationid=178047' WHERE userid=3]



 Comments   
Comment by Alexey Fukalov [ 2012 Mar 09 ]

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

Comment by Alexander Vladishev [ 2012 Mar 09 ]

Great! Successfully tested.

Comment by Alexey Fukalov [ 2012 Mar 09 ]

svn://svn.zabbix.com/branches/1.8 25947
svn://svn.zabbix.com/trunk 25951

Comment by Alexander Vladishev [ 2012 Mar 13 ]

(1) in the trunk an user history is displayed incorrectly
https://support.zabbix.com/secure/attachment/18326/user_history.jpg

<Vedmak> RESOLVED
<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Mar 13 ]

Successfully tested!

Comment by Alexey Fukalov [ 2012 Mar 13 ]

svn://svn.zabbix.com/trunk 26038





[ZBX-3466] no error message when creating an item with no host Created: 2011 Jan 26  Updated: 2017 May 30  Resolved: 2012 Feb 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.4
Fix Version/s: 2.0.0rc1

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

Attachments: PNG File not-selected.png    
Issue Links:
Duplicate
duplicates ZBXNEXT-903 Redesign Configuration->Items Closed

 Description   

(1) When creating an item, it is possible to select no host. It would be nice if it would not be allowed (i.e., there would be no "Empty" button in the popup). It would also be nice if an error message would appear when trying to save such item.

(2) Click on an existing item, then click "Create item". In the provided item form no host is selected. It would be nice if the selected host would be the same as for the previously viewed item.



 Comments   
Comment by Aleksandrs Saveljevs [ 2011 Feb 24 ]

(3) When a host is selected through "Select", the list of available applications is not updated and is empty. It is thus impossible to create an item attached to already existing applications.

Comment by Eduards Samersovs (Inactive) [ 2012 Jan 26 ]

Resolved in ZBXNEXT-903

Comment by Alexei Vladishev [ 2012 Jan 30 ]

Reopening, should be closed only after proper testing.

Comment by Alexey Fukalov [ 2012 Feb 07 ]

(1) [GUI]
If we filter item list for group without host, then click "Create item" host won't be preselected in form, if we try to save item now, critical error appears and form is not shown.

<Eduard> RESOLVED

<Vedmak> CLOSED





[ZBX-3418] Applications not used by items are not exported Created: 2011 Jan 13  Updated: 2017 May 30  Resolved: 2012 Apr 03

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.4
Fix Version/s: 2.0.0rc1

Type: Incident report Priority: Major
Reporter: Konstantin Buravcov (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: xml
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Zabbix 1.8.4


Issue Links:
Duplicate
duplicates ZBX-3531 Export/import basic functionality Closed

 Description   

Applications not used by items are not exported

Steps to reproduce:

1. Create a host
2. Create an application inside it, but not assign it to any item
3. Export this host
4. No info about application in the result XML

Currently, applications are being exported only as item properties:

<item type="1" key="key[blabla]" value_type="3">
<description>snmp item</description>
...
<applications>
<application>appp</application>
</applications>
</item>

Turns out, it is not possible to prepare 100500 applications without using them and export the host - all applications will be lost.



 Comments   
Comment by richlv [ 2012 Apr 03 ]

this should be fixed now along with ZBX-3531





[ZBX-3373] Multiple host interfaces. GUI improvement. Created: 2011 Jan 03  Updated: 2017 May 30  Resolved: 2012 Feb 08

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

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

Issue Links:
Duplicate
duplicates ZBXNEXT-903 Redesign Configuration->Items Closed
is duplicated by ZBX-3467 it is possible to create an snmp item... Closed

 Description   

I'm not sure whether I'm right, but will share my thoughts.
When you create the Item, you have access to all types of interfaces. I think depending on the Item type selection (Agent, SNMPx, IPMI) GUI should filter available interfaces.
For the other Item types may show all interfaces - I do not know.

And in general, what influences the type of interface?

And one more thing - for the Item type of SNMPx, I think we can hide the "Select" button for Items key helper. Maybe for some others too.



 Comments   
Comment by Alexei Vladishev [ 2011 Jan 04 ]

Oleksiy, we plan to make significant usability review of Zabbix GUI before release of Zabbix 2.0. I do hope that such issues will be handled there. It will be done for all forms and pages in both monitoring and admin parts.

Comment by Eduards Samersovs (Inactive) [ 2012 Jan 25 ]

Resolved in ZBXNEXT-903

Comment by Oleksii Zagorskyi [ 2012 Jan 29 ]

Interesting how this issue could be closed as fixed (2012 Jan 25 12:48) if both my thoughts have been not implemented in the umbrella dev branch ZBXNEXT-903 (resolved at 2012 Jan 28 14:59) ?

<Eduard> Both? RESOLVED

<zalex> Yes, both! Read summary please:
1. Show only suitable interface(s) in the list of available interfaces.
2. Hide "Key" button for some item types.

1. Unresolved
2. tested r25098.
Select button should be available for "SNMP trap"
Should be reviewed list of item types where Select button should not be available.
For instance: for Database monitor, Zabbix trapper, External check, SSH agent, Telnet agent, JMX agent, Calculated I think the button could be hidden.
REOPENED

<Vedmak> Seems now both are fixed CLOSED

<zalex> Tested r25240 of ZBXNEXT-903
2. is fixed. Thanks, CLOSED
1. "Show only suitable interface(s) in the list of available interfaces." still is UNRESOLVED
REOPENED

<Vedmak> hmm, what list do you mean, in item form or somewhere else? Now in item form only suitable interface are shown depending on item type.

<zalex> yes, exactly. I mean list of available interfaces in the item edit/creation form. I still see all interfaces (different) for any item type. The same for latest trunk and latest ZBXNEXT-903 dev branch, just retested them again. I'm using Opera for Linux.

<Vedmak> So for example for SNMPv1 item type you can select Agent interface in dropdown?

<zalex> yes, exactly.

<zalex> So it seems it depends on browser, not working in:
Chromium (at least 6.0.3 in Linux)
Opera 11.52-61 (linux&windows)
IE8
Safari 5.1.2 <- the latest at the moment (windows)

<Eduard> RESOLVED

<zalex> Successfully tested in all possible browsers. It works, and I like how it works. TESTED.
Note (not a bug, just a note): only in the Opera and IE when I selected the "Type" dropdown and then I use keyboard up-down buttons to change item type -> I see how whole item form changes, including available interface, etc. In other bowers I have to use only mouse to see how the form changes.

<Vedmak> CLOSED





[ZBX-3330] excessive remembering of item filter parameters Created: 2010 Dec 22  Updated: 2017 May 30  Resolved: 2012 Feb 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.4rc2
Fix Version/s: 2.0.0rc1

Type: Incident report Priority: Major
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: itemconfigfilter, items, usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates ZBXNEXT-903 Redesign Configuration->Items Closed

 Description   

go to item config page, clear out host information and filter for unsupported items. go back to host configuration list, click on items for any host - so far so good.

click on any of the subfilter options - bam, item status filter gets resurrected suddenly. should not be.



 Comments   
Comment by Eduards Samersovs (Inactive) [ 2012 Jan 28 ]

Resolved in ZBXNEXT-903

Comment by Alexei Vladishev [ 2012 Jan 30 ]

Reopening, should be closed only after proper testing.

Comment by alix [ 2012 Jun 27 ]

for those suffering from the bug, here's one liner fix for 1.8.14 (should be compatible with pretty much any version of 1.8 branch): http://pastebin.com/raw.php?i=U3n3h8BZ





[ZBX-3304] item filter control visual discrepancy Created: 2010 Dec 17  Updated: 2017 May 30  Resolved: 2012 Feb 07

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

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

trunk rev 16226


Attachments: PNG File item_filter_buttons.png    
Issue Links:
Duplicate
duplicates ZBXNEXT-903 Redesign Configuration->Items Closed

 Description   

item configuration filter buttons "filter" & "reset" should be visually unified (although maybe the 'reset' one might have a faint red background or somesuch)



 Comments   
Comment by Alexey Fukalov [ 2011 Mar 29 ]

i like current style, button assumes we submit something, but Reset only clear fields.. and it's easy distinct them

Comment by richlv [ 2011 Mar 29 ]

hmm. can't agree
they look awfully different visually, are misaligned and it's not clear enough that they both are operation controls.

i'd say we should make them both buttons. if a visual distinction is needed, we could introduce/use some button colouring - similar to how we do in entity properties with that slightly yellowish border

Comment by Aleksandrs Saveljevs [ 2011 Mar 30 ]

Also note that "filter" in English can be both a noun and a verb. So when translating into Latvian you have to choose between either "Filtrs" or "Filtrēt". As far as I remember, both nouns and verbs are used in the frontend in different circumstances. Can something be done about distinguishing nouns from verbs?

<richlv> missing context function handled at ZBX-3271 (probably a blocker for 2.0 ?)

Comment by Eduards Samersovs (Inactive) [ 2012 Jan 28 ]

Resolved in ZBXNEXT-903

Comment by Alexei Vladishev [ 2012 Jan 30 ]

Reopening, should be closed only after proper testing.





[ZBX-3262] warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body Created: 2010 Dec 03  Updated: 2017 May 30  Resolved: 2012 Feb 02

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Installation (I)
Affects Version/s: 1.8.4rc2, 1.9.1 (alpha)
Fix Version/s: 1.8.11, 2.0.0rc1

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

autoconf 2.68


Attachments: Text File autoconf_warnings.txt    

 Description   

according to autoconf people, latest version of autoconf warns of problematic stuff that previous versions did not.
for zabbix, this results in quite a lot of warnings like this :

configure.in:167: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body

some suggestions regarding possible fix (note the backwards compatibility hint) : http://www.mail-archive.com/[email protected]/msg03055.html

full warning output attached



 Comments   
Comment by Alexei Vladishev [ 2012 Feb 02 ]

Resolved in development branch svn://svn.zabbix.com/branches/dev/ZBX-3262. Ready to test.

Comment by Oleksii Zagorskyi [ 2012 Feb 02 ]

Dev branch tested on FreeBSD 8.1 with autoconf-2.68 and automake-1.11.1
"bootstrap.sh" works successfully and silently !
Server configured and compiled successfully with: ./configure --enable-server --with-mysql --with-libcurl --with-unixodbc
Congratulations!

Comment by Alexander Vladishev [ 2012 Feb 02 ]

Tested successfully!

Please review my changes in r25155. (not all compilers understand such indents).

Comment by Alexei Vladishev [ 2012 Feb 02 ]

Fixed in 1.8.11rc1 and trunk, revision 25166.

Comment by Alexei Vladishev [ 2012 Feb 02 ]

Closed, I also set fixed versions correctly.





[ZBX-3074] in item list move status column to the left Created: 2010 Oct 05  Updated: 2017 May 30  Resolved: 2012 Mar 10

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

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


 Description   

It has been suggested that the "Status" column in item list be moved to the left, similarly to as it was done for trigger list.



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

Done. [RESOLVED]

Comment by Pavels Jelisejevs (Inactive) [ 2011 Nov 02 ]

Merged to /branches/1.8 revision r22874. CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2011 Nov 02 ]

Merged to trunk revision r22876.

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

in item and trigger list move status column to the right side in trunk

Comment by Pavels Jelisejevs (Inactive) [ 2011 Dec 01 ]

(1) the 'Status' column in the item table should be right from the 'Application' column.

<slava> in this case it's not rollback RESOLVED

<pavels> CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2011 Dec 01 ]

(2) I've replaced some old translation string. Please review my commit r23683. After that you can merge.
<slava> CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2011 Dec 01 ]

1.8 fix is TESTED.

Comment by richlv [ 2011 Dec 01 ]

(3) merge to 1.8 in rev 23694 added duplicate changelog entries that are not related to this branch. both merges should be carefully reviewed for other potential cases like that.
<Slava>CLOSED
also, (2) above has not been reviewed

<richlv> this has not been resolved. reason for unrelated changelog entries appearing should be found, and trunk merge should be reviewed

<Sasha> fixed in r23755 by Pave.l CLOSED

Comment by richlv [ 2011 Dec 11 ]

i was unsure what do about this issue, but i believe we can do slightly better with it

(4) changelog entry has not been added to the trunk changelog
or maybe it was... current trunk changelog contains 3 references to this issue, two of them exactly the same. 1.8 branch changelog entry for 1.8 is different from trunk changelog entry. i can't figure this all out
<Slava>This change we can found in Changes for 1.8.10rc1 . As i understand, if fixed both 1.8 and trunk version, in trunk we must write changes in 1.8 version changes ...??

<richlv> basically, the changelog part before 1.9 versions must match for trunk & 1.8 branch

<Sasha> CLOSED In rev. 25953 sections 1.8.10rc1 are identical

Comment by richlv [ 2011 Dec 12 ]

points (3), (4) and (5) must be resolved & verified still

Comment by Alexander Vladishev [ 2012 Mar 10 ]

Fixed in versions 1.8.10 r22876 and pre-1.9.10 r22875.





[ZBX-3060] can't import maps that include other maps Created: 2010 Sep 29  Updated: 2017 May 30  Resolved: 2012 Apr 03

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: 2.0.0rc1

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

Issue Links:
Duplicate
duplicates ZBX-3531 Export/import basic functionality Closed

 Description   

create two maps, add one to another, export them both to xml. delete them, try to import - that fails because the included map is not available (and it is not created even if it is the very first one in the xml)



 Comments   
Comment by richlv [ 2012 Apr 03 ]

this should be fixed now long with ZBX-3531





[ZBX-3007] there is no error when saving an overly long trigger expression Created: 2010 Sep 15  Updated: 2017 May 30  Resolved: 2012 Mar 11

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

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

Attachments: PNG File truncated-expression.png    

 Description   

When saving an overly long trigger expression (in my case, 12 items), the trigger expression is truncated (like shown in truncated-expression.png) and no error is shown.



 Comments   
Comment by richlv [ 2011 Nov 01 ]

trigger length validation issue also at ZBX-4302

Comment by Oleksii Zagorskyi [ 2011 Nov 01 ]

Unreal case but even if "parameter" of trigger function is > 255 symbols then it still will be stored without any errors but it will be trimmed in the DB (functions.parameter).
Tested in the 1.8.9rc1 (svn head).

Comment by richlv [ 2011 Nov 01 ]

not too unreal, we had somebody on irc create multiple triggers (i believe eventually it was a constructed regexp even...) because his regexpes were too long

Comment by Alexander Vladishev [ 2012 Mar 11 ]

Fixed in version pre-1.9.10 r24400 with ZBXNEXT-905





[ZBX-2813] polish editing of actions Created: 2010 Aug 03  Updated: 2017 May 30  Resolved: 2012 Feb 21

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.3rc3
Fix Version/s: 2.0.0rc1

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

Attachments: PNG File hosts-not-in-group.png     PNG File no-discovery-rules.png     JPEG File no_host_with_hostid_0.jpg    

 Description   

It is possible to add empty "Proxy" (see no_host_with_hostid_0.jpg), empty "Application" and empty "Node" (see no_app_or_node.png) to action conditions.



 Comments   
Comment by Aleksandrs Saveljevs [ 2010 Aug 04 ]

Also, see hosts-not-in-group.png. The triggers offered in the popup do not belong to hosts in group "Zabbix servers".

Comment by Aleksandrs Saveljevs [ 2010 Aug 09 ]

In discovery actions, when trying to select a proxy, no-discovery-rules.png is shown when there are no proxies defined. (See also ZBX-3100.)

Comment by Alexei Vladishev [ 2012 Feb 21 ]

It has been fixed in pre-2.0, won't be fixed in 1.8.x.





[ZBX-2679] frontend in network discovery allows larger IP range than server supports Created: 2010 Jul 12  Updated: 2017 May 30  Resolved: 2012 Feb 09

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: 1.8.3
Fix Version/s: 1.8.11, 2.0.0rc1

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


 Description   

in web interface I can input IP range with subnet mask 15 (maybe bigger not tested), but server support only 16 subnet mask.



 Comments   
Comment by Aleksandrs Saveljevs [ 2010 Dec 01 ]

It seems that we only support subnets from /16 to /32. Presumably, a /15 subnet was deemed too large.

Comment by richlv [ 2011 Aug 09 ]

(1) when fixing this in the frontend, this limit should also be documented

Comment by Alexander Vladishev [ 2012 Feb 02 ]

Alexey,

Please attach some examples. We only support IP ranges, for example 192.168.0.1-255,192.168.3.1-255. We don't support network discovery by mask.

<richlv> btw, cidr netmask support was supposed to be implemented in 1.8.0

<Sasha> Oops! I did it and have forgotten. ))

Comment by Alexey Pustovalov [ 2012 Feb 03 ]

Examples,
192.168.0.1/15
HostMin: 192.168.0.1
HostMax: 192.169.255.254

10.100.10.1/15
HostMin: 10.100.0.1
HostMax: 10.101.255.254

10.100.10.1/19
HostMin: 10.100.0.1
HostMax: 10.100.31.254

Comment by Alexander Vladishev [ 2012 Feb 08 ]

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

Comment by Alexander Vladishev [ 2012 Feb 08 ]

Updated documentation:
http://www.zabbix.com/documentation/1.8/manual/auto-discovery#network_discovery_rule
http://www.zabbix.com/documentation/2.0/manual/discovery/network_discovery/rule?&#rule_attributes

Comment by Alexey Fukalov [ 2012 Feb 09 ]

(1) [GUI]
Please review my change in rev. 25278.

<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Feb 09 ]

Fixed in version pre-1.8.11 (revision 25291) and pre-1.9.10 (revision 25292).





[ZBX-2662] mass actions partially reset item filter Created: 2010 Jul 07  Updated: 2017 May 30  Resolved: 2012 Feb 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: 2.0.0rc1

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

Issue Links:
Duplicate
duplicates ZBXNEXT-903 Redesign Configuration->Items Closed

 Description   

configuration -> hosts, click on "items". filter by key, perform some mass operation - "key" field is cleared in the filter.

similar to:
ZBX-1327 (paging is reset)
ZBX-2516 (subfilter is reset)



 Comments   
Comment by Eduards Samersovs (Inactive) [ 2012 Jan 26 ]

Resolved in ZBXNEXT-903

Comment by Alexei Vladishev [ 2012 Jan 30 ]

Reopening, should be closed only after proper testing.





[ZBX-2631] confusing flexible interval configuration Created: 2010 Jun 30  Updated: 2017 May 30  Resolved: 2012 Jan 31

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: 2.0.0rc1

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

Issue Links:
Duplicate
duplicates ZBXNEXT-903 Redesign Configuration->Items Closed

 Description   

flexible interval time input box is labeled as "Delay".
this is confusing, because it gives an impression that value entered here would be added to the normal interval, but it is actually overridden (at least according to the manual).

this label should be changed to "Interval", "Override interval" or so.



 Comments   
Comment by Alexey Fukalov [ 2010 Jul 13 ]

does label is nedded there at all?
at the left part of form there is written about interval..

<Eduard> We with Richard decided what Label is needed.

Comment by Eduards Samersovs (Inactive) [ 2012 Jan 25 ]

Resolved in ZBXNEXT-903

Comment by Oleksii Zagorskyi [ 2012 Jan 26 ]

Closed again.

Comment by Alexei Vladishev [ 2012 Jan 30 ]

Reopening, should be closed only after proper testing.

Comment by Alexei Vladishev [ 2012 Jan 31 ]

Works as expected in ZBXNEXT-903.





[ZBX-2604] unsupported items not marked as such on proxied hosts Created: 2010 Jun 23  Updated: 2017 May 30  Resolved: 2012 Feb 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: 1.8.3
Fix Version/s: 2.0.0rc1

Type: Incident report Priority: Major
Reporter: Petrov Vladimir Assignee: Unassigned
Resolution: Fixed Votes: 4
Labels: proxy
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

FreeBSD 8.0, Zabbix Server v1.8.3 (revision 12889) (29 March 2010), Zabbix Proxy v1.8.3 (revision 12889) (29 March 2010),Zabbix Agent (daemon) v1.8.3 (revision 12889) (29 March 2010)


Issue Links:
Duplicate
is duplicated by ZBX-4306 Item status incorrect in the zabbix s... Closed
is duplicated by ZBX-3293 unsupported items monitored through p... Closed
is duplicated by ZBX-3421 unsupported items not marked as such ... Closed

 Description   

If host is monitored through proxy the status item of host not changed in web interface when item check became not supported, it's allways active, but in zabbix_proxy log i find
1063:20100623:122058.018 Item [kdata:check_share.pl[kData]] error: Not supported by Zabbix Agent



 Comments   
Comment by richlv [ 2011 Aug 30 ]

note that this seems to be different from ZBX-1061 - that one is about 'status' item, this is about item "not supported" status

Comment by Alexander Vladishev [ 2012 Feb 07 ]

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

Comment by Alexei Vladishev [ 2012 Feb 17 ]

Tested, everything works perfectly. It's good that we send status & error only if needed in JSON.

Comment by Alexander Vladishev [ 2012 Feb 18 ]

Available in the version pre-1.9.10, revision 25453.





[ZBX-2515] auto-logout for new users should be on by default Created: 2010 Jun 07  Updated: 2017 May 30  Resolved: 2012 Feb 02

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: 2.0.0rc1

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

Issue Links:
Duplicate
duplicates ZBXNEXT-916 Redesign Administration->Users Closed

 Description   

when creating a new user, auto-logout is off. it should be on by default (and set to 900, same as the default value in the db)



 Comments   
Comment by Alexei Vladishev [ 2012 Feb 02 ]

Fixed in dev branch svn://svn.zabbix.com/branches/dev/ZBX-2515, ready to test.

Comment by Alexander Vladishev [ 2012 Feb 02 ]

Great! Tested successfully!

Comment by Alexei Vladishev [ 2012 Feb 03 ]

Fixed in pre-1.9.10, revision 25185.





[ZBX-2508] graph item "gradient" not drawn if also set as ymax Created: 2010 Jun 04  Updated: 2017 May 30  Resolved: 2012 Feb 10

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

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

Issue Links:
Duplicate
duplicates ZBX-1787 gradient area not filled if value out... Closed

 Description   

if graph item of type "gradient" is also set to be referenced as y axis maximal value, it is not drawn at all.



 Comments   
Comment by richlv [ 2010 Jun 04 ]

same happens if that value is set as max. maybe simply be because of ZBX-1787 ?

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 03 ]

This will be fixed in ZBX-2508.

CLOSED.

Comment by Alexey Fukalov [ 2012 Feb 09 ]

Couldn't reproduce "not drawn item", but found that if item is set as max Y value, Y axis max value is less than items value. Is it where problem is?

<zalex> it just the last value for the item, and it's how zabbix works at the moment.
I think this question can be CLOSED

Comment by Oleksii Zagorskyi [ 2012 Feb 10 ]

Yes the ZBX-1787 is a fix for this case too. Tested carefully for 1.8 branch and trunk.
Issue will be closed.





[ZBX-2071] Zabbix frontend fails on IPMI sensors with trailing spaces Created: 2010 Feb 24  Updated: 2017 May 30  Resolved: 2012 Jan 31

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.1
Fix Version/s: 2.0.0rc1

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

Issue Links:
Duplicate
duplicates ZBXNEXT-903 Redesign Configuration->Items Closed

 Description   

Zabbix frontend should not sanitize the input on IPMI sensor field as sensor names can contain trailing spaces.

Here at UNAM we have a cluster with HP ProLiant DL145 G2 computing nodes that support IPMI via iLO, the problem is that among the 22 sensors it has, two of them have names with trailing spaces (i.e. "VBAT " and "VCC5V ") which zabbix is able to monitor only if I manually change the "ipmi_sensor" column from table "items" in my database.

So the problem is that I'm unable to define the items to monitor for this IPMI sensors via GUI, be it manually adding sensor information or exporting to xml -> modifying sensor name in xml file -> importing from xml.

Thanks,
Yuri.



 Comments   
Comment by Eduards Samersovs (Inactive) [ 2012 Jan 25 ]

Resolved in ZBXNEXT-903

Comment by Alexei Vladishev [ 2012 Jan 30 ]

Reopening, should be closed only after proper testing.

Comment by Alexei Vladishev [ 2012 Jan 31 ]

Tested under ZBXNEXT-903, works fine.

Comment by richlv [ 2013 Mar 28 ]

also see ZBX-6445





[ZBX-1787] gradient area not filled if value outside y axis scale Created: 2010 Jan 21  Updated: 2017 May 30  Resolved: 2012 Feb 03

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

Type: Incident report Priority: Major
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: gradientgraphs, graphs
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

trunk rev 9500.


Attachments: PNG File gradient_max.png    
Issue Links:
Duplicate
is duplicated by ZBX-2508 graph item "gradient" not drawn if al... Closed
is duplicated by ZBX-3850 Gaps in graphs based on Delta (speed ... Closed

 Description   

if values of series exceed y axis max value and style is gradient, nothing is drawn on the graph.
similar problem was fixed some time ago for filled region type



 Comments   
Comment by richlv [ 2010 Jun 04 ]

ZBX-2508 might also be caused by this

<pavels> Yes, this is the same problem. I've closed ZBX-2508.

Comment by Oleksii Zagorskyi [ 2012 Jan 28 ]

Still reproducible in Zabbix 1.8.11rc1 r24801.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 03 ]

Fixed for trunk in /branches/dev/ZBX-1787

RESOLVED.

Comment by richlv [ 2012 Feb 05 ]

(1) i'm not reopening ZBX-2508 this time, but it should be tested for both 1.8 & trunk fix

Comment by Alexey Fukalov [ 2012 Feb 09 ]

Tested trunk fix.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 09 ]

Fixed in 1.8 r25305 and trunk rr25303.

CLOSED.





[ZBX-1601] Clear history of items in templates does not work Created: 2009 Dec 23  Updated: 2017 May 30  Resolved: 2012 Feb 03

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: 2.0.0rc1

Type: Incident report Priority: Major
Reporter: Vytautas Assignee: Unassigned
Resolution: Fixed Votes: 6
Labels: historyclearing, templates
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Centos 5.4, zabbix 1.8


Issue Links:
Duplicate
duplicates ZBXNEXT-903 Redesign Configuration->Items Closed
is duplicated by ZBX-3653 Report of clearing history for items ... Closed

 Description   

When clearing items history for host all goes well.

However when you try to clear history for item which is assigned to template, no items histories (linked to hosts) are cleared. Which is quite confusing.

Suggestion:

When clearing history for items in template, all linked items for all the hosts should be cleared too.



 Comments   
Comment by richlv [ 2009 Dec 23 ]

i'd say this is more of a bug.
either such button should clear all linked item histories (preferred), or it should not be displayed for items that are attached to templates (not preferred )

Comment by Aleksandrs Saveljevs [ 2011 Aug 09 ]

Related issue: ZBX-3653.

Comment by Eduards Samersovs (Inactive) [ 2012 Feb 03 ]

Resolved in ZBXNEXT-903





[ZBX-1555] error message should be more helpful if ipv6 support is not compiled in Created: 2009 Dec 17  Updated: 2017 May 30  Resolved: 2012 Feb 10

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P), Server (S)
Affects Version/s: 1.8, 1.9.0 (alpha)
Fix Version/s: 1.8.11, 2.0.0rc1

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


 Description   

ipv6 devices can't be discovered by network discovery. logfile contains :

Discovery: Wrong format of IP range '::1'



 Comments   
Comment by richlv [ 2010 Feb 01 ]

actually the reason was missing ipv6 support in server, thus this issue will be about improved server error message.

if server has been compiled w/o ipv6 support, it should still have capabilities to test address whether it's ipv6 one. if detected ipv6 address and no ipv6 support compiled in, server should say something like "Encountered IP '::1', but IPv6 support not compiled in."

Comment by Alexander Vladishev [ 2012 Feb 10 ]

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

Comment by dimir [ 2012 Feb 13 ]

Tested successfully. The error message was (DebugLevel=3):

discovery rule "test": encountered IP range "::1", but IPv6 support not compiled in

Comment by Alexander Vladishev [ 2012 Feb 13 ]

Fixed in version pre-1.8.11 (revision 25354) and pre-1.9.10 (revision 25355).





[ZBX-1335] Item filter related issues Created: 2009 Nov 24  Updated: 2017 May 30  Resolved: 2012 Feb 14

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

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

1.7.2, rev 8369


Attachments: PNG File item-filter.png    
Issue Links:
Duplicate
duplicates ZBXNEXT-903 Redesign Configuration->Items Closed

 Description   

There are several issues in the item filter and sub-filter:

1. No way to change "Data type". Is it always "all".
2. When selecting a host in the filter, host group selection must be taken into account.
3. When selecting an application in the filter, host selection must be taken into account.
4. Change of any drop down in the filter should lead to automatic page refresh, as with Type of Information, Type and other fields.



 Comments   
Comment by richlv [ 2011 Jul 25 ]

1. fixed by now
2. not fixed.
3. not fixed.
4. fixed by now (by ajaxing the form, not by making it reload)

<Eduard> (2), (3) RESOLVED

<pavels> CLOSED.

Comment by Eduards Samersovs (Inactive) [ 2012 Jan 28 ]

Resolved in ZBXNEXT-903

Comment by Alexei Vladishev [ 2012 Jan 30 ]

Reopening, should be closed only after proper testing.

Comment by Eduards Samersovs (Inactive) [ 2012 Feb 10 ]

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

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 14 ]

(5) The layout of some filter table cells seems to be off. Like with the "SNMP community" and "SNMP OID" fields on the screenshot. Tested if Firefox.

<Eduard> RESOLVED, Added constant ZBX_TEXTBOX_FILTER_SIZE = 20 which need to be used for others pages with filter too..

<pavels> ok, CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 14 ]

(6) I suggest we use API calls instead of SQLs in popup.php292 and further.

<Eduard> Decided all together not to do.

<pavels> CLOSED.

Comment by Eduards Samersovs (Inactive) [ 2012 Feb 15 ]

trunk r.25397 version pre-1.9.10





[ZBX-1298] Increase size of MAX_STRING_LEN ? Created: 2009 Nov 17  Updated: 2017 May 30  Resolved: 2012 Feb 10

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 1.6.7
Fix Version/s: 1.8.11, 2.0.0rc1

Type: Incident report Priority: Minor
Reporter: Johan Fischer Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File ZBX-1298_test.odt    
Issue Links:
Duplicate
is duplicated by ZBX-3669 Impossible to track Hadoop processes ... Closed

 Description   

one of my proc.num is failing to match the process arguments because the cmdline (in /proc/???/cmdline) is longer than 2048 chars set in MAX_STRING_LEN (common.h). That's the first process like that, but I expect other in the future. The reason of this lengthy cmdline is because it's a java process with a lot of jar file in the classpath and all of them uses a full path....

Is there a way to increase (locally for the zabbix agent or globally) this define so that the test is working ?
Assuming I patch myself the code (looks trivial enough to patch), what bad consequence may I expect in return ?

Thanks.
J.



 Comments   
Comment by richlv [ 2009 Nov 17 ]

just wondering, doesn't this conflict with ZBX-1297 ?

Comment by Johan Fischer [ 2009 Nov 17 ]

It is possible.

We're using PostGresql for our backend system.

My issue though is only limited to the file src/libs/zbxsysinfo/linux/proc.c in where the cmdline is locally manipulated, the agent will return the number or mem of proc (agent proc.num and proc.mem), so maybe we should localize the define to only that file and allow processing of larger cmdline without affecting common.h (risky indeed for oracle it seems).

Comment by Farzad FARID [ 2012 Jan 09 ]

Hi,

I hit the same bug today on Zabbix 1.8.9, it gives me false positives on JBoss monitoring.. Is is already fixed in 2.0 or just planned? I can't find a resolution in Zabbix 1.9.8's changelog.

I think this bug needs a solution even in the 1.8 series because it prevents the correct monitoring of many Java applications.

Regards.

Comment by richlv [ 2012 Jan 09 ]

ZBX-4527 is related

Comment by Alexander Vladishev [ 2012 Feb 10 ]

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

Comment by Andris Mednis [ 2012 Feb 21 ]

Reviewed and tested. Now works for entire command line available in /proc/XXX/cmdline.

Comment by Andris Mednis [ 2012 Feb 21 ]

Limits of command line size.

Comment by Alexander Vladishev [ 2012 Feb 21 ]

Fixed in the version pre-1.8.11 (revision 25502) and pre-1.9.10 (revision 25503).

Comment by richlv [ 2012 Feb 21 ]

just a quick question on the analysis - it says :

"In our test environment the maximum turned out to be:
$ ./plongarg2.sh $(seq 1 314625)"

wouldn't that be because the avg length of this dataset is ~ 5.65, which is more than 4, as cited at the beginning of the analysis ?

Comment by Andris Mednis [ 2012 Feb 22 ]

Yes, average length of arguments plays its role. For example, if arguments are 1-character long, the number of arguments can be higher. On my test machine with default configuration the maximum is:
$ ./plongarg2.sh $(perl -e 'print "A "x837893')
837893 1-character arguments. Still, only the first 4 kB of the command line is visible to Zabbix agent via /proc/XXX/cmdline on a typical Linux.
Discussion at http://stackoverflow.com/questions/199130/how-do-i-increase-the-proc-pid-cmdline-4096-byte-limit provides some ideas how to deal with Java processes with long command lines.





[ZBX-1213] column span for screen element lower than max column count Created: 2009 Nov 05  Updated: 2017 May 30  Resolved: 2012 Feb 28

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

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

trunk rev 8217


Issue Links:
Duplicate
duplicates ZBXNEXT-904 Redesign Configuration->Screens Closed

 Description   

max screen width is 100, but column span limit is 99



 Comments   
Comment by Eduards Samersovs (Inactive) [ 2012 Feb 24 ]

Resolved in ZBXNEXT-904

Comment by Eduards Samersovs (Inactive) [ 2012 Feb 28 ]

Resolved in ZBXNEXT-904

Comment by richlv [ 2012 Mar 03 ]

confirming the fix in dev branch rev 25776 (although it's better not not close issues until fix has been confirmed)





[ZBX-860] "No Such Instance" snmp status not recognised Created: 2009 Apr 09  Updated: 2017 May 30  Resolved: 2012 Feb 09

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

Type: Incident report Priority: Major
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 2
Labels: snmp
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

1.6.4 on sles10 sp2, net-snmp 5.3.0.1



 Description   

if device does not have a particular oid that is queried, zabbix logs and reports on the frontend :
error: OID [.1.3.6.1.4.1.11.2.14.11.1.2.6.1.4.2] value has unknow type [0x81]

0x81 is reported by net-snmp on the same box as : No Such Instance currently exists at this OID

to ease the debugging and provide more useful messages, it would be nice to display such a message instead of the quite mysterious 0x81 type one.



 Comments   
Comment by Alexander Vladishev [ 2012 Feb 09 ]

The problem still in pre-1.8.11, r25278.

Comment by Alexander Vladishev [ 2012 Feb 09 ]

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

Comment by dimir [ 2012 Feb 10 ]

Successfully tested. Check my small changes in r25324.

<Sasha> Thanks!

Comment by Alexander Vladishev [ 2012 Feb 10 ]

Fixed in version pre-1.8.11 (revision 25330) and pre-1.9.10 (revision 25331)





Generated at Fri Mar 29 15:03:07 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.