Ad Widget

Collapse

problem log zabbix 5.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jcarab01
    Junior Member
    • Mar 2021
    • 1

    #1

    problem log zabbix 5.2

    I have trouble understanding what this number of numbers that appear in the logs are about

    1393:20210311:093648.467 slow query: 5.648759 sec, "select distinct t.triggerid,t.description,t.expression,t.error,t.p riority,t.type,t.value,t.state,t.lastchange,t.stat us,t.recovery_mode,t.recovery_expression,t.correla tion_mode,t.correlation_tag,opdata,event_name from hosts h,items i,functions f,triggers t where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=t.triggerid and h.status in (0,1) and t.flags<>2"
    1394:20210311:095148.600 executing housekeeper
    1394:20210311:095151.322 housekeeper [deleted 0 hist/trends, 0 items/triggers, 0 events, 0 problems, 0 sessions, 0 alarms, 0 audit, 0 records in 2.721420 sec, idle for 1 hour(s)]
    1394:20210311:105152.251 executing housekeeper
    1394:20210311:105154.937 housekeeper [deleted 0 hist/trends, 0 items/triggers, 0 events, 0 problems, 0 sessions, 0 alarms, 0 audit, 0 records in 2.685684 sec, idle for 1 hour(s)]
    1399:20210311:113032.271 slow query: 3.641124 sec, "insert into history_uint (itemid,clock,ns,value) values (34647,1615476627,934497342,1),(69135,1615476627,9 54577473,0),(69257,1615476627,954577473,0),(69209, 1615476627,954577473,0),(69184,1615476627,95457747 3,0),(69268,1615476627,954577473,0),(68974,1615476 627,954577473,0),(34519,1615476627,954577473,18295 76),(69141,1615476627,954577473,0),(69130,16154766 27,954577473,0),(69103,1615476627,954577473,0),(68 908,1615476627,954577473,0),(68947,1615476627,9545 77473,0),(69405,1615476627,954577473,2),(69088,161 5476627,954577473,0),(69054,1615476627,954577473,0 ),(69153,1615476627,954577473,0),(68895,1615476627 ,954577473,0),(68915,1615476627,954577473,0),(6917 2,1615476627,954577473,0),(69207,1615476627,954577 473,0),(68957,1615476627,954577473,0),(69113,16154 76627,954577473,0),(68927,1615476627,954577473,0), (69188,1615476627,954577473,0),(69243,1615476627,9 54577473,0),(69010,1615476627,954577473,0),(68893, 1615476627,954577473,0),(69146,1615476627,95457747 3,0),(69050,1615476627,954577473,768),(69132,16154 76627,954577473,0),(68899,1615476627,954577473,0), (69080,1615476627,954577473,0),(69099,1615476627,9 54577473,0),(69351,1615476627,954577473,1),(69040, 1615476627,954577473,0),(69108,1615476627,95457747 3,0),(69407,1615476627,954577473,2),(69038,1615476 627,954577473,0),(69021,1615476627,954577473,0),(6 8956,1615476627,954577473,0),(69266,1615476627,954 577473,1984),(69148,1615476627,954577473,0),(69081 ,1615476627,954577473,0),(69134,1615476627,9545774 73,0),(69269,1615476627,954577473,0),(69145,161547 6627,954577473,0),(69061,1615476627,954577473,0),( 69194,1615476627,954577473,0),(69397,1615476627,95 4577473,1),(68961,1615476627,954577473,0),(69009,1 615476627,954577473,0),(69360,1615476627,954577473 ,2),(69359,1615476627,982479377,2),(69382,16154766 27,982479377,2),(69392,1615476627,982479377,2),(69 352,1615476627,982479377,1),(68887,1615476627,9824 79377,32679508),(76853,1615476627,982479377,3),(68 885,1615476627,982479377,3998860),(69371,161547662 7,982479377,2),(69380,1615476627,982479377,1),(768 58,1615476627,982479377,3),(69378,1615476627,98247 9377,2),(69367,1615476627,982479377,2),(68972,1615 476627,982479377,0),(69068,1615476627,982479377,0) ,(69163,1615476627,982479377,0),(69282,1615476627, 982479377,0),(69273,1615476627,982479377,2760),(69 024,1615476627,982479377,1280),(69150,1615476627,9 82479377,0),(69350,1615476627,982479377,1),(69355, 1615476627,982479377,1),(69386,1615476627,98247937 7,2),(69408,1615476627,982479377,1),(69363,1615476 627,982479377,2),(69387,1615476627,982479377,2),(7 6851,1615476627,982479377,3),(69394,1615476627,982 479377,2),(69370,1615476627,982479377,2),(69406,16 15476627,982479377,2),(69400,1615476627,982479377, 2),(69399,1615476627,982479377,2),(69388,161547662 7,982479377,2),(69391,1615476627,982479377,2),(693 53,1615476627,982479377,1),(69368,1615476627,98247 9377,2),(68884,1615476627,982479377,35862908),(693 73,1615476627,982479377,2),(69357,1615476627,98247 9377,2),(76852,1615476627,982479377,3),(69410,1615 476627,982479377,2),(69401,1615476627,982479377,2) ,(69409,1615476627,982479377,2),(69354,1615476627, 982479377,1),(69412,1615476627,982479377,2),(69364 ,1615476627,982479377,2),(68886,1615476627,9824793 77,1048536),(69389,1615476627,982479377,2),(69395, 1615476627,982479377,2),(76857,1615476627,98247937 7,3),(76850,1615476627,982479377,3),(69374,1615476 627,982479377,2),(69381,1615476627,982479377,2),(6 9348,161547662

    Could you help me solve this problem?

    Thank
  • Zdenek_OMNISENSUIT
    Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Nov 2020
    • 55

    #2
    Hello.

    I have trouble understanding what this number of numbers that appear in the logs are about
    I'm not sure what do you exactly mean but some info here:

    You have slow sql for select/insert data to db.
    (some performance problem)
    About the number explanation:
    insert into history_uint (itemid,clock,ns,value) values (34647,1615476627,934497342,1),(69135,1615476627,9 54577473,0), ...
    ->
    insert this value to this column: 34647 itemid, 1615476627 clock, 934497342 ns, 1 value ....


    -------------------------
    omnisensuit.com

    Comment


    • jcarab01
      jcarab01 commented
      Editing a comment
      I do not handle databases much but I would like you to inform me which parameters I must configure in order to optimize the database and correct the slowness that you tell me when selecting and inserting data.

      appreciating your help
  • Zdenek_OMNISENSUIT
    Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Nov 2020
    • 55

    #3
    Hello.

    The performace depends on more things.
    You can start with check monitoring of your system.
    What is your NVPS, number of hosts/items, CPU wait, disk I/O, ..
    What kind of disk - HDD/SSD?
    Do you have separate server for database?
    What kind of database you have?
    Is it default installation or do you config db parameters?
    Etc.


    -------------------------
    omnisensuit.com

    Comment

    Working...