Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
546
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.48 KB | None | 0 0
  1. ******************** Профилировщик сценария ********************
  2. Всего затрачено времени: 0.055222
  3. Всего затрачено времени на SQL: 0.010021
  4. SQL запросов: 22 (selects: 15 | executes: 7)
  5. Пиковое использование памяти: 3.75M
  6. Лимит памяти: 128M
  7.  
  8. 1. trigger.get [CControllerProblemView.php:197]
  9.  
  10. Параметры:
  11. Array
  12. (
  13. [output] => Array
  14. (
  15. [0] => triggerid
  16. [1] => description
  17. )
  18.  
  19. [selectHosts] => Array
  20. (
  21. [0] => name
  22. )
  23.  
  24. [expandDescription] => 1
  25. [triggerids] => Array
  26. (
  27. [0] => 12201
  28. )
  29.  
  30. [monitored] => 1
  31. )
  32. Результат:
  33. Array
  34. (
  35. [0] => Array
  36. (
  37. [triggerid] => 12201
  38. [description] => icmpOutRedirects on *НЕИЗВЕСТНО* is too High
  39. [hosts] => Array
  40. (
  41. )
  42.  
  43. )
  44.  
  45. )
  46.  
  47. 2. problem.get [CScreenProblem.php:180]
  48.  
  49. Параметры:
  50. Array
  51. (
  52. [output] => Array
  53. (
  54. [0] => eventid
  55. [1] => objectid
  56. [2] => clock
  57. [3] => ns
  58. )
  59.  
  60. [source] => 0
  61. [object] => 0
  62. [recent] => 1
  63. [groupids] =>
  64. [hostids] =>
  65. [applicationids] =>
  66. [objectids] => Array
  67. (
  68. [0] => 12201
  69. )
  70.  
  71. [eventid_till] =>
  72. [sortfield] => Array
  73. (
  74. [0] => eventid
  75. )
  76.  
  77. [sortorder] => DESC
  78. [limit] => 1001
  79. [preservekeys] => 1
  80. )
  81. Результат:
  82. Array
  83. (
  84. )
  85.  
  86.  
  87. SQL (0.000261): SET NAMES utf8
  88. zabbix.php:21 → require_once() → ZBase->run() → ZBase->initDB() → DBconnect() → DBexecute() in include/db.inc.php:63
  89.  
  90. SQL (0.000575): SHOW TABLES LIKE 'dbversion'
  91. zabbix.php:21 → require_once() → ZBase->run() → ZBase->initDB() → DBconnect() → DbBackend->checkDbVersion() → MysqlDbBackend->checkDbVersionTable() → DBselect() in include/classes/db/MysqlDbBackend.php:32
  92.  
  93. SQL (0.000315): SELECT dv.mandatory,dv.optional FROM dbversion dv
  94. zabbix.php:21 → require_once() → ZBase->run() → ZBase->initDB() → DBconnect() → DbBackend->checkDbVersion() → DBselect() in include/classes/db/DbBackend.php:46
  95.  
  96. SQL (0.000264): SELECT NULL FROM config c
  97. zabbix.php:21 → require_once() → ZBase->run() → ZBase->initDB() → DBconnect() → DbBackend->checkConfig() → DBselect() in include/classes/db/DbBackend.php:62
  98.  
  99. SQL (0.00032): BEGIN
  100. zabbix.php:21 → require_once() → ZBase->run() → ZBase->authenticateUser() → CWebUser::checkAuthentication() → CFrontendApiWrapper->checkAuthentication() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → DBstart() → DBexecute() in include/db.inc.php:262
  101.  
  102. SQL (0.00048): SELECT u.userid,u.autologout,s.lastaccess FROM sessions s,users u WHERE s.sessionid='8c46837add3c1a5665436c62f1a51a03' AND s.status=0 AND s.userid=u.userid AND (s.lastaccess+u.autologout>1485165498 OR u.autologout=0)
  103. zabbix.php:21 → require_once() → ZBase->run() → ZBase->authenticateUser() → CWebUser::checkAuthentication() → CFrontendApiWrapper->checkAuthentication() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CUser->checkAuthentication() → DBselect() in include/classes/api/services/CUser.php:1196
  104.  
  105. SQL (0.000227): SELECT MAX(g.gui_access) AS gui_access FROM usrgrp g,users_groups ug WHERE ug.userid='20' AND g.usrgrpid=ug.usrgrpid
  106. zabbix.php:21 → require_once() → ZBase->run() → ZBase->authenticateUser() → CWebUser::checkAuthentication() → CFrontendApiWrapper->checkAuthentication() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CUser->checkAuthentication() → DBselect() in include/classes/api/services/CUser.php:1229
  107.  
  108. SQL (0.000263): 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='20'
  109. zabbix.php:21 → require_once() → ZBase->run() → ZBase->authenticateUser() → CWebUser::checkAuthentication() → CFrontendApiWrapper->checkAuthentication() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CUser->checkAuthentication() → CUser->_getUserData() → DBselect() in include/classes/api/services/CUser.php:1253
  110.  
  111. SQL (0.000207): SELECT ug.userid FROM usrgrp g,users_groups ug WHERE ug.userid='20' AND g.usrgrpid=ug.usrgrpid AND g.debug_mode=1
  112. zabbix.php:21 → require_once() → ZBase->run() → ZBase->authenticateUser() → CWebUser::checkAuthentication() → CFrontendApiWrapper->checkAuthentication() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CUser->checkAuthentication() → CUser->_getUserData() → DBselect() in include/classes/api/services/CUser.php:1261
  113.  
  114. SQL (0.000195): COMMIT
  115. zabbix.php:21 → require_once() → ZBase->run() → ZBase->authenticateUser() → CWebUser::checkAuthentication() → CFrontendApiWrapper->checkAuthentication() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → DBend() → DBcommit() → DBexecute() in include/db.inc.php:323
  116.  
  117. SQL (0.002024): SELECT p.* FROM profiles p WHERE p.userid=20 ORDER BY p.userid,p.profileid
  118. zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerProblemView->doAction() → CProfile::get() → CProfile::init() → DBselect() in include/classes/user/CProfile.php:42
  119.  
  120. SQL (0.00047): SELECT c.* FROM config c
  121. zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerProblemView->doAction() → select_config() → DBselect() in include/profiles.inc.php:33
  122.  
  123. SQL (0.000302): BEGIN
  124. zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerProblemView->doAction() → CFrontendApiWrapper->get() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → DBstart() → DBexecute() in include/db.inc.php:262
  125.  
  126. SQL (0.000733): SELECT t.triggerid,t.description,t.expression FROM triggers t WHERE t.triggerid='12201' AND NOT EXISTS (SELECT NULL FROM functions f,items i,hosts h WHERE t.triggerid=f.triggerid AND f.itemid=i.itemid AND i.hostid=h.hostid AND (i.status<>0 OR h.status<>0)) AND t.status=0 AND t.flags IN ('0','4')
  127. zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerProblemView->doAction() → CFrontendApiWrapper->get() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CTrigger->get() → CApiService->customFetch() → DBselect() in include/classes/api/CApiService.php:1026
  128.  
  129. SQL (0.000245): SELECT f.triggerid,i.hostid FROM functions f,items i WHERE f.triggerid='12201' AND f.itemid=i.itemid
  130. zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerProblemView->doAction() → CFrontendApiWrapper->get() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CTrigger->get() → CTrigger->addRelatedObjects() → CTriggerGeneral->addRelatedObjects() → DBselect() in include/classes/api/services/CTriggerGeneral.php:368
  131.  
  132. SQL (0.00034): SELECT h.hostid,h.name FROM hosts h WHERE h.flags IN (0,4) AND 1=0 AND h.status IN (0,1,3)
  133. zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerProblemView->doAction() → CFrontendApiWrapper->get() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CTrigger->get() → CTrigger->addRelatedObjects() → CTriggerGeneral->addRelatedObjects() → CHost->get() → DBselect() in include/classes/api/services/CHost.php:432
  134.  
  135. SQL (0.000542): SELECT f.triggerid,f.functionid,h.hostid,h.host,h.name FROM functions f JOIN items i ON f.itemid=i.itemid JOIN hosts h ON i.hostid=h.hostid WHERE f.functionid='11201'
  136. zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerProblemView->doAction() → CFrontendApiWrapper->get() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CTrigger->get() → CMacrosResolverHelper::resolveTriggerNames() → CMacrosResolver->resolveTriggerNames() → CMacrosResolverGeneral->getHostMacros() → DBselect() in include/classes/macros/CMacrosResolverGeneral.php:777
  137.  
  138. SQL (0.000344): COMMIT
  139. zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerProblemView->doAction() → CFrontendApiWrapper->get() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → DBend() → DBcommit() → DBexecute() in include/db.inc.php:323
  140.  
  141. SQL (0.000439): BEGIN
  142. zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CView->getOutput() → include() → CScreenProblem->get() → CScreenProblem->getData() → CScreenProblem->getDataProblems() → CFrontendApiWrapper->get() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → DBstart() → DBexecute() in include/db.inc.php:262
  143.  
  144. SQL (0.000459): SELECT t.triggerid FROM triggers t WHERE t.triggerid='12201' AND t.flags IN ('0','4')
  145. zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CView->getOutput() → include() → CScreenProblem->get() → CScreenProblem->getData() → CScreenProblem->getDataProblems() → CFrontendApiWrapper->get() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CProblem->get() → CTrigger->get() → CApiService->customFetch() → DBselect() in include/classes/api/CApiService.php:1026
  146.  
  147. SQL (0.000593): SELECT p.eventid,p.objectid,p.clock,p.ns FROM problem p WHERE p.source='0' AND p.object='0' AND p.objectid='12201' AND (p.r_eventid IS NULL OR p.r_clock>1485163698) ORDER BY p.eventid DESC LIMIT 1001 OFFSET 0
  148. zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CView->getOutput() → include() → CScreenProblem->get() → CScreenProblem->getData() → CScreenProblem->getDataProblems() → CFrontendApiWrapper->get() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CProblem->get() → DBselect() in include/classes/api/services/CProblem.php:351
  149.  
  150. SQL (0.000423): COMMIT
  151. zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CView->getOutput() → include() → CScreenProblem->get() → CScreenProblem->getData() → CScreenProblem->getDataProblems() → CFrontendApiWrapper->get() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → DBend() → DBcommit() → DBexecute() in include/db.inc.php:323
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement