[ZBX-2595] Can not create (save) log item- appears error "Warning. Field [logtimefmt] is mandatory" Created: 2010 Jun 21  Updated: 2017 May 30  Resolved: 2010 Jun 21

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

Type: Incident report Priority: Critical
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   

Can not create (save) log item- appears error "Warning. Field [logtimefmt] is mandatory"
Also for the log item in the item creation form does NOT appear "Log time format" field.



 Comments   
Comment by Maxim Andruhovich (Inactive) [ 2010 Jun 21 ]

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

Comment by Igor Danoshaites (Inactive) [ 2010 Jun 21 ]

Error in the frontend when using Postgre DB:

  1. pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: syntax error at or near "," LINE 1: ...g for",,200]',10047,30,90,0,7,'','',2,0,'',0,'',0,,'',0,'','... ^[C:\Program Files\Xampp\xampp\htdocs\Zabbix\ZBX-2595\frontends\php\include\db.inc.php:491]
  2. Error in query [INSERT INTO items (itemid,description,key_,hostid,delay,history,status,type,snmp_community,snmp_oid,value_type,data_type,trapper_hosts,snmp_port,units,multiplier,delta,snmpv3_securityname,snmpv3_securitylevel,snmpv3_authpassphrase,snmpv3_privpassphrase,formula,trends,logtimefmt,valuemapid,delay_flex,params,ipmi_sensor,templateid,authtype,username,password,publickey,privatekey) VALUES (29860,'loggggggg','log["/home/igor/logs/1.8_logs/zabbix_server2.log","Sleeping for",,200]',10047,30,90,0,7,'','',2,0,'',0,'',0,,'',0,'','','',,'',,'','','',0,0,'','','','')] [ERROR: syntax error at or near "," LINE 1: ...g for",,200]
Comment by Maxim Andruhovich (Inactive) [ 2010 Jun 21 ]

see revision 12996

Comment by Igor Danoshaites (Inactive) [ 2010 Jun 21 ]

Now when using PG and MySQL DB all is fine-can save log item.

Comment by Igor Danoshaites (Inactive) [ 2010 Jun 21 ]

Please merge the changes with 1.8branch.

Comment by Maxim Andruhovich (Inactive) [ 2010 Jun 21 ]

Bug fixed in version pre 1.8.3 revision 13002

Generated at Thu Apr 18 23:22:50 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.