Guest User

Untitled

a guest
Mar 4th, 2014
3,000
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 153.57 KB | None | 0 0
  1. 19356:20140305:035855.809 Starting Zabbix Proxy (active) [test-mon-master]. Zabbix 2.0.5 (revision 33558).
  2. 19356:20140305:035855.809 **** Enabled features ****
  3. 19356:20140305:035855.809 SNMP monitoring: YES
  4. 19356:20140305:035855.809 IPMI monitoring: YES
  5. 19356:20140305:035855.810 WEB monitoring: YES
  6. 19356:20140305:035855.810 ODBC: NO
  7. 19356:20140305:035855.810 SSH2 support: YES
  8. 19356:20140305:035855.810 IPv6 support: YES
  9. 19356:20140305:035855.810 **************************
  10. 19356:20140305:035855.810 cannot open database file "/var/lib/zabbix/zabbix_proxy.db": [2] No such file or directory
  11. 19356:20140305:035855.810 creating database ...
  12. 19356:20140305:035855.812 query without transaction detected
  13. 19356:20140305:035855.812 query [txnlev:0] [CREATE TABLE maintenances (
  14. maintenanceid bigint NOT NULL,
  15. name varchar(128) DEFAULT '' NOT NULL,
  16. maintenance_type integer DEFAULT '0' NOT NULL,
  17. description text DEFAULT '' NOT NULL,
  18. active_since integer DEFAULT '0' NOT NULL,
  19. active_till integer DEFAULT '0' NOT NULL,
  20. PRIMARY KEY (maintenanceid)
  21. );
  22. CREATE INDEX maintenances_1 ON maintenances (active_since,active_till);
  23. CREATE TABLE hosts (
  24. hostid bigint NOT NULL,
  25. proxy_hostid bigint NULL REFERENCES hosts (hostid),
  26. host varchar(64) DEFAULT '' NOT NULL,
  27. status integer DEFAULT '0' NOT NULL,
  28. disable_until integer DEFAULT '0' NOT NULL,
  29. error varchar(128) DEFAULT '' NOT NULL,
  30. available integer DEFAULT '0' NOT NULL,
  31. errors_from integer DEFAULT '0' NOT NULL,
  32. lastaccess integer DEFAULT '0' NOT NULL,
  33. ipmi_authtype integer DEFAULT '0' NOT NULL,
  34. ipmi_privilege integer DEFAULT '2' NOT NULL,
  35. ipmi_username varchar(16) DEFAULT '' NOT NULL,
  36. ipmi_password varchar(20) DEFAULT '' NOT NULL,
  37. ipmi_disable_until integer DEFAULT '0' NOT NULL,
  38. ipmi_available integer DEFAULT '0' NOT NULL,
  39. snmp_disable_until integer DEFAULT '0' NOT NULL,
  40. snmp_available integer DEFAULT '0' NOT NULL,
  41. maintenanceid bigint NULL REFERENCES maintenances (maintenanceid),
  42. maintenance_status integer DEFAULT '0' NOT NULL,
  43. maintenance_type integer DEFAULT '0' NOT NULL,
  44. maintenance_from integer DEFAULT '0' NOT NULL,
  45. ipmi_errors_from integer DEFAULT '0' NOT NULL,
  46. snmp_errors_from integer DEFAULT '0' NOT NULL,
  47. ipmi_error varchar(128) DEFAULT '' NOT NULL,
  48. snmp_error varchar(128) DEFAULT '' NOT NULL,
  49. jmx_disable_until integer DEFAULT '0' NOT NULL,
  50. jmx_available integer DEFAULT '0' NOT NULL,
  51. jmx_errors_from integer DEFAULT '0' NOT NULL,
  52. jmx_error varchar(128) DEFAULT '' NOT NULL,
  53. name varchar(64) DEFAULT '' NOT NULL,
  54. PRIMARY KEY (hostid)
  55. );
  56. CREATE INDEX hosts_1 ON hosts (host);
  57. CREATE INDEX hosts_2 ON hosts (status);
  58. CREATE INDEX hosts_3 ON hosts (proxy_hostid);
  59. CREATE INDEX hosts_4 ON hosts (name);
  60. CREATE TABLE groups (
  61. groupid bigint NOT NULL,
  62. name varchar(64) DEFAULT '' NOT NULL,
  63. internal integer DEFAULT '0' NOT NULL,
  64. PRIMARY KEY (groupid)
  65. );
  66. CREATE INDEX groups_1 ON groups (name);
  67. CREATE TABLE screens (
  68. screenid bigint NOT NULL,
  69. name varchar(255) NOT NULL,
  70. hsize integer DEFAULT '1' NOT NULL,
  71. vsize integer DEFAULT '1' NOT NULL,
  72. templateid bigint NULL REFERENCES hosts (hostid) ON DELETE CASCADE,
  73. PRIMARY KEY (screenid)
  74. );
  75. CREATE TABLE screens_items (
  76. screenitemid bigint NOT NULL,
  77. screenid bigint NOT NULL REFERENCES screens (screenid) ON DELETE CASCADE,
  78. resourcetype integer DEFAULT '0' NOT NULL,
  79. resourceid bigint DEFAULT '0' NOT NULL,
  80. width integer DEFAULT '320' NOT NULL,
  81. height integer DEFAULT '200' NOT NULL,
  82. x integer DEFAULT '0' NOT NULL,
  83. y integer DEFAULT '0' NOT NULL,
  84. colspan integer DEFAULT '0' NOT NULL,
  85. rowspan integer DEFAULT '0' NOT NULL,
  86. elements integer DEFAULT '25' NOT NULL,
  87. valign integer DEFAULT '0' NOT NULL,
  88. halign integer DEFAULT '0' NOT NULL,
  89. style integer DEFAULT '0' NOT NULL,
  90. url varchar(255) DEFAULT '' NOT NULL,
  91. dynamic integer DEFAULT '0' NOT NULL,
  92. sort_triggers integer DEFAULT '0' NOT NULL,
  93. PRIMARY KEY (screenitemid)
  94. );
  95. CREATE TABLE slideshows (
  96. slideshowid bigint NOT NULL,
  97. name varchar(255) DEFAULT '' NOT NULL,
  98. delay integer DEFAULT '0' NOT NULL,
  99. PRIMARY KEY (slideshowid)
  100. );
  101. CREATE TABLE slides (
  102. slideid bigint NOT NULL,
  103. slideshowid bigint NOT NULL REFERENCES slideshows (slideshowid) ON DELETE CASCADE,
  104. screenid bigint NOT NULL REFERENCES screens (screenid) ON DELETE CASCADE,
  105. step integer DEFAULT '0' NOT NULL,
  106. delay integer DEFAULT '0' NOT NULL,
  107. PRIMARY KEY (slideid)
  108. );
  109. CREATE INDEX slides_slides_1 ON slides (slideshowid);
  110. CREATE TABLE drules (
  111. druleid bigint NOT NULL,
  112. proxy_hostid bigint NULL REFERENCES hosts (hostid),
  113. name varchar(255) DEFAULT '' NOT NULL,
  114. iprange varchar(255) DEFAULT '' NOT NULL,
  115. delay integer DEFAULT '3600' NOT NULL,
  116. nextcheck integer DEFAULT '0' NOT NULL,
  117. status integer DEFAULT '0' NOT NULL,
  118. PRIMARY KEY (druleid)
  119. );
  120. CREATE TABLE dchecks (
  121. dcheckid bigint NOT NULL,
  122. druleid bigint NOT NULL REFERENCES drules (druleid) ON DELETE CASCADE,
  123. type integer DEFAULT '0' NOT NULL,
  124. key_ varchar(255) DEFAULT '' NOT NULL,
  125. snmp_community varchar(255) DEFAULT '' NOT NULL,
  126. ports varchar(255) DEFAULT '0' NOT NULL,
  127. snmpv3_securityname varchar(64) DEFAULT '' NOT NULL,
  128. snmpv3_securitylevel integer DEFAULT '0' NOT NULL,
  129. snmpv3_authpassphrase varchar(64) DEFAULT '' NOT NULL,
  130. snmpv3_privpassphrase varchar(64) DEFAULT '' NOT NULL,
  131. uniq integer DEFAULT '0' NOT NULL,
  132. PRIMARY KEY (dcheckid)
  133. );
  134. CREATE INDEX dchecks_1 ON dchecks (druleid);
  135. CREATE TABLE applications (
  136. applicationid bigint NOT NULL,
  137. hostid bigint NOT NULL REFERENCES hosts (hostid) ON DELETE CASCADE,
  138. name varchar(255) DEFAULT '' NOT NULL,
  139. templateid bigint NULL REFERENCES applications (applicationid) ON DELETE CASCADE,
  140. PRIMARY KEY (applicationid)
  141. );
  142. CREATE INDEX applications_1 ON applications (templateid);
  143. CREATE UNIQUE INDEX applications_2 ON applications (hostid,name);
  144. CREATE TABLE httptest (
  145. httptestid bigint NOT NULL,
  146. name varchar(64) DEFAULT '' NOT NULL,
  147. applicationid bigint NOT NULL REFERENCES applications (applicationid) ON DELETE CASCADE,
  148. nextcheck integer DEFAULT '0' NOT NULL,
  149. delay integer DEFAULT '60' NOT NULL,
  150. status integer DEFAULT '0' NOT NULL,
  151. macros text DEFAULT '' NOT NULL,
  152. agent varchar(255) DEFAULT '' NOT NULL,
  153. authentication integer DEFAULT '0' NOT NULL,
  154. http_user varchar(64) DEFAULT '' NOT NULL,
  155. http_password varchar(64) DEFAULT '' NOT NULL,
  156. PRIMARY KEY (httptestid)
  157. );
  158. CREATE INDEX httptest_httptest_1 ON httptest (applicationid);
  159. CREATE INDEX httptest_2 ON httptest (name);
  160. CREATE INDEX httptest_3 ON httptest (status);
  161. CREATE TABLE httpstep (
  162. httpstepid bigint NOT NULL,
  163. httptestid bigint NOT NULL REFERENCES httptest (httptestid) ON DELETE CASCADE,
  164. name varchar(64) DEFAULT '' NOT NULL,
  165. no integer DEFAULT '0' NOT NULL,
  166. url varchar(255) DEFAULT '' NOT NULL,
  167. timeout integer DEFAULT '30' NOT NULL,
  168. posts text DEFAULT '' NOT NULL,
  169. required varchar(255) DEFAULT '' NOT NULL,
  170. status_codes varchar(255) DEFAULT '' NOT NULL,
  171. PRIMARY KEY (httpstepid)
  172. );
  173. CREATE INDEX httpstep_httpstep_1 ON httpstep (httptestid);
  174. CREATE TABLE interface (
  175. interfaceid bigint NOT NULL,
  176. hostid bigint NOT NULL REFERENCES hosts (hostid) ON DELETE CASCADE,
  177. main integer DEFAULT '0' NOT NULL,
  178. type integer DEFAULT '0' NOT NULL,
  179. useip integer DEFAULT '1' NOT NULL,
  180. ip varchar(39) DEFAULT '127.0.0.1' NOT NULL,
  181. dns varchar(64) DEFAULT '' NOT NULL,
  182. port varchar(64) DEFAULT '10050' NOT NULL,
  183. PRIMARY KEY (interfaceid)
  184. );
  185. CREATE INDEX interface_1 ON interface (hostid,type);
  186. CREATE INDEX interface_2 ON interface (ip,dns);
  187. CREATE TABLE valuemaps (
  188. valuemapid bigint NOT NULL,
  189. name varchar(64) DEFAULT '' NOT NULL,
  190. PRIMARY KEY (valuemapid)
  191. );
  192. CREATE INDEX valuemaps_1 ON valuemaps (name);
  193. CREATE TABLE items (
  194. itemid bigint NOT NULL,
  195. type integer DEFAULT '0' NOT NULL,
  196. snmp_community varchar(64) DEFAULT '' NOT NULL,
  197. snmp_oid varchar(255) DEFAULT '' NOT NULL,
  198. hostid bigint NOT NULL REFERENCES hosts (hostid) ON DELETE CASCADE,
  199. name varchar(255) DEFAULT '' NOT NULL,
  200. key_ varchar(255) DEFAULT '' NOT NULL,
  201. delay integer DEFAULT '0' NOT NULL,
  202. history integer DEFAULT '90' NOT NULL,
  203. trends integer DEFAULT '365' NOT NULL,
  204. lastvalue varchar(255) NULL,
  205. lastclock integer NULL,
  206. prevvalue varchar(255) NULL,
  207. status integer DEFAULT '0' NOT NULL,
  208. value_type integer DEFAULT '0' NOT NULL,
  209. trapper_hosts varchar(255) DEFAULT '' NOT NULL,
  210. units varchar(255) DEFAULT '' NOT NULL,
  211. multiplier integer DEFAULT '0' NOT NULL,
  212. delta integer DEFAULT '0' NOT NULL,
  213. prevorgvalue varchar(255) NULL,
  214. snmpv3_securityname varchar(64) DEFAULT '' NOT NULL,
  215. snmpv3_securitylevel integer DEFAULT '0' NOT NULL,
  216. snmpv3_authpassphrase varchar(64) DEFAULT '' NOT NULL,
  217. snmpv3_privpassphrase varchar(64) DEFAULT '' NOT NULL,
  218. formula varchar(255) DEFAULT '1' NOT NULL,
  219. error varchar(128) DEFAULT '' NOT NULL,
  220. lastlogsize bigint DEFAULT '0' NOT NULL,
  221. logtimefmt varchar(64) DEFAULT '' NOT NULL,
  222. templateid bigint NULL REFERENCES items (itemid) ON DELETE CASCADE,
  223. valuemapid bigint NULL REFERENCES valuemaps (valuemapid),
  224. delay_flex varchar(255) DEFAULT '' NOT NULL,
  225. params text DEFAULT '' NOT NULL,
  226. ipmi_sensor varchar(128) DEFAULT '' NOT NULL,
  227. data_type integer DEFAULT '0' NOT NULL,
  228. authtype integer DEFAULT '0' NOT NULL,
  229. username varchar(64) DEFAULT '' NOT NULL,
  230. password varchar(64) DEFAULT '' NOT NULL,
  231. publickey varchar(64) DEFAULT '' NOT NULL,
  232. privatekey varchar(64) DEFAULT '' NOT NULL,
  233. mtime integer DEFAULT '0' NOT NULL,
  234. lastns integer NULL,
  235. flags integer DEFAULT '0' NOT NULL,
  236. filter varchar(255) DEFAULT '' NOT NULL,
  237. interfaceid bigint NULL REFERENCES interface (interfaceid),
  238. port varchar(64) DEFAULT '' NOT NULL,
  239. description text DEFAULT '' NOT NULL,
  240. inventory_link integer DEFAULT '0' NOT NULL,
  241. lifetime varchar(64) DEFAULT '30' NOT NULL,
  242. PRIMARY KEY (itemid)
  243. );
  244. CREATE UNIQUE INDEX items_1 ON items (hostid,key_);
  245. CREATE INDEX items_3 ON items (status);
  246. CREATE INDEX items_4 ON items (templateid);
  247. CREATE INDEX items_5 ON items (valuemapid);
  248. CREATE TABLE httpstepitem (
  249. httpstepitemid bigint NOT NULL,
  250. httpstepid bigint NOT NULL REFERENCES httpstep (httpstepid) ON DELETE CASCADE,
  251. itemid bigint NOT NULL REFERENCES items (itemid) ON DELETE CASCADE,
  252. type integer DEFAULT '0' NOT NULL,
  253. PRIMARY KEY (httpstepitemid)
  254. );
  255. CREATE UNIQUE INDEX httpstepitem_httpstepitem_1 ON httpstepitem (httpstepid,itemid);
  256. CREATE TABLE httptestitem (
  257. httptestitemid bigint NOT NULL,
  258. httptestid bigint NOT NULL REFERENCES httptest (httptestid) ON DELETE CASCADE,
  259. itemid bigint NOT NULL REFERENCES items (itemid) ON DELETE CASCADE,
  260. type integer DEFAULT '0' NOT NULL,
  261. PRIMARY KEY (httptestitemid)
  262. );
  263. CREATE UNIQUE INDEX httptestitem_httptestitem_1 ON httptestitem (httptestid,itemid);
  264. CREATE TABLE media_type (
  265. mediatypeid bigint NOT NULL,
  266. type integer DEFAULT '0' NOT NULL,
  267. description varchar(100) DEFAULT '' NOT NULL,
  268. smtp_server varchar(255) DEFAULT '' NOT NULL,
  269. smtp_helo varchar(255) DEFAULT '' NOT NULL,
  270. smtp_email varchar(255) DEFAULT '' NOT NULL,
  271. exec_path varchar(255) DEFAULT '' NOT NULL,
  272. gsm_modem varchar(255) DEFAULT '' NOT NULL,
  273. username varchar(255) DEFAULT '' NOT NULL,
  274. passwd varchar(255) DEFAULT '' NOT NULL,
  275. status integer DEFAULT '0' NOT NULL,
  276. PRIMARY KEY (mediatypeid)
  277. );
  278. CREATE TABLE users (
  279. userid bigint NOT NULL,
  280. alias varchar(100) DEFAULT '' NOT NULL,
  281. name varchar(100) DEFAULT '' NOT NULL,
  282. surname varchar(100) DEFAULT '' NOT NULL,
  283. passwd char(32) DEFAULT '' NOT NULL,
  284. url varchar(255) DEFAULT '' NOT NULL,
  285. autologin integer DEFAULT '0' NOT NULL,
  286. autologout integer DEFAULT '900' NOT NULL,
  287. lang varchar(5) DEFAULT 'en_GB' NOT NULL,
  288. refresh integer DEFAULT '30' NOT NULL,
  289. type integer DEFAULT '0' NOT NULL,
  290. theme varchar(128) DEFAULT 'default' NOT NULL,
  291. attempt_failed integer DEFAULT 0 NOT NULL,
  292. attempt_ip varchar(39) DEFAULT '' NOT NULL,
  293. attempt_clock integer DEFAULT 0 NOT NULL,
  294. rows_per_page integer DEFAULT 50 NOT NULL,
  295. PRIMARY KEY (userid)
  296. );
  297. CREATE INDEX users_1 ON users (alias);
  298. CREATE TABLE usrgrp (
  299. usrgrpid bigint NOT NULL,
  300. name varchar(64) DEFAULT '' NOT NULL,
  301. gui_access integer DEFAULT '0' NOT NULL,
  302. users_status integer DEFAULT '0' NOT NULL,
  303. debug_mode integer DEFAULT '0' NOT NULL,
  304. PRIMARY KEY (usrgrpid)
  305. );
  306. CREATE INDEX usrgrp_1 ON usrgrp (name);
  307. CREATE TABLE users_groups (
  308. id bigint NOT NULL,
  309. usrgrpid bigint NOT NULL REFERENCES usrgrp (usrgrpid) ON DELETE CASCADE,
  310. userid bigint NOT NULL REFERENCES users (userid) ON DELETE CASCADE,
  311. PRIMARY KEY (id)
  312. );
  313. CREATE UNIQUE INDEX users_groups_1 ON users_groups (usrgrpid,userid);
  314. CREATE TABLE scripts (
  315. scriptid bigint NOT NULL,
  316. name varchar(255) DEFAULT '' NOT NULL,
  317. command varchar(255) DEFAULT '' NOT NULL,
  318. host_access integer DEFAULT '2' NOT NULL,
  319. usrgrpid bigint NULL REFERENCES usrgrp (usrgrpid),
  320. groupid bigint NULL REFERENCES groups (groupid),
  321. description text DEFAULT '' NOT NULL,
  322. confirmation varchar(255) DEFAULT '' NOT NULL,
  323. type integer DEFAULT '0' NOT NULL,
  324. execute_on integer DEFAULT '1' NOT NULL,
  325. PRIMARY KEY (scriptid)
  326. );
  327. CREATE TABLE actions (
  328. actionid bigint NOT NULL,
  329. name varchar(255) DEFAULT '' NOT NULL,
  330. eventsource integer DEFAULT '0' NOT NULL,
  331. evaltype integer DEFAULT '0' NOT NULL,
  332. status integer DEFAULT '0' NOT NULL,
  333. esc_period integer DEFAULT '0' NOT NULL,
  334. def_shortdata varchar(255) DEFAULT '' NOT NULL,
  335. def_longdata text DEFAULT '' NOT NULL,
  336. recovery_msg integer DEFAULT '0' NOT NULL,
  337. r_shortdata varchar(255) DEFAULT '' NOT NULL,
  338. r_longdata text DEFAULT '' NOT NULL,
  339. PRIMARY KEY (actionid)
  340. );
  341. CREATE INDEX actions_1 ON actions (eventsource,status);
  342. CREATE TABLE operations (
  343. operationid bigint NOT NULL,
  344. actionid bigint NOT NULL REFERENCES actions (actionid) ON DELETE CASCADE,
  345. operationtype integer DEFAULT '0' NOT NULL,
  346. esc_period integer DEFAULT '0' NOT NULL,
  347. esc_step_from integer DEFAULT '1' NOT NULL,
  348. esc_step_to integer DEFAULT '1' NOT NULL,
  349. evaltype integer DEFAULT '0' NOT NULL,
  350. PRIMARY KEY (operationid)
  351. );
  352. CREATE INDEX operations_1 ON operations (actionid);
  353. CREATE TABLE opmessage (
  354. operationid bigint NOT NULL REFERENCES operations (operationid) ON DELETE CASCADE,
  355. default_msg integer DEFAULT '0' NOT NULL,
  356. subject varchar(255) DEFAULT '' NOT NULL,
  357. message text DEFAULT '' NOT NULL,
  358. mediatypeid bigint NULL REFERENCES media_type (mediatypeid),
  359. PRIMARY KEY (operationid)
  360. );
  361. CREATE TABLE opmessage_grp (
  362. opmessage_grpid bigint NOT NULL,
  363. operationid bigint NOT NULL REFERENCES operations (operationid) ON DELETE CASCADE,
  364. usrgrpid bigint NOT NULL REFERENCES usrgrp (usrgrpid),
  365. PRIMARY KEY (opmessage_grpid)
  366. );
  367. CREATE UNIQUE INDEX opmessage_grp_1 ON opmessage_grp (operationid,usrgrpid);
  368. CREATE TABLE opmessage_usr (
  369. opmessage_usrid bigint NOT NULL,
  370. operationid bigint NOT NULL REFERENCES operations (operationid) ON DELETE CASCADE,
  371. userid bigint NOT NULL REFERENCES users (userid),
  372. PRIMARY KEY (opmessage_usrid)
  373. );
  374. CREATE UNIQUE INDEX opmessage_usr_1 ON opmessage_usr (operationid,userid);
  375. CREATE TABLE opcommand (
  376. operationid bigint NOT NULL REFERENCES operations (operationid) ON DELETE CASCADE,
  377. type integer DEFAULT '0' NOT NULL,
  378. scriptid bigint NULL REFERENCES scripts (scriptid),
  379. execute_on integer DEFAULT '0' NOT NULL,
  380. port varchar(64) DEFAULT '' NOT NULL,
  381. authtype integer DEFAULT '0' NOT NULL,
  382. username varchar(64) DEFAULT '' NOT NULL,
  383. password varchar(64) DEFAULT '' NOT NULL,
  384. publickey varchar(64) DEFAULT '' NOT NULL,
  385. privatekey varchar(64) DEFAULT '' NOT NULL,
  386. command text DEFAULT '' NOT NULL,
  387. PRIMARY KEY (operationid)
  388. );
  389. CREATE TABLE opcommand_hst (
  390. opcommand_hstid bigint NOT NULL,
  391. operationid bigint NOT NULL REFERENCES operations (operationid) ON DELETE CASCADE,
  392. hostid bigint NULL REFERENCES hosts (hostid),
  393. PRIMARY KEY (opcommand_hstid)
  394. );
  395. CREATE INDEX opcommand_hst_1 ON opcommand_hst (operationid);
  396. CREATE TABLE opcommand_grp (
  397. opcommand_grpid bigint NOT NULL,
  398. operationid bigint NOT NULL REFERENCES operations (operationid) ON DELETE CASCADE,
  399. groupid bigint NOT NULL REFERENCES groups (groupid),
  400. PRIMARY KEY (opcommand_grpid)
  401. );
  402. CREATE INDEX opcommand_grp_1 ON opcommand_grp (operationid);
  403. CREATE TABLE opgroup (
  404. opgroupid bigint NOT NULL,
  405. operationid bigint NOT NULL REFERENCES operations (operationid) ON DELETE CASCADE,
  406. groupid bigint NOT NULL REFERENCES groups (groupid),
  407. PRIMARY KEY (opgroupid)
  408. );
  409. CREATE UNIQUE INDEX opgroup_1 ON opgroup (operationid,groupid);
  410. CREATE TABLE optemplate (
  411. optemplateid bigint NOT NULL,
  412. operationid bigint NOT NULL REFERENCES operations (operationid) ON DELETE CASCADE,
  413. templateid bigint NOT NULL REFERENCES hosts (hostid),
  414. PRIMARY KEY (optemplateid)
  415. );
  416. CREATE UNIQUE INDEX optemplate_1 ON optemplate (operationid,templateid);
  417. CREATE TABLE opconditions (
  418. opconditionid bigint NOT NULL,
  419. operationid bigint NOT NULL REFERENCES operations (operationid) ON DELETE CASCADE,
  420. conditiontype integer DEFAULT '0' NOT NULL,
  421. operator integer DEFAULT '0' NOT NULL,
  422. value varchar(255) DEFAULT '' NOT NULL,
  423. PRIMARY KEY (opconditionid)
  424. );
  425. CREATE INDEX opconditions_1 ON opconditions (operationid);
  426. CREATE TABLE conditions (
  427. conditionid bigint NOT NULL,
  428. actionid bigint NOT NULL REFERENCES actions (actionid) ON DELETE CASCADE,
  429. conditiontype integer DEFAULT '0' NOT NULL,
  430. operator integer DEFAULT '0' NOT NULL,
  431. value varchar(255) DEFAULT '' NOT NULL,
  432. PRIMARY KEY (conditionid)
  433. );
  434. CREATE INDEX conditions_1 ON conditions (actionid);
  435. CREATE TABLE config (
  436. configid bigint NOT NULL,
  437. alert_history integer DEFAULT '0' NOT NULL,
  438. event_history integer DEFAULT '0' NOT NULL,
  439. refresh_unsupported integer DEFAULT '0' NOT NULL,
  440. work_period varchar(100) DEFAULT '1-5,00:00-24:00' NOT NULL,
  441. alert_usrgrpid bigint NULL REFERENCES usrgrp (usrgrpid),
  442. event_ack_enable integer DEFAULT '1' NOT NULL,
  443. event_expire integer DEFAULT '7' NOT NULL,
  444. event_show_max integer DEFAULT '100' NOT NULL,
  445. default_theme varchar(128) DEFAULT 'originalblue' NOT NULL,
  446. authentication_type integer DEFAULT '0' NOT NULL,
  447. ldap_host varchar(255) DEFAULT '' NOT NULL,
  448. ldap_port integer DEFAULT 389 NOT NULL,
  449. ldap_base_dn varchar(255) DEFAULT '' NOT NULL,
  450. ldap_bind_dn varchar(255) DEFAULT '' NOT NULL,
  451. ldap_bind_password varchar(128) DEFAULT '' NOT NULL,
  452. ldap_search_attribute varchar(128) DEFAULT '' NOT NULL,
  453. dropdown_first_entry integer DEFAULT '1' NOT NULL,
  454. dropdown_first_remember integer DEFAULT '1' NOT NULL,
  455. discovery_groupid bigint NOT NULL REFERENCES groups (groupid),
  456. max_in_table integer DEFAULT '50' NOT NULL,
  457. search_limit integer DEFAULT '1000' NOT NULL,
  458. severity_color_0 varchar(6) DEFAULT 'DBDBDB' NOT NULL,
  459. severity_color_1 varchar(6) DEFAULT 'D6F6FF' NOT NULL,
  460. severity_color_2 varchar(6) DEFAULT 'FFF6A5' NOT NULL,
  461. severity_color_3 varchar(6) DEFAULT 'FFB689' NOT NULL,
  462. severity_color_4 varchar(6) DEFAULT 'FF9999' NOT NULL,
  463. severity_color_5 varchar(6) DEFAULT 'FF3838' NOT NULL,
  464. severity_name_0 varchar(32) DEFAULT 'Not classified' NOT NULL,
  465. severity_name_1 varchar(32) DEFAULT 'Information' NOT NULL,
  466. severity_name_2 varchar(32) DEFAULT 'Warning' NOT NULL,
  467. severity_name_3 varchar(32) DEFAULT 'Average' NOT NULL,
  468. severity_name_4 varchar(32) DEFAULT 'High' NOT NULL,
  469. severity_name_5 varchar(32) DEFAULT 'Disaster' NOT NULL,
  470. ok_period integer DEFAULT '1800' NOT NULL,
  471. blink_period integer DEFAULT '1800' NOT NULL,
  472. problem_unack_color varchar(6) DEFAULT 'DC0000' NOT NULL,
  473. problem_ack_color varchar(6) DEFAULT 'DC0000' NOT NULL,
  474. ok_unack_color varchar(6) DEFAULT '00AA00' NOT NULL,
  475. ok_ack_color varchar(6) DEFAULT '00AA00' NOT NULL,
  476. problem_unack_style integer DEFAULT '1' NOT NULL,
  477. problem_ack_style integer DEFAULT '1' NOT NULL,
  478. ok_unack_style integer DEFAULT '1' NOT NULL,
  479. ok_ack_style integer DEFAULT '1' NOT NULL,
  480. snmptrap_logging integer DEFAULT '1' NOT NULL,
  481. server_check_interval integer DEFAULT '10' NOT NULL,
  482. PRIMARY KEY (configid)
  483. );
  484. CREATE TABLE triggers (
  485. triggerid bigint NOT NULL,
  486. expression varchar(255) DEFAULT '' NOT NULL,
  487. description varchar(255) DEFAULT '' NOT NULL,
  488. url varchar(255) DEFAULT '' NOT NULL,
  489. status integer DEFAULT '0' NOT NULL,
  490. value integer DEFAULT '0' NOT NULL,
  491. priority integer DEFAULT '0' NOT NULL,
  492. lastchange integer DEFAULT '0' NOT NULL,
  493. comments text DEFAULT '' NOT NULL,
  494. error varchar(128) DEFAULT '' NOT NULL,
  495. templateid bigint NULL REFERENCES triggers (triggerid) ON DELETE CASCADE,
  496. type integer DEFAULT '0' NOT NULL,
  497. value_flags integer DEFAULT '0' NOT NULL,
  498. flags integer DEFAULT '0' NOT NULL,
  499. PRIMARY KEY (triggerid)
  500. );
  501. CREATE INDEX triggers_1 ON triggers (status);
  502. CREATE INDEX triggers_2 ON triggers (value);
  503. CREATE TABLE trigger_depends (
  504. triggerdepid bigint NOT NULL,
  505. triggerid_down bigint NOT NULL REFERENCES triggers (triggerid) ON DELETE CASCADE,
  506. triggerid_up bigint NOT NULL REFERENCES triggers (triggerid) ON DELETE CASCADE,
  507. PRIMARY KEY (triggerdepid)
  508. );
  509. CREATE UNIQUE INDEX trigger_depends_1 ON trigger_depends (triggerid_down,triggerid_up);
  510. CREATE INDEX trigger_depends_2 ON trigger_depends (triggerid_up);
  511. CREATE TABLE functions (
  512. functionid bigint NOT NULL,
  513. itemid bigint NOT NULL REFERENCES items (itemid) ON DELETE CASCADE,
  514. triggerid bigint NOT NULL REFERENCES triggers (triggerid) ON DELETE CASCADE,
  515. function varchar(12) DEFAULT '' NOT NULL,
  516. parameter varchar(255) DEFAULT '0' NOT NULL,
  517. PRIMARY KEY (functionid)
  518. );
  519. CREATE INDEX functions_1 ON functions (triggerid);
  520. CREATE INDEX functions_2 ON functions (itemid,function,parameter);
  521. CREATE TABLE graphs (
  522. graphid bigint NOT NULL,
  523. name varchar(128) DEFAULT '' NOT NULL,
  524. width integer DEFAULT '0' NOT NULL,
  525. height integer DEFAULT '0' NOT NULL,
  526. yaxismin double(16,4) DEFAULT '0' NOT NULL,
  527. yaxismax double(16,4) DEFAULT '0' NOT NULL,
  528. templateid bigint NULL REFERENCES graphs (graphid) ON DELETE CASCADE,
  529. show_work_period integer DEFAULT '1' NOT NULL,
  530. show_triggers integer DEFAULT '1' NOT NULL,
  531. graphtype integer DEFAULT '0' NOT NULL,
  532. show_legend integer DEFAULT '1' NOT NULL,
  533. show_3d integer DEFAULT '0' NOT NULL,
  534. percent_left double(16,4) DEFAULT '0' NOT NULL,
  535. percent_right double(16,4) DEFAULT '0' NOT NULL,
  536. ymin_type integer DEFAULT '0' NOT NULL,
  537. ymax_type integer DEFAULT '0' NOT NULL,
  538. ymin_itemid bigint NULL REFERENCES items (itemid),
  539. ymax_itemid bigint NULL REFERENCES items (itemid),
  540. flags integer DEFAULT '0' NOT NULL,
  541. PRIMARY KEY (graphid)
  542. );
  543. CREATE INDEX graphs_graphs_1 ON graphs (name);
  544. CREATE TABLE graphs_items (
  545. gitemid bigint NOT NULL,
  546. graphid bigint NOT NULL REFERENCES graphs (graphid) ON DELETE CASCADE,
  547. itemid bigint NOT NULL REFERENCES items (itemid) ON DELETE CASCADE,
  548. drawtype integer DEFAULT '0' NOT NULL,
  549. sortorder integer DEFAULT '0' NOT NULL,
  550. color varchar(6) DEFAULT '009600' NOT NULL,
  551. yaxisside integer DEFAULT '1' NOT NULL,
  552. calc_fnc integer DEFAULT '2' NOT NULL,
  553. type integer DEFAULT '0' NOT NULL,
  554. PRIMARY KEY (gitemid)
  555. );
  556. CREATE INDEX graphs_items_1 ON graphs_items (itemid);
  557. CREATE INDEX graphs_items_2 ON graphs_items (graphid);
  558. CREATE TABLE graph_theme (
  559. graphthemeid bigint NOT NULL,
  560. description varchar(64) DEFAULT '' NOT NULL,
  561. theme varchar(64) DEFAULT '' NOT NULL,
  562. backgroundcolor varchar(6) DEFAULT 'F0F0F0' NOT NULL,
  563. graphcolor varchar(6) DEFAULT 'FFFFFF' NOT NULL,
  564. graphbordercolor varchar(6) DEFAULT '222222' NOT NULL,
  565. gridcolor varchar(6) DEFAULT 'CCCCCC' NOT NULL,
  566. maingridcolor varchar(6) DEFAULT 'AAAAAA' NOT NULL,
  567. gridbordercolor varchar(6) DEFAULT '000000' NOT NULL,
  568. textcolor varchar(6) DEFAULT '202020' NOT NULL,
  569. highlightcolor varchar(6) DEFAULT 'AA4444' NOT NULL,
  570. leftpercentilecolor varchar(6) DEFAULT '11CC11' NOT NULL,
  571. rightpercentilecolor varchar(6) DEFAULT 'CC1111' NOT NULL,
  572. nonworktimecolor varchar(6) DEFAULT 'CCCCCC' NOT NULL,
  573. gridview integer DEFAULT 1 NOT NULL,
  574. legendview integer DEFAULT 1 NOT NULL,
  575. PRIMARY KEY (graphthemeid)
  576. );
  577. CREATE INDEX graph_theme_1 ON graph_theme (description);
  578. CREATE INDEX graph_theme_2 ON graph_theme (theme);
  579. CREATE TABLE help_items (
  580. itemtype integer DEFAULT '0' NOT NULL,
  581. key_ varchar(255) DEFAULT '' NOT NULL,
  582. description varchar(255) DEFAULT '' NOT NULL,
  583. PRIMARY KEY (itemtype,key_)
  584. );
  585. CREATE TABLE globalmacro (
  586. globalmacroid bigint NOT NULL,
  587. macro varchar(64) DEFAULT '' NOT NULL,
  588. value varchar(255) DEFAULT '' NOT NULL,
  589. PRIMARY KEY (globalmacroid)
  590. );
  591. CREATE INDEX globalmacro_1 ON globalmacro (macro);
  592. CREATE TABLE hostmacro (
  593. hostmacroid bigint NOT NULL,
  594. hostid bigint NOT NULL REFERENCES hosts (hostid) ON DELETE CASCADE,
  595. macro varchar(64) DEFAULT '' NOT NULL,
  596. value varchar(255) DEFAULT '' NOT NULL,
  597. PRIMARY KEY (hostmacroid)
  598. );
  599. CREATE UNIQUE INDEX hostmacro_1 ON hostmacro (hostid,macro);
  600. CREATE TABLE hosts_groups (
  601. hostgroupid bigint NOT NULL,
  602. hostid bigint NOT NULL REFERENCES hosts (hostid) ON DELETE CASCADE,
  603. groupid bigint NOT NULL REFERENCES groups (groupid) ON DELETE CASCADE,
  604. PRIMARY KEY (hostgroupid)
  605. );
  606. CREATE UNIQUE INDEX hosts_groups_1 ON hosts_groups (hostid,groupid);
  607. CREATE INDEX hosts_groups_2 ON hosts_groups (groupid);
  608. CREATE TABLE hosts_templates (
  609. hosttemplateid bigint NOT NULL,
  610. hostid bigint NOT NULL REFERENCES hosts (hostid) ON DELETE CASCADE,
  611. templateid bigint NOT NULL REFERENCES hosts (hostid) ON DELETE CASCADE,
  612. PRIMARY KEY (hosttemplateid)
  613. );
  614. CREATE UNIQUE INDEX hosts_templates_1 ON hosts_templates (hostid,templateid);
  615. CREATE INDEX hosts_templates_2 ON hosts_templates (templateid);
  616. CREATE TABLE items_applications (
  617. itemappid bigint NOT NULL,
  618. applicationid bigint NOT NULL REFERENCES applications (applicationid) ON DELETE CASCADE,
  619. itemid bigint NOT NULL REFERENCES items (itemid) ON DELETE CASCADE,
  620. PRIMARY KEY (itemappid)
  621. );
  622. CREATE UNIQUE INDEX items_applications_1 ON items_applications (applicationid,itemid);
  623. CREATE INDEX items_applications_2 ON items_applications (itemid);
  624. CREATE TABLE mappings (
  625. mappingid bigint NOT NULL,
  626. valuemapid bigint NOT NULL REFERENCES valuemaps (valuemapid) ON DELETE CASCADE,
  627. value varchar(64) DEFAULT '' NOT NULL,
  628. newvalue varchar(64) DEFAULT '' NOT NULL,
  629. PRIMARY KEY (mappingid)
  630. );
  631. CREATE INDEX mappings_1 ON mappings (valuemapid);
  632. CREATE TABLE media (
  633. mediaid bigint NOT NULL,
  634. userid bigint NOT NULL REFERENCES users (userid) ON DELETE CASCADE,
  635. mediatypeid bigint NOT NULL REFERENCES media_type (mediatypeid) ON DELETE CASCADE,
  636. sendto varchar(100) DEFAULT '' NOT NULL,
  637. active integer DEFAULT '0' NOT NULL,
  638. severity integer DEFAULT '63' NOT NULL,
  639. period varchar(100) DEFAULT '1-7,00:00-24:00' NOT NULL,
  640. PRIMARY KEY (mediaid)
  641. );
  642. CREATE INDEX media_1 ON media (userid);
  643. CREATE INDEX media_2 ON media (mediatypeid);
  644. CREATE TABLE rights (
  645. rightid bigint NOT NULL,
  646. groupid bigint NOT NULL REFERENCES usrgrp (usrgrpid) ON DELETE CASCADE,
  647. permission integer DEFAULT '0' NOT NULL,
  648. id bigint NOT NULL REFERENCES groups (groupid) ON DELETE CASCADE,
  649. PRIMARY KEY (rightid)
  650. );
  651. CREATE INDEX rights_1 ON rights (groupid);
  652. CREATE INDEX rights_2 ON rights (id);
  653. CREATE TABLE services (
  654. serviceid bigint NOT NULL,
  655. name varchar(128) DEFAULT '' NOT NULL,
  656. status integer DEFAULT '0' NOT NULL,
  657. algorithm integer DEFAULT '0' NOT NULL,
  658. triggerid bigint NULL REFERENCES triggers (triggerid) ON DELETE CASCADE,
  659. showsla integer DEFAULT '0' NOT NULL,
  660. goodsla double(16,4) DEFAULT '99.9' NOT NULL,
  661. sortorder integer DEFAULT '0' NOT NULL,
  662. PRIMARY KEY (serviceid)
  663. );
  664. CREATE INDEX services_1 ON services (triggerid);
  665. CREATE TABLE services_links (
  666. linkid bigint NOT NULL,
  667. serviceupid bigint NOT NULL REFERENCES services (serviceid) ON DELETE CASCADE,
  668. servicedownid bigint NOT NULL REFERENCES services (serviceid) ON DELETE CASCADE,
  669. soft integer DEFAULT '0' NOT NULL,
  670. PRIMARY KEY (linkid)
  671. );
  672. CREATE INDEX services_links_links_1 ON services_links (servicedownid);
  673. CREATE UNIQUE INDEX services_links_links_2 ON services_links (serviceupid,servicedownid);
  674. CREATE TABLE services_times (
  675. timeid bigint NOT NULL,
  676. serviceid bigint NOT NULL REFERENCES services (serviceid) ON DELETE CASCADE,
  677. type integer DEFAULT '0' NOT NULL,
  678. ts_from integer DEFAULT '0' NOT NULL,
  679. ts_to integer DEFAULT '0' NOT NULL,
  680. note varchar(255) DEFAULT '' NOT NULL,
  681. PRIMARY KEY (timeid)
  682. );
  683. CREATE INDEX services_times_times_1 ON services_times (serviceid,type,ts_from,ts_to);
  684. CREATE TABLE icon_map (
  685. iconmapid bigint NOT NULL,
  686. name varchar(64) DEFAULT '' NOT NULL,
  687. default_iconid bigint NOT NULL REFERENCES images (imageid),
  688. PRIMARY KEY (iconmapid)
  689. );
  690. CREATE INDEX icon_map_1 ON icon_map (name);
  691. CREATE TABLE icon_mapping (
  692. iconmappingid bigint NOT NULL,
  693. iconmapid bigint NOT NULL REFERENCES icon_map (iconmapid) ON DELETE CASCADE,
  694. iconid bigint NOT NULL REFERENCES images (imageid),
  695. inventory_link integer DEFAULT '0' NOT NULL,
  696. expression varchar(64) DEFAULT '' NOT NULL,
  697. sortorder integer DEFAULT '0' NOT NULL,
  698. PRIMARY KEY (iconmappingid)
  699. );
  700. CREATE INDEX icon_mapping_1 ON icon_mapping (iconmapid);
  701. CREATE TABLE sysmaps (
  702. sysmapid bigint NOT NULL,
  703. name varchar(128) DEFAULT '' NOT NULL,
  704. width integer DEFAULT '600' NOT NULL,
  705. height integer DEFAULT '400' NOT NULL,
  706. backgroundid bigint NULL REFERENCES images (imageid),
  707. label_type integer DEFAULT '2' NOT NULL,
  708. label_location integer DEFAULT '3' NOT NULL,
  709. highlight integer DEFAULT '1' NOT NULL,
  710. expandproblem integer DEFAULT '1' NOT NULL,
  711. markelements integer DEFAULT '0' NOT NULL,
  712. show_unack integer DEFAULT '0' NOT NULL,
  713. grid_size integer DEFAULT '50' NOT NULL,
  714. grid_show integer DEFAULT '1' NOT NULL,
  715. grid_align integer DEFAULT '1' NOT NULL,
  716. label_format integer DEFAULT '0' NOT NULL,
  717. label_type_host integer DEFAULT '2' NOT NULL,
  718. label_type_hostgroup integer DEFAULT '2' NOT NULL,
  719. label_type_trigger integer DEFAULT '2' NOT NULL,
  720. label_type_map integer DEFAULT '2' NOT NULL,
  721. label_type_image integer DEFAULT '2' NOT NULL,
  722. label_string_host varchar(255) DEFAULT '' NOT NULL,
  723. label_string_hostgroup varchar(255) DEFAULT '' NOT NULL,
  724. label_string_trigger varchar(255) DEFAULT '' NOT NULL,
  725. label_string_map varchar(255) DEFAULT '' NOT NULL,
  726. label_string_image varchar(255) DEFAULT '' NOT NULL,
  727. iconmapid bigint NULL REFERENCES icon_map (iconmapid),
  728. expand_macros integer DEFAULT '0' NOT NULL,
  729. PRIMARY KEY (sysmapid)
  730. );
  731. CREATE INDEX sysmaps_1 ON sysmaps (name);
  732. CREATE TABLE sysmaps_elements (
  733. selementid bigint NOT NULL,
  734. sysmapid bigint NOT NULL REFERENCES sysmaps (sysmapid) ON DELETE CASCADE,
  735. elementid bigint DEFAULT '0' NOT NULL,
  736. elementtype integer DEFAULT '0' NOT NULL,
  737. iconid_off bigint NULL REFERENCES images (imageid),
  738. iconid_on bigint NULL REFERENCES images (imageid),
  739. label varchar(255) DEFAULT '' NOT NULL,
  740. label_location integer NULL,
  741. x integer DEFAULT '0' NOT NULL,
  742. y integer DEFAULT '0' NOT NULL,
  743. iconid_disabled bigint NULL REFERENCES images (imageid),
  744. iconid_maintenance bigint NULL REFERENCES images (imageid),
  745. elementsubtype integer DEFAULT '0' NOT NULL,
  746. areatype integer DEFAULT '0' NOT NULL,
  747. width integer DEFAULT '200' NOT NULL,
  748. height integer DEFAULT '200' NOT NULL,
  749. viewtype integer DEFAULT '0' NOT NULL,
  750. use_iconmap integer DEFAULT '1' NOT NULL,
  751. PRIMARY KEY (selementid)
  752. );
  753. CREATE TABLE sysmaps_links (
  754. linkid bigint NOT NULL,
  755. sysmapid bigint NOT NULL REFERENCES sysmaps (sysmapid) ON DELETE CASCADE,
  756. selementid1 bigint NOT NULL REFERENCES sysmaps_elements (selementid) ON DELETE CASCADE,
  757. selementid2 bigint NOT NULL REFERENCES sysmaps_elements (selementid) ON DELETE CASCADE,
  758. drawtype integer DEFAULT '0' NOT NULL,
  759. color varchar(6) DEFAULT '000000' NOT NULL,
  760. label varchar(255) DEFAULT '' NOT NULL,
  761. PRIMARY KEY (linkid)
  762. );
  763. CREATE TABLE sysmaps_link_triggers (
  764. linktriggerid bigint NOT NULL,
  765. linkid bigint NOT NULL REFERENCES sysmaps_links (linkid) ON DELETE CASCADE,
  766. triggerid bigint NOT NULL REFERENCES triggers (triggerid) ON DELETE CASCADE,
  767. drawtype integer DEFAULT '0' NOT NULL,
  768. color varchar(6) DEFAULT '000000' NOT NULL,
  769. PRIMARY KEY (linktriggerid)
  770. );
  771. CREATE UNIQUE INDEX sysmaps_link_triggers_1 ON sysmaps_link_triggers (linkid,triggerid);
  772. CREATE TABLE sysmap_element_url (
  773. sysmapelementurlid bigint NOT NULL,
  774. selementid bigint NOT NULL REFERENCES sysmaps_elements (selementid) ON DELETE CASCADE,
  775. name varchar(255) NOT NULL,
  776. url varchar(255) DEFAULT '' NOT NULL,
  777. PRIMARY KEY (sysmapelementurlid)
  778. );
  779. CREATE UNIQUE INDEX sysmap_element_url_1 ON sysmap_element_url (selementid,name);
  780. CREATE TABLE sysmap_url (
  781. sysmapurlid bigint NOT NULL,
  782. sysmapid bigint NOT NULL REFERENCES sysmaps (sysmapid) ON DELETE CASCADE,
  783. name varchar(255) NOT NULL,
  784. url varchar(255) DEFAULT '' NOT NULL,
  785. elementtype integer DEFAULT '0' NOT NULL,
  786. PRIMARY KEY (sysmapurlid)
  787. );
  788. CREATE UNIQUE INDEX sysmap_url_1 ON sysmap_url (sysmapid,name);
  789. CREATE TABLE maintenances_hosts (
  790. maintenance_hostid bigint NOT NULL,
  791. maintenanceid bigint NOT NULL REFERENCES maintenances (maintenanceid) ON DELETE CASCADE,
  792. hostid bigint NOT NULL REFERENCES hosts (hostid) ON DELETE CASCADE,
  793. PRIMARY KEY (maintenance_hostid)
  794. );
  795. CREATE UNIQUE INDEX maintenances_hosts_1 ON maintenances_hosts (maintenanceid,hostid);
  796. CREATE TABLE maintenances_groups (
  797. maintenance_groupid bigint NOT NULL,
  798. maintenanceid bigint NOT NULL REFERENCES maintenances (maintenanceid) ON DELETE CASCADE,
  799. groupid bigint NOT NULL REFERENCES groups (groupid) ON DELETE CASCADE,
  800. PRIMARY KEY (maintenance_groupid)
  801. );
  802. CREATE UNIQUE INDEX maintenances_groups_1 ON maintenances_groups (maintenanceid,groupid);
  803. CREATE TABLE timeperiods (
  804. timeperiodid bigint NOT NULL,
  805. timeperiod_type integer DEFAULT '0' NOT NULL,
  806. every integer DEFAULT '0' NOT NULL,
  807. month integer DEFAULT '0' NOT NULL,
  808. dayofweek integer DEFAULT '0' NOT NULL,
  809. day integer DEFAULT '0' NOT NULL,
  810. start_time integer DEFAULT '0' NOT NULL,
  811. period integer DEFAULT '0' NOT NULL,
  812. start_date integer DEFAULT '0' NOT NULL,
  813. PRIMARY KEY (timeperiodid)
  814. );
  815. CREATE TABLE maintenances_windows (
  816. maintenance_timeperiodid bigint NOT NULL,
  817. maintenanceid bigint NOT NULL REFERENCES maintenances (maintenanceid) ON DELETE CASCADE,
  818. timeperiodid bigint NOT NULL REFERENCES timeperiods (timeperiodid) ON DELETE CASCADE,
  819. PRIMARY KEY (maintenance_timeperiodid)
  820. );
  821. CREATE UNIQUE INDEX maintenances_windows_1 ON maintenances_windows (maintenanceid,timeperiodid);
  822. CREATE TABLE regexps (
  823. regexpid bigint NOT NULL,
  824. name varchar(128) DEFAULT '' NOT NULL,
  825. test_string text DEFAULT '' NOT NULL,
  826. PRIMARY KEY (regexpid)
  827. );
  828. CREATE INDEX regexps_1 ON regexps (name);
  829. CREATE TABLE expressions (
  830. expressionid bigint NOT NULL,
  831. regexpid bigint NOT NULL REFERENCES regexps (regexpid) ON DELETE CASCADE,
  832. expression varchar(255) DEFAULT '' NOT NULL,
  833. expression_type integer DEFAULT '0' NOT NULL,
  834. exp_delimiter varchar(1) DEFAULT '' NOT NULL,
  835. case_sensitive integer DEFAULT '0' NOT NULL,
  836. PRIMARY KEY (expressionid)
  837. );
  838. CREATE INDEX expressions_1 ON expressions (regexpid);
  839. CREATE TABLE nodes (
  840. nodeid integer NOT NULL,
  841. name varchar(64) DEFAULT '0' NOT NULL,
  842. ip varchar(39) DEFAULT '' NOT NULL,
  843. port integer DEFAULT '10051' NOT NULL,
  844. nodetype integer DEFAULT '0' NOT NULL,
  845. masterid integer NULL REFERENCES nodes (nodeid),
  846. PRIMARY KEY (nodeid)
  847. );
  848. CREATE TABLE node_cksum (
  849. nodeid integer NOT NULL REFERENCES nodes (nodeid) ON DELETE CASCADE,
  850. tablename varchar(64) DEFAULT '' NOT NULL,
  851. recordid bigint NOT NULL,
  852. cksumtype integer DEFAULT '0' NOT NULL,
  853. cksum text DEFAULT '' NOT NULL,
  854. sync char(128) DEFAULT '' NOT NULL
  855. );
  856. CREATE INDEX node_cksum_1 ON node_cksum (nodeid,cksumtype,tablename,recordid);
  857. CREATE TABLE ids (
  858. nodeid integer NOT NULL,
  859. table_name varchar(64) DEFAULT '' NOT NULL,
  860. field_name varchar(64) DEFAULT '' NOT NULL,
  861. nextid bigint NOT NULL,
  862. PRIMARY KEY (nodeid,table_name,field_name)
  863. );
  864. CREATE TABLE alerts (
  865. alertid bigint NOT NULL,
  866. actionid bigint NOT NULL REFERENCES actions (actionid) ON DELETE CASCADE,
  867. eventid bigint NOT NULL REFERENCES events (eventid) ON DELETE CASCADE,
  868. userid bigint NULL REFERENCES users (userid) ON DELETE CASCADE,
  869. clock integer DEFAULT '0' NOT NULL,
  870. mediatypeid bigint NULL REFERENCES media_type (mediatypeid) ON DELETE CASCADE,
  871. sendto varchar(100) DEFAULT '' NOT NULL,
  872. subject varchar(255) DEFAULT '' NOT NULL,
  873. message text DEFAULT '' NOT NULL,
  874. status integer DEFAULT '0' NOT NULL,
  875. retries integer DEFAULT '0' NOT NULL,
  876. error varchar(128) DEFAULT '' NOT NULL,
  877. nextcheck integer DEFAULT '0' NOT NULL,
  878. esc_step integer DEFAULT '0' NOT NULL,
  879. alerttype integer DEFAULT '0' NOT NULL,
  880. PRIMARY KEY (alertid)
  881. );
  882. CREATE INDEX alerts_1 ON alerts (actionid);
  883. CREATE INDEX alerts_2 ON alerts (clock);
  884. CREATE INDEX alerts_3 ON alerts (eventid);
  885. CREATE INDEX alerts_4 ON alerts (status,retries);
  886. CREATE INDEX alerts_5 ON alerts (mediatypeid);
  887. CREATE INDEX alerts_6 ON alerts (userid);
  888. CREATE TABLE history (
  889. itemid bigint NOT NULL,
  890. clock integer DEFAULT '0' NOT NULL,
  891. value double(16,4) DEFAULT '0.0000' NOT NULL,
  892. ns integer DEFAULT '0' NOT NULL
  893. );
  894. CREATE INDEX history_1 ON history (itemid,clock);
  895. CREATE TABLE history_sync (
  896. id integer NOT NULL PRIMARY KEY AUTOINCREMENT,
  897. nodeid integer NOT NULL,
  898. itemid bigint NOT NULL,
  899. clock integer DEFAULT '0' NOT NULL,
  900. value double(16,4) DEFAULT '0.0000' NOT NULL,
  901. ns integer DEFAULT '0' NOT NULL
  902. );
  903. CREATE INDEX history_sync_1 ON history_sync (nodeid,id);
  904. CREATE TABLE history_uint (
  905. itemid bigint NOT NULL,
  906. clock integer DEFAULT '0' NOT NULL,
  907. value bigint DEFAULT '0' NOT NULL,
  908. ns integer DEFAULT '0' NOT NULL
  909. );
  910. CREATE INDEX history_uint_1 ON history_uint (itemid,clock);
  911. CREATE TABLE history_uint_sync (
  912. id integer NOT NULL PRIMARY KEY AUTOINCREMENT,
  913. nodeid integer NOT NULL,
  914. itemid bigint NOT NULL,
  915. clock integer DEFAULT '0' NOT NULL,
  916. value bigint DEFAULT '0' NOT NULL,
  917. ns integer DEFAULT '0' NOT NULL
  918. );
  919. CREATE INDEX history_uint_sync_1 ON history_uint_sync (nodeid,id);
  920. CREATE TABLE history_str (
  921. itemid bigint NOT NULL,
  922. clock integer DEFAULT '0' NOT NULL,
  923. value varchar(255) DEFAULT '' NOT NULL,
  924. ns integer DEFAULT '0' NOT NULL
  925. );
  926. CREATE INDEX history_str_1 ON history_str (itemid,clock);
  927. CREATE TABLE history_str_sync (
  928. id integer NOT NULL PRIMARY KEY AUTOINCREMENT,
  929. nodeid integer NOT NULL,
  930. itemid bigint NOT NULL,
  931. clock integer DEFAULT '0' NOT NULL,
  932. value varchar(255) DEFAULT '' NOT NULL,
  933. ns integer DEFAULT '0' NOT NULL
  934. );
  935. CREATE INDEX history_str_sync_1 ON history_str_sync (nodeid,id);
  936. CREATE TABLE history_log (
  937. id bigint NOT NULL,
  938. itemid bigint NOT NULL,
  939. clock integer DEFAULT '0' NOT NULL,
  940. timestamp integer DEFAULT '0' NOT NULL,
  941. source varchar(64) DEFAULT '' NOT NULL,
  942. severity integer DEFAULT '0' NOT NULL,
  943. value text DEFAULT '' NOT NULL,
  944. logeventid integer DEFAULT '0' NOT NULL,
  945. ns integer DEFAULT '0' NOT NULL,
  946. PRIMARY KEY (id)
  947. );
  948. CREATE INDEX history_log_1 ON history_log (itemid,clock);
  949. CREATE UNIQUE INDEX history_log_2 ON history_log (itemid,id);
  950. CREATE TABLE history_text (
  951. id bigint NOT NULL,
  952. itemid bigint NOT NULL,
  953. clock integer DEFAULT '0' NOT NULL,
  954. value text DEFAULT '' NOT NULL,
  955. ns integer DEFAULT '0' NOT NULL,
  956. PRIMARY KEY (id)
  957. );
  958. CREATE INDEX history_text_1 ON history_text (itemid,clock);
  959. CREATE UNIQUE INDEX history_text_2 ON history_text (itemid,id);
  960. CREATE TABLE proxy_history (
  961. id integer NOT NULL PRIMARY KEY AUTOINCREMENT,
  962. itemid bigint NOT NULL,
  963. clock integer DEFAULT '0' NOT NULL,
  964. timestamp integer DEFAULT '0' NOT NULL,
  965. source varchar(64) DEFAULT '' NOT NULL,
  966. severity integer DEFAULT '0' NOT NULL,
  967. value text DEFAULT '' NOT NULL,
  968. logeventid integer DEFAULT '0' NOT NULL,
  969. ns integer DEFAULT '0' NOT NULL,
  970. status integer DEFAULT '0' NOT NULL
  971. );
  972. CREATE INDEX proxy_history_1 ON proxy_history (clock);
  973. CREATE TABLE proxy_dhistory (
  974. id integer NOT NULL PRIMARY KEY AUTOINCREMENT,
  975. clock integer DEFAULT '0' NOT NULL,
  976. druleid bigint NOT NULL,
  977. type integer DEFAULT '0' NOT NULL,
  978. ip varchar(39) DEFAULT '' NOT NULL,
  979. port integer DEFAULT '0' NOT NULL,
  980. key_ varchar(255) DEFAULT '' NOT NULL,
  981. value varchar(255) DEFAULT '' NOT NULL,
  982. status integer DEFAULT '0' NOT NULL,
  983. dcheckid bigint NULL,
  984. dns varchar(64) DEFAULT '' NOT NULL
  985. );
  986. CREATE INDEX proxy_dhistory_1 ON proxy_dhistory (clock);
  987. CREATE TABLE events (
  988. eventid bigint NOT NULL,
  989. source integer DEFAULT '0' NOT NULL,
  990. object integer DEFAULT '0' NOT NULL,
  991. objectid bigint DEFAULT '0' NOT NULL,
  992. clock integer DEFAULT '0' NOT NULL,
  993. value integer DEFAULT '0' NOT NULL,
  994. acknowledged integer DEFAULT '0' NOT NULL,
  995. ns integer DEFAULT '0' NOT NULL,
  996. value_changed integer DEFAULT '0' NOT NULL,
  997. PRIMARY KEY (eventid)
  998. );
  999. CREATE INDEX events_1 ON events (object,objectid,eventid);
  1000. CREATE INDEX events_2 ON events (clock);
  1001. CREATE TABLE trends (
  1002. itemid bigint NOT NULL,
  1003. clock integer DEFAULT '0' NOT NULL,
  1004. num integer DEFAULT '0' NOT NULL,
  1005. value_min double(16,4) DEFAULT '0.0000' NOT NULL,
  1006. value_avg double(16,4) DEFAULT '0.0000' NOT NULL,
  1007. value_max double(16,4) DEFAULT '0.0000' NOT NULL,
  1008. PRIMARY KEY (itemid,clock)
  1009. );
  1010. CREATE TABLE trends_uint (
  1011. itemid bigint NOT NULL,
  1012. clock integer DEFAULT '0' NOT NULL,
  1013. num integer DEFAULT '0' NOT NULL,
  1014. value_min bigint DEFAULT '0' NOT NULL,
  1015. value_avg bigint DEFAULT '0' NOT NULL,
  1016. value_max bigint DEFAULT '0' NOT NULL,
  1017. PRIMARY KEY (itemid,clock)
  1018. );
  1019. CREATE TABLE acknowledges (
  1020. acknowledgeid bigint NOT NULL,
  1021. userid bigint NOT NULL REFERENCES users (userid) ON DELETE CASCADE,
  1022. eventid bigint NOT NULL REFERENCES events (eventid) ON DELETE CASCADE,
  1023. clock integer DEFAULT '0' NOT NULL,
  1024. message varchar(255) DEFAULT '' NOT NULL,
  1025. PRIMARY KEY (acknowledgeid)
  1026. );
  1027. CREATE INDEX acknowledges_1 ON acknowledges (userid);
  1028. CREATE INDEX acknowledges_2 ON acknowledges (eventid);
  1029. CREATE INDEX acknowledges_3 ON acknowledges (clock);
  1030. CREATE TABLE auditlog (
  1031. auditid bigint NOT NULL,
  1032. userid bigint NOT NULL REFERENCES users (userid) ON DELETE CASCADE,
  1033. clock integer DEFAULT '0' NOT NULL,
  1034. action integer DEFAULT '0' NOT NULL,
  1035. resourcetype integer DEFAULT '0' NOT NULL,
  1036. details varchar(128) DEFAULT '0' NOT NULL,
  1037. ip varchar(39) DEFAULT '' NOT NULL,
  1038. resourceid bigint DEFAULT '0' NOT NULL,
  1039. resourcename varchar(255) DEFAULT '' NOT NULL,
  1040. PRIMARY KEY (auditid)
  1041. );
  1042. CREATE INDEX auditlog_1 ON auditlog (userid,clock);
  1043. CREATE INDEX auditlog_2 ON auditlog (clock);
  1044. CREATE TABLE auditlog_details (
  1045. auditdetailid bigint NOT NULL,
  1046. auditid bigint NOT NULL REFERENCES auditlog (auditid) ON DELETE CASCADE,
  1047. table_name varchar(64) DEFAULT '' NOT NULL,
  1048. field_name varchar(64) DEFAULT '' NOT NULL,
  1049. oldvalue text DEFAULT '' NOT NULL,
  1050. newvalue text DEFAULT '' NOT NULL,
  1051. PRIMARY KEY (auditdetailid)
  1052. );
  1053. CREATE INDEX auditlog_details_1 ON auditlog_details (auditid);
  1054. CREATE TABLE service_alarms (
  1055. servicealarmid bigint NOT NULL,
  1056. serviceid bigint NOT NULL REFERENCES services (serviceid) ON DELETE CASCADE,
  1057. clock integer DEFAULT '0' NOT NULL,
  1058. value integer DEFAULT '0' NOT NULL,
  1059. PRIMARY KEY (servicealarmid)
  1060. );
  1061. CREATE INDEX service_alarms_1 ON service_alarms (serviceid,clock);
  1062. CREATE INDEX service_alarms_2 ON service_alarms (clock);
  1063. CREATE TABLE autoreg_host (
  1064. autoreg_hostid bigint NOT NULL,
  1065. proxy_hostid bigint NULL REFERENCES hosts (hostid) ON DELETE CASCADE,
  1066. host varchar(64) DEFAULT '' NOT NULL,
  1067. listen_ip varchar(39) DEFAULT '' NOT NULL,
  1068. listen_port integer DEFAULT '0' NOT NULL,
  1069. listen_dns varchar(64) DEFAULT '' NOT NULL,
  1070. PRIMARY KEY (autoreg_hostid)
  1071. );
  1072. CREATE INDEX autoreg_host_1 ON autoreg_host (proxy_hostid,host);
  1073. CREATE TABLE proxy_autoreg_host (
  1074. id integer NOT NULL PRIMARY KEY AUTOINCREMENT,
  1075. clock integer DEFAULT '0' NOT NULL,
  1076. host varchar(64) DEFAULT '' NOT NULL,
  1077. listen_ip varchar(39) DEFAULT '' NOT NULL,
  1078. listen_port integer DEFAULT '0' NOT NULL,
  1079. listen_dns varchar(64) DEFAULT '' NOT NULL
  1080. );
  1081. CREATE INDEX proxy_autoreg_host_1 ON proxy_autoreg_host (clock);
  1082. CREATE TABLE dhosts (
  1083. dhostid bigint NOT NULL,
  1084. druleid bigint NOT NULL REFERENCES drules (druleid) ON DELETE CASCADE,
  1085. status integer DEFAULT '0' NOT NULL,
  1086. lastup integer DEFAULT '0' NOT NULL,
  1087. lastdown integer DEFAULT '0' NOT NULL,
  1088. PRIMARY KEY (dhostid)
  1089. );
  1090. CREATE INDEX dhosts_1 ON dhosts (druleid);
  1091. CREATE TABLE dservices (
  1092. dserviceid bigint NOT NULL,
  1093. dhostid bigint NOT NULL REFERENCES dhosts (dhostid) ON DELETE CASCADE,
  1094. type integer DEFAULT '0' NOT NULL,
  1095. key_ varchar(255) DEFAULT '' NOT NULL,
  1096. value varchar(255) DEFAULT '' NOT NULL,
  1097. port integer DEFAULT '0' NOT NULL,
  1098. status integer DEFAULT '0' NOT NULL,
  1099. lastup integer DEFAULT '0' NOT NULL,
  1100. lastdown integer DEFAULT '0' NOT NULL,
  1101. dcheckid bigint NOT NULL REFERENCES dchecks (dcheckid) ON DELETE CASCADE,
  1102. ip varchar(39) DEFAULT '' NOT NULL,
  1103. dns varchar(64) DEFAULT '' NOT NULL,
  1104. PRIMARY KEY (dserviceid)
  1105. );
  1106. CREATE UNIQUE INDEX dservices_1 ON dservices (dcheckid,type,key_,ip,port);
  1107. CREATE INDEX dservices_2 ON dservices (dhostid);
  1108. CREATE TABLE escalations (
  1109. escalationid bigint NOT NULL,
  1110. actionid bigint NOT NULL,
  1111. triggerid bigint NULL,
  1112. eventid bigint NULL,
  1113. r_eventid bigint NULL,
  1114. nextcheck integer DEFAULT '0' NOT NULL,
  1115. esc_step integer DEFAULT '0' NOT NULL,
  1116. status integer DEFAULT '0' NOT NULL,
  1117. PRIMARY KEY (escalationid)
  1118. );
  1119. CREATE INDEX escalations_1 ON escalations (actionid,triggerid);
  1120. CREATE TABLE globalvars (
  1121. globalvarid bigint NOT NULL,
  1122. snmp_lastsize integer DEFAULT '0' NOT NULL,
  1123. PRIMARY KEY (globalvarid)
  1124. );
  1125. CREATE TABLE graph_discovery (
  1126. graphdiscoveryid bigint NOT NULL,
  1127. graphid bigint NOT NULL REFERENCES graphs (graphid) ON DELETE CASCADE,
  1128. parent_graphid bigint NOT NULL REFERENCES graphs (graphid) ON DELETE CASCADE,
  1129. name varchar(128) DEFAULT '' NOT NULL,
  1130. PRIMARY KEY (graphdiscoveryid)
  1131. );
  1132. CREATE UNIQUE INDEX graph_discovery_1 ON graph_discovery (graphid,parent_graphid);
  1133. CREATE TABLE host_inventory (
  1134. hostid bigint NOT NULL REFERENCES hosts (hostid) ON DELETE CASCADE,
  1135. inventory_mode integer DEFAULT '0' NOT NULL,
  1136. type varchar(64) DEFAULT '' NOT NULL,
  1137. type_full varchar(64) DEFAULT '' NOT NULL,
  1138. name varchar(64) DEFAULT '' NOT NULL,
  1139. alias varchar(64) DEFAULT '' NOT NULL,
  1140. os varchar(64) DEFAULT '' NOT NULL,
  1141. os_full varchar(255) DEFAULT '' NOT NULL,
  1142. os_short varchar(64) DEFAULT '' NOT NULL,
  1143. serialno_a varchar(64) DEFAULT '' NOT NULL,
  1144. serialno_b varchar(64) DEFAULT '' NOT NULL,
  1145. tag varchar(64) DEFAULT '' NOT NULL,
  1146. asset_tag varchar(64) DEFAULT '' NOT NULL,
  1147. macaddress_a varchar(64) DEFAULT '' NOT NULL,
  1148. macaddress_b varchar(64) DEFAULT '' NOT NULL,
  1149. hardware varchar(255) DEFAULT '' NOT NULL,
  1150. hardware_full text DEFAULT '' NOT NULL,
  1151. software varchar(255) DEFAULT '' NOT NULL,
  1152. software_full text DEFAULT '' NOT NULL,
  1153. software_app_a varchar(64) DEFAULT '' NOT NULL,
  1154. software_app_b varchar(64) DEFAULT '' NOT NULL,
  1155. software_app_c varchar(64) DEFAULT '' NOT NULL,
  1156. software_app_d varchar(64) DEFAULT '' NOT NULL,
  1157. software_app_e varchar(64) DEFAULT '' NOT NULL,
  1158. contact text DEFAULT '' NOT NULL,
  1159. location text DEFAULT '' NOT NULL,
  1160. location_lat varchar(16) DEFAULT '' NOT NULL,
  1161. location_lon varchar(16) DEFAULT '' NOT NULL,
  1162. notes text DEFAULT '' NOT NULL,
  1163. chassis varchar(64) DEFAULT '' NOT NULL,
  1164. model varchar(64) DEFAULT '' NOT NULL,
  1165. hw_arch varchar(32) DEFAULT '' NOT NULL,
  1166. vendor varchar(64) DEFAULT '' NOT NULL,
  1167. contract_number varchar(64) DEFAULT '' NOT NULL,
  1168. installer_name varchar(64) DEFAULT '' NOT NULL,
  1169. deployment_status varchar(64) DEFAULT '' NOT NULL,
  1170. url_a varchar(255) DEFAULT '' NOT NULL,
  1171. url_b varchar(255) DEFAULT '' NOT NULL,
  1172. url_c varchar(255) DEFAULT '' NOT NULL,
  1173. host_networks text DEFAULT '' NOT NULL,
  1174. host_netmask varchar(39) DEFAULT '' NOT NULL,
  1175. host_router varchar(39) DEFAULT '' NOT NULL,
  1176. oob_ip varchar(39) DEFAULT '' NOT NULL,
  1177. oob_netmask varchar(39) DEFAULT '' NOT NULL,
  1178. oob_router varchar(39) DEFAULT '' NOT NULL,
  1179. date_hw_purchase varchar(64) DEFAULT '' NOT NULL,
  1180. date_hw_install varchar(64) DEFAULT '' NOT NULL,
  1181. date_hw_expiry varchar(64) DEFAULT '' NOT NULL,
  1182. date_hw_decomm varchar(64) DEFAULT '' NOT NULL,
  1183. site_address_a varchar(128) DEFAULT '' NOT NULL,
  1184. site_address_b varchar(128) DEFAULT '' NOT NULL,
  1185. site_address_c varchar(128) DEFAULT '' NOT NULL,
  1186. site_city varchar(128) DEFAULT '' NOT NULL,
  1187. site_state varchar(64) DEFAULT '' NOT NULL,
  1188. site_country varchar(64) DEFAULT '' NOT NULL,
  1189. site_zip varchar(64) DEFAULT '' NOT NULL,
  1190. site_rack varchar(128) DEFAULT '' NOT NULL,
  1191. site_notes text DEFAULT '' NOT NULL,
  1192. poc_1_name varchar(128) DEFAULT '' NOT NULL,
  1193. poc_1_email varchar(128) DEFAULT '' NOT NULL,
  1194. poc_1_phone_a varchar(64) DEFAULT '' NOT NULL,
  1195. poc_1_phone_b varchar(64) DEFAULT '' NOT NULL,
  1196. poc_1_cell varchar(64) DEFAULT '' NOT NULL,
  1197. poc_1_screen varchar(64) DEFAULT '' NOT NULL,
  1198. poc_1_notes text DEFAULT '' NOT NULL,
  1199. poc_2_name varchar(128) DEFAULT '' NOT NULL,
  1200. poc_2_email varchar(128) DEFAULT '' NOT NULL,
  1201. poc_2_phone_a varchar(64) DEFAULT '' NOT NULL,
  1202. poc_2_phone_b varchar(64) DEFAULT '' NOT NULL,
  1203. poc_2_cell varchar(64) DEFAULT '' NOT NULL,
  1204. poc_2_screen varchar(64) DEFAULT '' NOT NULL,
  1205. poc_2_notes text DEFAULT '' NOT NULL,
  1206. PRIMARY KEY (hostid)
  1207. );
  1208. CREATE TABLE housekeeper (
  1209. housekeeperid bigint NOT NULL,
  1210. tablename varchar(64) DEFAULT '' NOT NULL,
  1211. field varchar(64) DEFAULT '' NOT NULL,
  1212. value bigint NOT NULL,
  1213. PRIMARY KEY (housekeeperid)
  1214. );
  1215. CREATE TABLE images (
  1216. imageid bigint NOT NULL,
  1217. imagetype integer DEFAULT '0' NOT NULL,
  1218. name varchar(64) DEFAULT '0' NOT NULL,
  1219. image longblob DEFAULT '' NOT NULL,
  1220. PRIMARY KEY (imageid)
  1221. );
  1222. CREATE INDEX images_1 ON images (imagetype,name);
  1223. CREATE TABLE item_discovery (
  1224. itemdiscoveryid bigint NOT NULL,
  1225. itemid bigint NOT NULL REFERENCES items (itemid) ON DELETE CASCADE,
  1226. parent_itemid bigint NOT NULL REFERENCES items (itemid) ON DELETE CASCADE,
  1227. key_ varchar(255) DEFAULT '' NOT NULL,
  1228. lastcheck integer DEFAULT '0' NOT NULL,
  1229. ts_delete integer DEFAULT '0' NOT NULL,
  1230. PRIMARY KEY (itemdiscoveryid)
  1231. );
  1232. CREATE UNIQUE INDEX item_discovery_1 ON item_discovery (itemid,parent_itemid);
  1233. CREATE TABLE profiles (
  1234. profileid bigint NOT NULL,
  1235. userid bigint NOT NULL REFERENCES users (userid) ON DELETE CASCADE,
  1236. idx varchar(96) DEFAULT '' NOT NULL,
  1237. idx2 bigint DEFAULT '0' NOT NULL,
  1238. value_id bigint DEFAULT '0' NOT NULL,
  1239. value_int integer DEFAULT '0' NOT NULL,
  1240. value_str varchar(255) DEFAULT '' NOT NULL,
  1241. source varchar(96) DEFAULT '' NOT NULL,
  1242. type integer DEFAULT '0' NOT NULL,
  1243. PRIMARY KEY (profileid)
  1244. );
  1245. CREATE INDEX profiles_1 ON profiles (userid,idx,idx2);
  1246. CREATE INDEX profiles_2 ON profiles (userid,profileid);
  1247. CREATE TABLE sessions (
  1248. sessionid varchar(32) DEFAULT '' NOT NULL,
  1249. userid bigint NOT NULL REFERENCES users (userid) ON DELETE CASCADE,
  1250. lastaccess integer DEFAULT '0' NOT NULL,
  1251. status integer DEFAULT '0' NOT NULL,
  1252. PRIMARY KEY (sessionid)
  1253. );
  1254. CREATE INDEX sessions_1 ON sessions (userid,status);
  1255. CREATE TABLE trigger_discovery (
  1256. triggerdiscoveryid bigint NOT NULL,
  1257. triggerid bigint NOT NULL REFERENCES triggers (triggerid) ON DELETE CASCADE,
  1258. parent_triggerid bigint NOT NULL REFERENCES triggers (triggerid) ON DELETE CASCADE,
  1259. name varchar(255) DEFAULT '' NOT NULL,
  1260. PRIMARY KEY (triggerdiscoveryid)
  1261. );
  1262. CREATE UNIQUE INDEX trigger_discovery_1 ON trigger_discovery (triggerid,parent_triggerid);
  1263. CREATE TABLE user_history (
  1264. userhistoryid bigint NOT NULL,
  1265. userid bigint NOT NULL REFERENCES users (userid) ON DELETE CASCADE,
  1266. title1 varchar(255) DEFAULT '' NOT NULL,
  1267. url1 varchar(255) DEFAULT '' NOT NULL,
  1268. title2 varchar(255) DEFAULT '' NOT NULL,
  1269. url2 varchar(255) DEFAULT '' NOT NULL,
  1270. title3 varchar(255) DEFAULT '' NOT NULL,
  1271. url3 varchar(255) DEFAULT '' NOT NULL,
  1272. title4 varchar(255) DEFAULT '' NOT NULL,
  1273. url4 varchar(255) DEFAULT '' NOT NULL,
  1274. title5 varchar(255) DEFAULT '' NOT NULL,
  1275. url5 varchar(255) DEFAULT '' NOT NULL,
  1276. PRIMARY KEY (userhistoryid)
  1277. );
  1278. CREATE UNIQUE INDEX user_history_1 ON user_history (userid);
  1279. ]
  1280. 19356:20140305:035903.519 In init_database_cache()
  1281. 19356:20140305:035903.519 In zbx_mem_required_size() size:0 chunks_num:4 descr:'history cache' param:'HistoryCacheSize'
  1282. 19356:20140305:035903.520 End of zbx_mem_required_size() size:495
  1283. 19356:20140305:035903.520 In zbx_mem_create() descr:'history cache' param:'HistoryCacheSize' size:8388575
  1284. 19356:20140305:035903.520 valid user addresses: [0x7f3345d9d160, 0x7f334659cfd8] total size: 8388216
  1285. 19356:20140305:035903.520 End of zbx_mem_create()
  1286. 19356:20140305:035903.521 In zbx_mem_required_size() size:0 chunks_num:1 descr:'history text cache' param:'HistoryTextCacheSize'
  1287. 19356:20140305:035903.521 End of zbx_mem_required_size() size:411
  1288. 19356:20140305:035903.521 In zbx_mem_create() descr:'history text cache' param:'HistoryTextCacheSize' size:16777216
  1289. 19356:20140305:035903.521 valid user addresses: [0x7f3344d9d168, 0x7f3345d9cff8] total size: 16776848
  1290. 19356:20140305:035903.522 End of zbx_mem_create()
  1291. 19356:20140305:035903.522 End of init_database_cache()
  1292. 19356:20140305:035903.522 In init_configuration_cache() size:8388608
  1293. 19356:20140305:035903.522 In zbx_mem_create() descr:'configuration cache' param:'CacheSize' size:7130317
  1294. 19356:20140305:035903.522 valid user addresses: [0x7f33446d0160, 0x7f3344d9ccc8] total size: 7129960
  1295. 19356:20140305:035903.523 End of zbx_mem_create()
  1296. 19356:20140305:035903.523 In zbx_strpool_create()
  1297. 19356:20140305:035903.523 In zbx_mem_create() descr:'string pool' param:'CacheSize' size:1258291
  1298. 19356:20140305:035903.524 valid user addresses: [0x7f334cc7f158, 0x7f334cdb2328] total size: 1257936
  1299. 19356:20140305:035903.524 End of zbx_mem_create()
  1300. 19356:20140305:035903.524 End of zbx_strpool_create()
  1301. 19356:20140305:035903.524 End of init_configuration_cache()
  1302. 19356:20140305:035903.525 In init_selfmon_collector()
  1303. 19356:20140305:035903.525 init_selfmon_collector() size:5992
  1304. 19356:20140305:035903.525 End of init_selfmon_collector() collector:0x7f334cdc9000
  1305. 19356:20140305:035903.525 In DBconnect() flag:0
  1306. 19356:20140305:035903.526 query [txnlev:0] [PRAGMA synchronous = 0]
  1307. 19356:20140305:035903.531 query [txnlev:0] [PRAGMA temp_store = 2]
  1308. 19356:20140305:035903.532 query [txnlev:0] [PRAGMA temp_store_directory = '/var/lib/zabbix/']
  1309. 19356:20140305:035903.532 End of DBconnect():0
  1310. 19356:20140305:035903.532 In DCsync_configuration()
  1311. 19356:20140305:035903.532 query [txnlev:0] [select alert_history,event_history,refresh_unsupported,discovery_groupid,snmptrap_logging,severity_name_0,severity_name_1,severity_name_2,severity_name_3,severity_name_4,severity_name_5 from config where 1=1]
  1312. 19356:20140305:035903.533 query [txnlev:0] [select i.itemid,i.hostid,h.proxy_hostid,i.type,i.data_type,i.value_type,i.key_,i.snmp_community,i.snmp_oid,i.port,i.snmpv3_securityname,i.snmpv3_securitylevel,i.snmpv3_authpassphrase,i.snmpv3_privpassphrase,i.ipmi_sensor,i.delay,i.delay_flex,i.trapper_hosts,i.logtimefmt,i.params,i.status,i.authtype,i.username,i.password,i.publickey,i.privatekey,i.flags,i.interfaceid,i.lastclock from items i,hosts h where i.hostid=h.hostid and h.status in (0) and i.status in (0,3)]
  1313. 19356:20140305:035903.533 query [txnlev:0] [select distinct t.triggerid,t.description,t.expression,t.error,t.priority,t.type,t.value,t.value_flags 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) and i.status in (0,3) and t.status in (0) and t.flags not in (2)]
  1314. 19356:20140305:035903.534 query [txnlev:0] [select d.triggerid_down,d.triggerid_up from trigger_depends d where 1=1 order by d.triggerid_down]
  1315. 19356:20140305:035903.534 query [txnlev:0] [select i.itemid,f.functionid,f.function,f.parameter,t.triggerid 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) and i.status in (0,3) and t.status in (0) and t.flags not in (2)]
  1316. 19356:20140305:035903.535 query [txnlev:0] [select hostid,proxy_hostid,host,ipmi_authtype,ipmi_privilege,ipmi_username,ipmi_password,maintenance_status,maintenance_type,maintenance_from,errors_from,available,disable_until,snmp_errors_from,snmp_available,snmp_disable_until,ipmi_errors_from,ipmi_available,ipmi_disable_until,jmx_errors_from,jmx_available,jmx_disable_until,status,name from hosts where status in (0,5,6)]
  1317. 19356:20140305:035903.535 query [txnlev:0] [select hostid,templateid from hosts_templates where 1=1 order by hostid,templateid]
  1318. 19356:20140305:035903.536 query [txnlev:0] [select globalmacroid,macro,value from globalmacro where 1=1]
  1319. 19356:20140305:035903.536 query [txnlev:0] [select hostmacroid,hostid,macro,value from hostmacro where 1=1]
  1320. 19356:20140305:035903.536 query [txnlev:0] [select interfaceid,hostid,type,main,useip,ip,dns,port from interface where 1=1]
  1321. 19356:20140305:035903.537 In DCsync_config()
  1322. 19356:20140305:035903.537 End of DCsync_config()
  1323. 19356:20140305:035903.537 In DCsync_items()
  1324. 19356:20140305:035903.537 End of DCsync_items()
  1325. 19356:20140305:035903.537 In DCsync_triggers()
  1326. 19356:20140305:035903.538 End of DCsync_triggers()
  1327. 19356:20140305:035903.538 In DCsync_trigdeps()
  1328. 19356:20140305:035903.538 End of DCsync_trigdeps()
  1329. 19356:20140305:035903.538 In DCsync_functions()
  1330. 19356:20140305:035903.538 End of DCsync_functions()
  1331. 19356:20140305:035903.539 In DCsync_hosts()
  1332. 19356:20140305:035903.539 End of DCsync_hosts()
  1333. 19356:20140305:035903.539 In DCsync_htmpls()
  1334. 19356:20140305:035903.539 End of DCsync_htmpls()
  1335. 19356:20140305:035903.539 In DCsync_gmacros()
  1336. 19356:20140305:035903.540 End of DCsync_gmacros()
  1337. 19356:20140305:035903.540 In DCsync_hmacros()
  1338. 19356:20140305:035903.540 End of DCsync_hmacros()
  1339. 19356:20140305:035903.540 In DCsync_interfaces()
  1340. 19356:20140305:035903.540 End of DCsync_interfaces()
  1341. 19356:20140305:035903.541 DCsync_configuration() config : sql:0.000418 sync:0.000457 sec.
  1342. 19356:20140305:035903.541 DCsync_configuration() items : sql:0.000654 sync:0.000391 sec.
  1343. 19356:20140305:035903.541 DCsync_configuration() triggers : sql:0.000537 sync:0.000389 sec.
  1344. 19356:20140305:035903.541 DCsync_configuration() trigdeps : sql:0.000336 sync:0.000390 sec.
  1345. 19356:20140305:035903.541 DCsync_configuration() functions : sql:0.000479 sync:0.000390 sec.
  1346. 19356:20140305:035903.542 DCsync_configuration() hosts : sql:0.000488 sync:0.000393 sec.
  1347. 19356:20140305:035903.542 DCsync_configuration() templates : sql:0.000328 sync:0.000386 sec.
  1348. 19356:20140305:035903.542 DCsync_configuration() globmacros : sql:0.000319 sync:0.000392 sec.
  1349. 19356:20140305:035903.542 DCsync_configuration() hostmacros : sql:0.000319 sync:0.000387 sec.
  1350. 19356:20140305:035903.542 DCsync_configuration() interfaces : sql:0.000327 sync:0.000390 sec.
  1351. 19356:20140305:035903.543 DCsync_configuration() total sync : 0.003966 sec.
  1352. 19356:20140305:035903.543 DCsync_configuration() total : 0.008170 sec.
  1353. 19356:20140305:035903.543 DCsync_configuration() items : 0 (1009 slots)
  1354. 19356:20140305:035903.543 DCsync_configuration() items_hk : 0 (1009 slots)
  1355. 19356:20140305:035903.543 DCsync_configuration() snmpitems : 0 (1009 slots)
  1356. 19356:20140305:035903.544 DCsync_configuration() ipmiitems : 0 (1009 slots)
  1357. 19356:20140305:035903.544 DCsync_configuration() flexitems : 0 (1009 slots)
  1358. 19356:20140305:035903.544 DCsync_configuration() trapitems : 0 (1009 slots)
  1359. 19356:20140305:035903.544 DCsync_configuration() logitems : 0 (1009 slots)
  1360. 19356:20140305:035903.544 DCsync_configuration() dbitems : 0 (1009 slots)
  1361. 19356:20140305:035903.545 DCsync_configuration() sshitems : 0 (1009 slots)
  1362. 19356:20140305:035903.545 DCsync_configuration() telnetitems: 0 (1009 slots)
  1363. 19356:20140305:035903.545 DCsync_configuration() jmxitems : 0 (1009 slots)
  1364. 19356:20140305:035903.545 DCsync_configuration() calcitems : 0 (1009 slots)
  1365. 19356:20140305:035903.545 DCsync_configuration() functions : 0 (1009 slots)
  1366. 19356:20140305:035903.546 DCsync_configuration() triggers : 0 (1009 slots)
  1367. 19356:20140305:035903.546 DCsync_configuration() trigdeps : 0 (1009 slots)
  1368. 19356:20140305:035903.546 DCsync_configuration() time_trigs : 0 (0 allocated)
  1369. 19356:20140305:035903.546 DCsync_configuration() hosts : 0 (1009 slots)
  1370. 19356:20140305:035903.546 DCsync_configuration() hosts_ph : 0 (1009 slots)
  1371. 19356:20140305:035903.547 DCsync_configuration() proxies : 0 (1009 slots)
  1372. 19356:20140305:035903.547 DCsync_configuration() ipmihosts : 0 (1009 slots)
  1373. 19356:20140305:035903.547 DCsync_configuration() htmpls : 0 (1009 slots)
  1374. 19356:20140305:035903.547 DCsync_configuration() gmacros : 0 (1009 slots)
  1375. 19356:20140305:035903.547 DCsync_configuration() gmacros_m : 0 (1009 slots)
  1376. 19356:20140305:035903.548 DCsync_configuration() hmacros : 0 (1009 slots)
  1377. 19356:20140305:035903.548 DCsync_configuration() hmacros_hm : 0 (1009 slots)
  1378. 19356:20140305:035903.548 DCsync_configuration() interfaces : 0 (1009 slots)
  1379. 19356:20140305:035903.548 DCsync_configuration() interfac_ht: 0 (1009 slots)
  1380. 19356:20140305:035903.548 DCsync_configuration() if_snmpitms: 0 (1009 slots)
  1381. 19356:20140305:035903.549 DCsync_configuration() if_snmpaddr: 0 (1009 slots)
  1382. 19356:20140305:035903.549 DCsync_configuration() queue[0] : 0 (0 allocated)
  1383. 19356:20140305:035903.549 DCsync_configuration() queue[1] : 0 (0 allocated)
  1384. 19356:20140305:035903.549 DCsync_configuration() queue[2] : 0 (0 allocated)
  1385. 19356:20140305:035903.549 DCsync_configuration() queue[3] : 0 (0 allocated)
  1386. 19356:20140305:035903.550 DCsync_configuration() queue[4] : 0 (0 allocated)
  1387. 19356:20140305:035903.550 DCsync_configuration() pqueue : 0 (0 allocated)
  1388. 19356:20140305:035903.550 DCsync_configuration() configfree : 96.085265%
  1389. 19356:20140305:035903.550 DCsync_configuration() strings : 6 (1009 slots)
  1390. 19356:20140305:035903.550 DCsync_configuration() strpoolfree: 99.294042%
  1391. 19356:20140305:035903.551 === memory statistics for configuration cache ===
  1392. 19356:20140305:035903.551 free chunks of size >= 256 bytes: 1
  1393. 19356:20140305:035903.551 min chunk size: 6851184 bytes
  1394. 19356:20140305:035903.551 max chunk size: 6851184 bytes
  1395. 19356:20140305:035903.551 memory of total size 7129960 bytes fragmented into 43 chunks
  1396. 19356:20140305:035903.552 of those, 6851184 bytes are in 1 free chunks
  1397. 19356:20140305:035903.552 of those, 278440 bytes are in 42 used chunks
  1398. 19356:20140305:035903.552 ================================
  1399. 19356:20140305:035903.552 === memory statistics for string pool ===
  1400. 19356:20140305:035903.552 free chunks of size >= 256 bytes: 1
  1401. 19356:20140305:035903.553 min chunk size: 1249408 bytes
  1402. 19356:20140305:035903.553 max chunk size: 1249408 bytes
  1403. 19356:20140305:035903.553 memory of total size 1257936 bytes fragmented into 15 chunks
  1404. 19356:20140305:035903.553 of those, 1249408 bytes are in 1 free chunks
  1405. 19356:20140305:035903.553 of those, 8416 bytes are in 14 used chunks
  1406. 19356:20140305:035903.554 ================================
  1407. 19356:20140305:035903.554 End of DCsync_configuration()
  1408. 19360:20140305:035903.564 proxy #4 started [poller #1]
  1409. 19357:20140305:035903.565 proxy #1 started [configuration syncer #1]
  1410. 19357:20140305:035903.565 In main_proxyconfig_loop()
  1411. 19357:20140305:035903.566 In DBconnect() flag:0
  1412. 19358:20140305:035903.566 proxy #2 started [heartbeat sender #1]
  1413. 19357:20140305:035903.567 query [txnlev:0] [PRAGMA synchronous = 0]
  1414. 19359:20140305:035903.568 proxy #3 started [data sender #1]
  1415. 19358:20140305:035903.568 In main_heart_loop()
  1416. 19358:20140305:035903.569 In send_heartbeat()
  1417. 19359:20140305:035903.573 In main_datasender_loop()
  1418. 19358:20140305:035903.573 In connect_to_server() [10.168.24.153]:10051 [timeout:60]
  1419. 19359:20140305:035903.574 In DBconnect() flag:0
  1420. 19359:20140305:035903.577 query [txnlev:0] [PRAGMA synchronous = 0]
  1421. 19360:20140305:035903.581 In main_poller_loop() process_type:'poller' process_num:1
  1422. 19360:20140305:035903.581 In DBconnect() flag:0
  1423. 19360:20140305:035903.584 query [txnlev:0] [PRAGMA synchronous = 0]
  1424. 19359:20140305:035903.591 query [txnlev:0] [PRAGMA temp_store = 2]
  1425. 19357:20140305:035903.593 query [txnlev:0] [PRAGMA temp_store = 2]
  1426. 19363:20140305:035903.596 proxy #7 started [poller #4]
  1427. 19362:20140305:035903.600 proxy #6 started [poller #3]
  1428. 19361:20140305:035903.601 proxy #5 started [poller #2]
  1429. 19361:20140305:035903.609 In main_poller_loop() process_type:'poller' process_num:2
  1430. 19361:20140305:035903.609 In DBconnect() flag:0
  1431. 19361:20140305:035903.610 query [txnlev:0] [PRAGMA synchronous = 0]
  1432. 19365:20140305:035903.616 proxy #9 started [unreachable poller #1]
  1433. 19363:20140305:035903.617 In main_poller_loop() process_type:'poller' process_num:4
  1434. 19363:20140305:035903.617 In DBconnect() flag:0
  1435. 19364:20140305:035903.617 proxy #8 started [poller #5]
  1436. 19363:20140305:035903.618 query [txnlev:0] [PRAGMA synchronous = 0]
  1437. 19362:20140305:035903.618 In main_poller_loop() process_type:'poller' process_num:3
  1438. 19362:20140305:035903.619 In DBconnect() flag:0
  1439. 19362:20140305:035903.619 query [txnlev:0] [PRAGMA synchronous = 0]
  1440. 19364:20140305:035903.619 In main_poller_loop() process_type:'poller' process_num:5
  1441. 19364:20140305:035903.620 In DBconnect() flag:0
  1442. 19364:20140305:035903.620 query [txnlev:0] [PRAGMA synchronous = 0]
  1443. 19357:20140305:035903.624 query [txnlev:0] [PRAGMA temp_store_directory = '/var/lib/zabbix/']
  1444. 19360:20140305:035903.629 query [txnlev:0] [PRAGMA temp_store = 2]
  1445. 19367:20140305:035903.629 proxy #11 started [trapper #2]
  1446. 19366:20140305:035903.630 proxy #10 started [trapper #1]
  1447. 19368:20140305:035903.631 proxy #12 started [trapper #3]
  1448. 19365:20140305:035903.631 In main_poller_loop() process_type:'unreachable poller' process_num:1
  1449. 19365:20140305:035903.631 In DBconnect() flag:0
  1450. 19367:20140305:035903.632 In main_trapper_loop()
  1451. 19366:20140305:035903.632 In main_trapper_loop()
  1452. 19367:20140305:035903.633 In DBconnect() flag:0
  1453. 19366:20140305:035903.633 In DBconnect() flag:0
  1454. 19368:20140305:035903.634 In main_trapper_loop()
  1455. 19359:20140305:035903.635 query [txnlev:0] [PRAGMA temp_store_directory = '/var/lib/zabbix/']
  1456. 19367:20140305:035903.645 query [txnlev:0] [PRAGMA synchronous = 0]
  1457. 19365:20140305:035903.646 query [txnlev:0] [PRAGMA synchronous = 0]
  1458. 19368:20140305:035903.646 In DBconnect() flag:0
  1459. 19366:20140305:035903.647 query [txnlev:0] [PRAGMA synchronous = 0]
  1460. 19368:20140305:035903.648 query [txnlev:0] [PRAGMA synchronous = 0]
  1461. 19361:20140305:035903.648 query [txnlev:0] [PRAGMA temp_store = 2]
  1462. 19370:20140305:035903.652 proxy #14 started [trapper #5]
  1463. 19369:20140305:035903.652 proxy #13 started [trapper #4]
  1464. 19363:20140305:035903.653 query [txnlev:0] [PRAGMA temp_store = 2]
  1465. 19369:20140305:035903.653 In main_trapper_loop()
  1466. 19369:20140305:035903.654 In DBconnect() flag:0
  1467. 19357:20140305:035903.654 End of DBconnect():0
  1468. 19357:20140305:035903.657 In process_configuration_sync()
  1469. 19357:20140305:035903.657 In connect_to_server() [10.168.24.153]:10051 [timeout:600]
  1470. 19360:20140305:035903.661 query [txnlev:0] [PRAGMA temp_store_directory = '/var/lib/zabbix/']
  1471. 19359:20140305:035903.661 End of DBconnect():0
  1472. 19359:20140305:035903.661 In host_availability_sender()
  1473. 19359:20140305:035903.661 In get_host_availability_data()
  1474. 19359:20140305:035903.662 query [txnlev:0] [select hostid,available,error,snmp_available,snmp_error,ipmi_available,ipmi_error,jmx_available,jmx_error from hosts]
  1475. 19370:20140305:035903.665 In main_trapper_loop()
  1476. 19369:20140305:035903.666 query [txnlev:0] [PRAGMA synchronous = 0]
  1477. 19361:20140305:035903.668 query [txnlev:0] [PRAGMA temp_store_directory = '/var/lib/zabbix/']
  1478. 19370:20140305:035903.673 In DBconnect() flag:0
  1479. 19362:20140305:035903.673 query [txnlev:0] [PRAGMA temp_store = 2]
  1480. 19370:20140305:035903.674 query [txnlev:0] [PRAGMA synchronous = 0]
  1481. 19371:20140305:035903.677 proxy #15 started [icmp pinger #1]
  1482. 19371:20140305:035903.689 In main_pinger_loop() process_num:1
  1483. 19371:20140305:035903.689 In DBconnect() flag:0
  1484. 19364:20140305:035903.689 query [txnlev:0] [PRAGMA temp_store = 2]
  1485. 19365:20140305:035903.690 query [txnlev:0] [PRAGMA temp_store = 2]
  1486. 19371:20140305:035903.691 query [txnlev:0] [PRAGMA synchronous = 0]
  1487. 19367:20140305:035903.693 query [txnlev:0] [PRAGMA temp_store = 2]
  1488. 19360:20140305:035903.694 End of DBconnect():0
  1489. 19359:20140305:035903.694 End of get_host_availability_data():FAIL
  1490. 19363:20140305:035903.694 query [txnlev:0] [PRAGMA temp_store_directory = '/var/lib/zabbix/']
  1491. 19361:20140305:035903.695 End of DBconnect():0
  1492. 19362:20140305:035903.695 query [txnlev:0] [PRAGMA temp_store_directory = '/var/lib/zabbix/']
  1493. 19360:20140305:035903.697 In get_values()
  1494. 19361:20140305:035903.697 In get_values()
  1495. 19359:20140305:035903.697 End of host_availability_sender()
  1496. 19360:20140305:035903.697 In DCconfig_get_poller_items() poller_type:0
  1497. 19361:20140305:035903.698 In DCconfig_get_poller_items() poller_type:0
  1498. 19359:20140305:035903.698 In history_sender()
  1499. 19360:20140305:035903.698 End of DCconfig_get_poller_items():0
  1500. 19361:20140305:035903.698 End of DCconfig_get_poller_items():0
  1501. 19359:20140305:035903.699 In proxy_get_history_data() table:'proxy_history'
  1502. 19360:20140305:035903.699 End of get_values():0
  1503. 19361:20140305:035903.699 End of get_values():0
  1504. 19359:20140305:035903.699 In proxy_get_lastid() [proxy_history.history_lastid]
  1505. 19360:20140305:035903.700 poller #1 spent 0.002941 seconds while updating 0 values
  1506. 19361:20140305:035903.700 poller #2 spent 0.002879 seconds while updating 0 values
  1507. 19359:20140305:035903.700 query [txnlev:0] [select nextid from ids where table_name='proxy_history' and field_name='history_lastid']
  1508. 19360:20140305:035903.700 In DCconfig_get_poller_nextcheck() poller_type:0
  1509. 19361:20140305:035903.701 In DCconfig_get_poller_nextcheck() poller_type:0
  1510. 19360:20140305:035903.701 End of DCconfig_get_poller_nextcheck():-1
  1511. 19361:20140305:035903.701 End of DCconfig_get_poller_nextcheck():-1
  1512. 19360:20140305:035903.701 sleeping for 5 seconds
  1513. 19361:20140305:035903.701 sleeping for 5 seconds
  1514. 19366:20140305:035903.705 query [txnlev:0] [PRAGMA temp_store = 2]
  1515. 19372:20140305:035903.705 proxy #16 started [housekeeper #1]
  1516. 19368:20140305:035903.706 query [txnlev:0] [PRAGMA temp_store = 2]
  1517. 19372:20140305:035903.706 executing housekeeper
  1518. 19372:20140305:035903.709 In DBconnect() flag:0
  1519. 19372:20140305:035903.710 query [txnlev:0] [PRAGMA synchronous = 0]
  1520. 19364:20140305:035903.716 query [txnlev:0] [PRAGMA temp_store_directory = '/var/lib/zabbix/']
  1521. 19365:20140305:035903.716 query [txnlev:0] [PRAGMA temp_store_directory = '/var/lib/zabbix/']
  1522. 19367:20140305:035903.716 query [txnlev:0] [PRAGMA temp_store_directory = '/var/lib/zabbix/']
  1523. 19373:20140305:035903.721 proxy #17 started [http poller #1]
  1524. 19369:20140305:035903.725 query [txnlev:0] [PRAGMA temp_store = 2]
  1525. 19373:20140305:035903.725 In main_httppoller_loop() process_num:1
  1526. 19373:20140305:035903.725 In DBconnect() flag:0
  1527. 19373:20140305:035903.726 query [txnlev:0] [PRAGMA synchronous = 0]
  1528. 19362:20140305:035903.728 End of DBconnect():0
  1529. 19363:20140305:035903.728 End of DBconnect():0
  1530. 19359:20140305:035903.728 End of proxy_get_lastid():0
  1531. 19368:20140305:035903.729 query [txnlev:0] [PRAGMA temp_store_directory = '/var/lib/zabbix/']
  1532. 19365:20140305:035903.729 End of DBconnect():0
  1533. 19364:20140305:035903.729 End of DBconnect():0
  1534. 19367:20140305:035903.729 End of DBconnect():0
  1535. 19366:20140305:035903.730 query [txnlev:0] [PRAGMA temp_store_directory = '/var/lib/zabbix/']
  1536. 19364:20140305:035903.730 In get_values()
  1537. 19363:20140305:035903.730 In get_values()
  1538. 19365:20140305:035903.730 In get_values()
  1539. 19362:20140305:035903.731 In get_values()
  1540. 19359:20140305:035903.731 query [txnlev:0] [select p.id,h.host,i.key_,p.clock,p.ns,p.timestamp,p.source,p.severity,p.value,p.logeventid,p.status from hosts h,items i,proxy_history p where h.hostid=i.hostid and i.itemid=p.itemid and p.id>0 order by p.id limit 1000]
  1541. 19364:20140305:035903.731 In DCconfig_get_poller_items() poller_type:0
  1542. 19363:20140305:035903.731 In DCconfig_get_poller_items() poller_type:0
  1543. 19365:20140305:035903.732 In DCconfig_get_poller_items() poller_type:1
  1544. 19362:20140305:035903.732 In DCconfig_get_poller_items() poller_type:0
  1545. 19364:20140305:035903.732 End of DCconfig_get_poller_items():0
  1546. 19363:20140305:035903.732 End of DCconfig_get_poller_items():0
  1547. 19365:20140305:035903.733 End of DCconfig_get_poller_items():0
  1548. 19362:20140305:035903.733 End of DCconfig_get_poller_items():0
  1549. 19363:20140305:035903.733 End of get_values():0
  1550. 19364:20140305:035903.733 End of get_values():0
  1551. 19365:20140305:035903.733 End of get_values():0
  1552. 19362:20140305:035903.734 End of get_values():0
  1553. 19364:20140305:035903.734 poller #5 spent 0.003886 seconds while updating 0 values
  1554. 19363:20140305:035903.734 poller #4 spent 0.003865 seconds while updating 0 values
  1555. 19365:20140305:035903.734 unreachable poller #1 spent 0.003851 seconds while updating 0 values
  1556. 19362:20140305:035903.734 poller #3 spent 0.003816 seconds while updating 0 values
  1557. 19363:20140305:035903.735 In DCconfig_get_poller_nextcheck() poller_type:0
  1558. 19365:20140305:035903.735 In DCconfig_get_poller_nextcheck() poller_type:1
  1559. 19364:20140305:035903.735 In DCconfig_get_poller_nextcheck() poller_type:0
  1560. 19362:20140305:035903.735 In DCconfig_get_poller_nextcheck() poller_type:0
  1561. 19365:20140305:035903.736 End of DCconfig_get_poller_nextcheck():-1
  1562. 19363:20140305:035903.736 End of DCconfig_get_poller_nextcheck():-1
  1563. 19364:20140305:035903.736 End of DCconfig_get_poller_nextcheck():-1
  1564. 19362:20140305:035903.736 End of DCconfig_get_poller_nextcheck():-1
  1565. 19365:20140305:035903.736 sleeping for 5 seconds
  1566. 19363:20140305:035903.737 sleeping for 5 seconds
  1567. 19364:20140305:035903.737 sleeping for 5 seconds
  1568. 19362:20140305:035903.737 sleeping for 5 seconds
  1569. 19376:20140305:035903.744 proxy #20 started [history syncer #2]
  1570. 19370:20140305:035903.744 query [txnlev:0] [PRAGMA temp_store = 2]
  1571. 19371:20140305:035903.744 query [txnlev:0] [PRAGMA temp_store = 2]
  1572. 19375:20140305:035903.745 proxy #19 started [history syncer #1]
  1573. 19377:20140305:035903.747 proxy #21 started [history syncer #3]
  1574. 19376:20140305:035903.748 In main_dbsyncer_loop() process_num:2
  1575. 19376:20140305:035903.748 In DBconnect() flag:0
  1576. 19369:20140305:035903.751 query [txnlev:0] [PRAGMA temp_store_directory = '/var/lib/zabbix/']
  1577. 19368:20140305:035903.751 End of DBconnect():0
  1578. 19366:20140305:035903.751 End of DBconnect():0
  1579. 19359:20140305:035903.752 End of proxy_get_history_data():0 lastid:0
  1580. 19359:20140305:035903.752 End of history_sender()
  1581. 19359:20140305:035903.752 In history_sender()
  1582. 19359:20140305:035903.753 In proxy_get_history_data() table:'proxy_dhistory'
  1583. 19359:20140305:035903.753 In proxy_get_lastid() [proxy_dhistory.dhistory_lastid]
  1584. 19359:20140305:035903.753 query [txnlev:0] [select nextid from ids where table_name='proxy_dhistory' and field_name='dhistory_lastid']
  1585. 19375:20140305:035903.757 In main_dbsyncer_loop() process_num:1
  1586. 19374:20140305:035903.757 proxy #18 started [discoverer #1]
  1587. 19375:20140305:035903.758 In DBconnect() flag:0
  1588. 19376:20140305:035903.759 query [txnlev:0] [PRAGMA synchronous = 0]
  1589. 19375:20140305:035903.760 query [txnlev:0] [PRAGMA synchronous = 0]
  1590. 19374:20140305:035903.760 In main_discoverer_loop() process_num:1
  1591. 19374:20140305:035903.760 In DBconnect() flag:0
  1592. 19374:20140305:035903.761 query [txnlev:0] [PRAGMA synchronous = 0]
  1593. 19377:20140305:035903.761 In main_dbsyncer_loop() process_num:3
  1594. 19377:20140305:035903.762 In DBconnect() flag:0
  1595. 19370:20140305:035903.764 query [txnlev:0] [PRAGMA temp_store_directory = '/var/lib/zabbix/']
  1596. 19371:20140305:035903.764 query [txnlev:0] [PRAGMA temp_store_directory = '/var/lib/zabbix/']
  1597. 19369:20140305:035903.765 End of DBconnect():0
  1598. 19359:20140305:035903.765 End of proxy_get_lastid():0
  1599. 19359:20140305:035903.765 query [txnlev:0] [select p.id,p.clock,p.druleid,p.dcheckid,p.type,p.ip,p.dns,p.port,p.key_,p.value,p.status from proxy_dhistory p where p.id>0 order by p.id limit 1000]
  1600. 19377:20140305:035903.769 query [txnlev:0] [PRAGMA synchronous = 0]
  1601. 19356:20140305:035903.772 proxy #0 started [main process]
  1602. 19372:20140305:035903.772 query [txnlev:0] [PRAGMA temp_store = 2]
  1603. 19378:20140305:035903.773 proxy #22 started [history syncer #4]
  1604. 19378:20140305:035903.773 In main_dbsyncer_loop() process_num:4
  1605. 19373:20140305:035903.774 query [txnlev:0] [PRAGMA temp_store = 2]
  1606. 19378:20140305:035903.774 In DBconnect() flag:0
  1607. 19378:20140305:035903.775 query [txnlev:0] [PRAGMA synchronous = 0]
  1608. 19370:20140305:035903.789 End of DBconnect():0
  1609. 19359:20140305:035903.789 End of proxy_get_history_data():0 lastid:0
  1610. 19371:20140305:035903.789 End of DBconnect():0
  1611. 19372:20140305:035903.789 query [txnlev:0] [PRAGMA temp_store_directory = '/var/lib/zabbix/']
  1612. 19371:20140305:035903.794 In get_pinger_hosts()
  1613. 19359:20140305:035903.794 End of history_sender()
  1614. 19371:20140305:035903.794 In DCconfig_get_poller_items() poller_type:3
  1615. 19359:20140305:035903.794 In history_sender()
  1616. 19371:20140305:035903.795 End of DCconfig_get_poller_items():0
  1617. 19359:20140305:035903.795 In proxy_get_history_data() table:'proxy_autoreg_host'
  1618. 19359:20140305:035903.795 In proxy_get_lastid() [proxy_autoreg_host.autoreg_host_lastid]
  1619. 19371:20140305:035903.795 End of get_pinger_hosts():0
  1620. 19359:20140305:035903.796 query [txnlev:0] [select nextid from ids where table_name='proxy_autoreg_host' and field_name='autoreg_host_lastid']
  1621. 19371:20140305:035903.796 In process_pinger_hosts()
  1622. 19371:20140305:035903.796 End of process_pinger_hosts()
  1623. 19371:20140305:035903.796 icmp pinger #1 spent 0.002765 seconds while processing 0 items
  1624. 19371:20140305:035903.797 In DCconfig_get_poller_nextcheck() poller_type:3
  1625. 19371:20140305:035903.797 End of DCconfig_get_poller_nextcheck():-1
  1626. 19371:20140305:035903.797 sleeping for 5 seconds
  1627. 19376:20140305:035903.797 query [txnlev:0] [PRAGMA temp_store = 2]
  1628. 19373:20140305:035903.799 query [txnlev:0] [PRAGMA temp_store_directory = '/var/lib/zabbix/']
  1629. 19375:20140305:035903.805 query [txnlev:0] [PRAGMA temp_store = 2]
  1630. 19377:20140305:035903.805 query [txnlev:0] [PRAGMA temp_store = 2]
  1631. 19374:20140305:035903.805 query [txnlev:0] [PRAGMA temp_store = 2]
  1632. 19372:20140305:035903.806 End of DBconnect():0
  1633. 19359:20140305:035903.806 End of proxy_get_lastid():0
  1634. 19376:20140305:035903.807 query [txnlev:0] [PRAGMA temp_store_directory = '/var/lib/zabbix/']
  1635. 19373:20140305:035903.807 End of DBconnect():0
  1636. 19373:20140305:035903.807 In process_httptests()
  1637. 19372:20140305:035903.807 In housekeeping_history()
  1638. 19359:20140305:035903.808 query [txnlev:0] [select p.id,p.clock,p.host,p.listen_ip,p.listen_dns,p.listen_port from proxy_autoreg_host p where p.id>0 order by p.id limit 1000]
  1639. 19373:20140305:035903.808 query [txnlev:0] [select t.httptestid,t.name,t.macros,t.agent,t.authentication,t.http_user,t.http_password from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and t.nextcheck<=1393991943 and t.httptestid%1=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)]
  1640. 19372:20140305:035903.808 In delete_history() table:'proxy_history' now:1393991943
  1641. 19375:20140305:035903.808 query [txnlev:0] [PRAGMA temp_store_directory = '/var/lib/zabbix/']
  1642. 19374:20140305:035903.809 query [txnlev:0] [PRAGMA temp_store_directory = '/var/lib/zabbix/']
  1643. 19376:20140305:035903.809 End of DBconnect():0
  1644. 19376:20140305:035903.809 Syncing ...
  1645. 19376:20140305:035903.809 In DCsync_history() history_first:0 history_num:0
  1646. 19359:20140305:035903.810 End of proxy_get_history_data():0 lastid:0
  1647. 19373:20140305:035903.810 End of process_httptests()
  1648. 19372:20140305:035903.810 query [txnlev:1] [begin;]
  1649. 19372:20140305:035903.811 query [txnlev:1] [select nextid from ids where table_name='proxy_history' and field_name='history_lastid']
  1650. 19376:20140305:035903.811 history syncer #2 spent 0.001468 seconds while processing 0 items
  1651. 19372:20140305:035903.811 query [txnlev:1] [rollback;]
  1652. 19359:20140305:035903.811 End of history_sender()
  1653. 19376:20140305:035903.812 sleeping for 5 seconds
  1654. 19359:20140305:035903.812 Datasender spent 0.150560 seconds while processing 0 values.
  1655. 19373:20140305:035903.812 http poller #1 spent 0.004900 seconds while updating HTTP tests
  1656. 19372:20140305:035903.812 In delete_history() table:'proxy_dhistory' now:1393991943
  1657. 19359:20140305:035903.812 sleeping for 1 seconds
  1658. 19373:20140305:035903.813 query [txnlev:0] [select min(t.nextcheck) from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and t.httptestid%1=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)]
  1659. 19375:20140305:035903.813 End of DBconnect():0
  1660. 19372:20140305:035903.813 query [txnlev:1] [begin;]
  1661. 19372:20140305:035903.814 query [txnlev:1] [select nextid from ids where table_name='proxy_dhistory' and field_name='dhistory_lastid']
  1662. 19372:20140305:035903.814 query [txnlev:1] [rollback;]
  1663. 19372:20140305:035903.814 In delete_history() table:'proxy_autoreg_host' now:1393991943
  1664. 19373:20140305:035903.814 No httptests to process in get_minnextcheck.
  1665. 19373:20140305:035903.815 sleeping for 5 seconds
  1666. 19375:20140305:035903.815 Syncing ...
  1667. 19377:20140305:035903.809 query [txnlev:0] [PRAGMA temp_store_directory = '/var/lib/zabbix/']
  1668. 19377:20140305:035903.815 End of DBconnect():0
  1669. 19375:20140305:035903.816 In DCsync_history() history_first:0 history_num:0
  1670. 19372:20140305:035903.816 query [txnlev:1] [begin;]
  1671. 19372:20140305:035903.816 query [txnlev:1] [select nextid from ids where table_name='proxy_autoreg_host' and field_name='autoreg_host_lastid']
  1672. 19377:20140305:035903.816 Syncing ...
  1673. 19375:20140305:035903.816 history syncer #1 spent 0.000906 seconds while processing 0 items
  1674. 19372:20140305:035903.817 query [txnlev:1] [rollback;]
  1675. 19377:20140305:035903.817 In DCsync_history() history_first:0 history_num:0
  1676. 19375:20140305:035903.817 sleeping for 5 seconds
  1677. 19377:20140305:035903.817 history syncer #3 spent 0.000459 seconds while processing 0 items
  1678. 19372:20140305:035903.818 housekeeper deleted 0 records from history (spent 0.010419 seconds)
  1679. 19374:20140305:035903.818 End of DBconnect():0
  1680. 19374:20140305:035903.818 query [txnlev:0] [select distinct r.druleid,r.iprange,r.name,c.dcheckid from drules r left join dchecks c on c.druleid=r.druleid and uniq=1 where r.proxy_hostid is null and r.status=0 and (r.nextcheck<=1393991943 or r.nextcheck>1393991943+r.delay) and r.druleid%1=0]
  1681. 19374:20140305:035903.819 discoverer #1 spent 0.000497 seconds while processing rules
  1682. 19377:20140305:035903.819 sleeping for 5 seconds
  1683. 19372:20140305:035903.820 sleeping for 3600 seconds
  1684. 19374:20140305:035903.820 query [txnlev:0] [select count(*),min(nextcheck) from drules where proxy_hostid is null and status=0 and druleid%1=0]
  1685. 19374:20140305:035903.820 get_minnextcheck(): no items to update
  1686. 19374:20140305:035903.820 sleeping for 60 seconds
  1687. 19378:20140305:035903.821 query [txnlev:0] [PRAGMA temp_store = 2]
  1688. 19378:20140305:035903.821 query [txnlev:0] [PRAGMA temp_store_directory = '/var/lib/zabbix/']
  1689. 19378:20140305:035903.821 End of DBconnect():0
  1690. 19378:20140305:035903.821 Syncing ...
  1691. 19378:20140305:035903.822 In DCsync_history() history_first:0 history_num:0
  1692. 19378:20140305:035903.822 history syncer #4 spent 0.000260 seconds while processing 0 items
  1693. 19378:20140305:035903.822 sleeping for 5 seconds
  1694. 19359:20140305:035904.813 In host_availability_sender()
  1695. 19359:20140305:035904.814 In get_host_availability_data()
  1696. 19359:20140305:035904.814 query [txnlev:0] [select hostid,available,error,snmp_available,snmp_error,ipmi_available,ipmi_error,jmx_available,jmx_error from hosts]
  1697. 19359:20140305:035904.814 End of get_host_availability_data():FAIL
  1698. 19359:20140305:035904.815 End of host_availability_sender()
  1699. 19359:20140305:035904.815 In history_sender()
  1700. 19359:20140305:035904.815 In proxy_get_history_data() table:'proxy_history'
  1701. 19359:20140305:035904.815 In proxy_get_lastid() [proxy_history.history_lastid]
  1702. 19359:20140305:035904.815 query [txnlev:0] [select nextid from ids where table_name='proxy_history' and field_name='history_lastid']
  1703. 19359:20140305:035904.816 End of proxy_get_lastid():0
  1704. 19359:20140305:035904.816 query [txnlev:0] [select p.id,h.host,i.key_,p.clock,p.ns,p.timestamp,p.source,p.severity,p.value,p.logeventid,p.status from hosts h,items i,proxy_history p where h.hostid=i.hostid and i.itemid=p.itemid and p.id>0 order by p.id limit 1000]
  1705. 19359:20140305:035904.817 End of proxy_get_history_data():0 lastid:0
  1706. 19359:20140305:035904.817 End of history_sender()
  1707. 19359:20140305:035904.817 In history_sender()
  1708. 19359:20140305:035904.817 In proxy_get_history_data() table:'proxy_dhistory'
  1709. 19359:20140305:035904.817 In proxy_get_lastid() [proxy_dhistory.dhistory_lastid]
  1710. 19359:20140305:035904.818 query [txnlev:0] [select nextid from ids where table_name='proxy_dhistory' and field_name='dhistory_lastid']
  1711. 19359:20140305:035904.818 End of proxy_get_lastid():0
  1712. 19359:20140305:035904.818 query [txnlev:0] [select p.id,p.clock,p.druleid,p.dcheckid,p.type,p.ip,p.dns,p.port,p.key_,p.value,p.status from proxy_dhistory p where p.id>0 order by p.id limit 1000]
  1713. 19359:20140305:035904.818 End of proxy_get_history_data():0 lastid:0
  1714. 19359:20140305:035904.819 End of history_sender()
  1715. 19359:20140305:035904.819 In history_sender()
  1716. 19359:20140305:035904.819 In proxy_get_history_data() table:'proxy_autoreg_host'
  1717. 19359:20140305:035904.819 In proxy_get_lastid() [proxy_autoreg_host.autoreg_host_lastid]
  1718. 19359:20140305:035904.820 query [txnlev:0] [select nextid from ids where table_name='proxy_autoreg_host' and field_name='autoreg_host_lastid']
  1719. 19359:20140305:035904.820 End of proxy_get_lastid():0
  1720. 19359:20140305:035904.820 query [txnlev:0] [select p.id,p.clock,p.host,p.listen_ip,p.listen_dns,p.listen_port from proxy_autoreg_host p where p.id>0 order by p.id limit 1000]
  1721. 19359:20140305:035904.820 End of proxy_get_history_data():0 lastid:0
  1722. 19359:20140305:035904.821 End of history_sender()
  1723. 19359:20140305:035904.821 Datasender spent 0.007746 seconds while processing 0 values.
  1724. 19359:20140305:035904.821 sleeping for 1 seconds
  1725. 19359:20140305:035905.821 In host_availability_sender()
  1726. 19359:20140305:035905.822 In get_host_availability_data()
  1727. 19359:20140305:035905.822 query [txnlev:0] [select hostid,available,error,snmp_available,snmp_error,ipmi_available,ipmi_error,jmx_available,jmx_error from hosts]
  1728. 19359:20140305:035905.823 End of get_host_availability_data():FAIL
  1729. 19359:20140305:035905.823 End of host_availability_sender()
  1730. 19359:20140305:035905.823 In history_sender()
  1731. 19359:20140305:035905.823 In proxy_get_history_data() table:'proxy_history'
  1732. 19359:20140305:035905.824 In proxy_get_lastid() [proxy_history.history_lastid]
  1733. 19359:20140305:035905.824 query [txnlev:0] [select nextid from ids where table_name='proxy_history' and field_name='history_lastid']
  1734. 19359:20140305:035905.824 End of proxy_get_lastid():0
  1735. 19359:20140305:035905.824 query [txnlev:0] [select p.id,h.host,i.key_,p.clock,p.ns,p.timestamp,p.source,p.severity,p.value,p.logeventid,p.status from hosts h,items i,proxy_history p where h.hostid=i.hostid and i.itemid=p.itemid and p.id>0 order by p.id limit 1000]
  1736. 19359:20140305:035905.825 End of proxy_get_history_data():0 lastid:0
  1737. 19359:20140305:035905.825 End of history_sender()
  1738. 19359:20140305:035905.825 In history_sender()
  1739. 19359:20140305:035905.825 In proxy_get_history_data() table:'proxy_dhistory'
  1740. 19359:20140305:035905.826 In proxy_get_lastid() [proxy_dhistory.dhistory_lastid]
  1741. 19359:20140305:035905.826 query [txnlev:0] [select nextid from ids where table_name='proxy_dhistory' and field_name='dhistory_lastid']
  1742. 19359:20140305:035905.826 End of proxy_get_lastid():0
  1743. 19359:20140305:035905.826 query [txnlev:0] [select p.id,p.clock,p.druleid,p.dcheckid,p.type,p.ip,p.dns,p.port,p.key_,p.value,p.status from proxy_dhistory p where p.id>0 order by p.id limit 1000]
  1744. 19359:20140305:035905.827 End of proxy_get_history_data():0 lastid:0
  1745. 19359:20140305:035905.827 End of history_sender()
  1746. 19359:20140305:035905.827 In history_sender()
  1747. 19359:20140305:035905.827 In proxy_get_history_data() table:'proxy_autoreg_host'
  1748. 19359:20140305:035905.827 In proxy_get_lastid() [proxy_autoreg_host.autoreg_host_lastid]
  1749. 19359:20140305:035905.828 query [txnlev:0] [select nextid from ids where table_name='proxy_autoreg_host' and field_name='autoreg_host_lastid']
  1750. 19359:20140305:035905.828 End of proxy_get_lastid():0
  1751. 19359:20140305:035905.828 query [txnlev:0] [select p.id,p.clock,p.host,p.listen_ip,p.listen_dns,p.listen_port from proxy_autoreg_host p where p.id>0 order by p.id limit 1000]
  1752. 19359:20140305:035905.829 End of proxy_get_history_data():0 lastid:0
  1753. 19359:20140305:035905.829 End of history_sender()
  1754. 19359:20140305:035905.829 Datasender spent 0.007570 seconds while processing 0 values.
  1755. 19359:20140305:035905.829 sleeping for 1 seconds
  1756. 19359:20140305:035906.829 In host_availability_sender()
  1757. 19359:20140305:035906.830 In get_host_availability_data()
  1758. 19359:20140305:035906.830 query [txnlev:0] [select hostid,available,error,snmp_available,snmp_error,ipmi_available,ipmi_error,jmx_available,jmx_error from hosts]
  1759. 19359:20140305:035906.831 End of get_host_availability_data():FAIL
  1760. 19359:20140305:035906.831 End of host_availability_sender()
  1761. 19359:20140305:035906.831 In history_sender()
  1762. 19359:20140305:035906.831 In proxy_get_history_data() table:'proxy_history'
  1763. 19359:20140305:035906.832 In proxy_get_lastid() [proxy_history.history_lastid]
  1764. 19359:20140305:035906.832 query [txnlev:0] [select nextid from ids where table_name='proxy_history' and field_name='history_lastid']
  1765. 19359:20140305:035906.832 End of proxy_get_lastid():0
  1766. 19359:20140305:035906.832 query [txnlev:0] [select p.id,h.host,i.key_,p.clock,p.ns,p.timestamp,p.source,p.severity,p.value,p.logeventid,p.status from hosts h,items i,proxy_history p where h.hostid=i.hostid and i.itemid=p.itemid and p.id>0 order by p.id limit 1000]
  1767. 19359:20140305:035906.833 End of proxy_get_history_data():0 lastid:0
  1768. 19359:20140305:035906.833 End of history_sender()
  1769. 19359:20140305:035906.833 In history_sender()
  1770. 19359:20140305:035906.833 In proxy_get_history_data() table:'proxy_dhistory'
  1771. 19359:20140305:035906.834 In proxy_get_lastid() [proxy_dhistory.dhistory_lastid]
  1772. 19359:20140305:035906.834 query [txnlev:0] [select nextid from ids where table_name='proxy_dhistory' and field_name='dhistory_lastid']
  1773. 19359:20140305:035906.834 End of proxy_get_lastid():0
  1774. 19359:20140305:035906.834 query [txnlev:0] [select p.id,p.clock,p.druleid,p.dcheckid,p.type,p.ip,p.dns,p.port,p.key_,p.value,p.status from proxy_dhistory p where p.id>0 order by p.id limit 1000]
  1775. 19359:20140305:035906.835 End of proxy_get_history_data():0 lastid:0
  1776. 19359:20140305:035906.835 End of history_sender()
  1777. 19359:20140305:035906.835 In history_sender()
  1778. 19359:20140305:035906.835 In proxy_get_history_data() table:'proxy_autoreg_host'
  1779. 19359:20140305:035906.835 In proxy_get_lastid() [proxy_autoreg_host.autoreg_host_lastid]
  1780. 19359:20140305:035906.836 query [txnlev:0] [select nextid from ids where table_name='proxy_autoreg_host' and field_name='autoreg_host_lastid']
  1781. 19359:20140305:035906.836 End of proxy_get_lastid():0
  1782. 19359:20140305:035906.836 query [txnlev:0] [select p.id,p.clock,p.host,p.listen_ip,p.listen_dns,p.listen_port from proxy_autoreg_host p where p.id>0 order by p.id limit 1000]
  1783. 19359:20140305:035906.837 End of proxy_get_history_data():0 lastid:0
  1784. 19359:20140305:035906.837 End of history_sender()
  1785. 19359:20140305:035906.837 Datasender spent 0.007545 seconds while processing 0 values.
  1786. 19359:20140305:035906.837 sleeping for 1 seconds
  1787. 19359:20140305:035907.838 In host_availability_sender()
  1788. 19359:20140305:035907.838 In get_host_availability_data()
  1789. 19359:20140305:035907.838 query [txnlev:0] [select hostid,available,error,snmp_available,snmp_error,ipmi_available,ipmi_error,jmx_available,jmx_error from hosts]
  1790. 19359:20140305:035907.839 End of get_host_availability_data():FAIL
  1791. 19359:20140305:035907.839 End of host_availability_sender()
  1792. 19359:20140305:035907.839 In history_sender()
  1793. 19359:20140305:035907.839 In proxy_get_history_data() table:'proxy_history'
  1794. 19359:20140305:035907.840 In proxy_get_lastid() [proxy_history.history_lastid]
  1795. 19359:20140305:035907.840 query [txnlev:0] [select nextid from ids where table_name='proxy_history' and field_name='history_lastid']
  1796. 19359:20140305:035907.840 End of proxy_get_lastid():0
  1797. 19359:20140305:035907.840 query [txnlev:0] [select p.id,h.host,i.key_,p.clock,p.ns,p.timestamp,p.source,p.severity,p.value,p.logeventid,p.status from hosts h,items i,proxy_history p where h.hostid=i.hostid and i.itemid=p.itemid and p.id>0 order by p.id limit 1000]
  1798. 19359:20140305:035907.841 End of proxy_get_history_data():0 lastid:0
  1799. 19359:20140305:035907.841 End of history_sender()
  1800. 19359:20140305:035907.841 In history_sender()
  1801. 19359:20140305:035907.842 In proxy_get_history_data() table:'proxy_dhistory'
  1802. 19359:20140305:035907.842 In proxy_get_lastid() [proxy_dhistory.dhistory_lastid]
  1803. 19359:20140305:035907.842 query [txnlev:0] [select nextid from ids where table_name='proxy_dhistory' and field_name='dhistory_lastid']
  1804. 19359:20140305:035907.842 End of proxy_get_lastid():0
  1805. 19359:20140305:035907.842 query [txnlev:0] [select p.id,p.clock,p.druleid,p.dcheckid,p.type,p.ip,p.dns,p.port,p.key_,p.value,p.status from proxy_dhistory p where p.id>0 order by p.id limit 1000]
  1806. 19359:20140305:035907.843 End of proxy_get_history_data():0 lastid:0
  1807. 19359:20140305:035907.843 End of history_sender()
  1808. 19359:20140305:035907.843 In history_sender()
  1809. 19359:20140305:035907.843 In proxy_get_history_data() table:'proxy_autoreg_host'
  1810. 19359:20140305:035907.844 In proxy_get_lastid() [proxy_autoreg_host.autoreg_host_lastid]
  1811. 19359:20140305:035907.844 query [txnlev:0] [select nextid from ids where table_name='proxy_autoreg_host' and field_name='autoreg_host_lastid']
  1812. 19359:20140305:035907.844 End of proxy_get_lastid():0
  1813. 19359:20140305:035907.844 query [txnlev:0] [select p.id,p.clock,p.host,p.listen_ip,p.listen_dns,p.listen_port from proxy_autoreg_host p where p.id>0 order by p.id limit 1000]
  1814. 19359:20140305:035907.845 End of proxy_get_history_data():0 lastid:0
  1815. 19359:20140305:035907.845 End of history_sender()
  1816. 19359:20140305:035907.845 Datasender spent 0.007579 seconds while processing 0 values.
  1817. 19359:20140305:035907.845 sleeping for 1 seconds
  1818. 19360:20140305:035908.702 In get_values()
  1819. 19361:20140305:035908.702 In get_values()
  1820. 19361:20140305:035908.707 In DCconfig_get_poller_items() poller_type:0
  1821. 19361:20140305:035908.707 End of DCconfig_get_poller_items():0
  1822. 19360:20140305:035908.707 In DCconfig_get_poller_items() poller_type:0
  1823. 19361:20140305:035908.708 End of get_values():0
  1824. 19360:20140305:035908.708 End of DCconfig_get_poller_items():0
  1825. 19361:20140305:035908.708 poller #2 spent 0.005613 seconds while updating 0 values
  1826. 19360:20140305:035908.708 End of get_values():0
  1827. 19361:20140305:035908.709 In DCconfig_get_poller_nextcheck() poller_type:0
  1828. 19360:20140305:035908.709 poller #1 spent 0.006649 seconds while updating 0 values
  1829. 19361:20140305:035908.709 End of DCconfig_get_poller_nextcheck():-1
  1830. 19360:20140305:035908.709 In DCconfig_get_poller_nextcheck() poller_type:0
  1831. 19361:20140305:035908.709 sleeping for 5 seconds
  1832. 19360:20140305:035908.710 End of DCconfig_get_poller_nextcheck():-1
  1833. 19360:20140305:035908.710 sleeping for 5 seconds
  1834. 19363:20140305:035908.738 In get_values()
  1835. 19365:20140305:035908.738 In get_values()
  1836. 19364:20140305:035908.738 In get_values()
  1837. 19362:20140305:035908.738 In get_values()
  1838. 19362:20140305:035908.738 In DCconfig_get_poller_items() poller_type:0
  1839. 19365:20140305:035908.739 In DCconfig_get_poller_items() poller_type:1
  1840. 19364:20140305:035908.739 In DCconfig_get_poller_items() poller_type:0
  1841. 19363:20140305:035908.739 In DCconfig_get_poller_items() poller_type:0
  1842. 19365:20140305:035908.739 End of DCconfig_get_poller_items():0
  1843. 19362:20140305:035908.739 End of DCconfig_get_poller_items():0
  1844. 19364:20140305:035908.740 End of DCconfig_get_poller_items():0
  1845. 19363:20140305:035908.740 End of DCconfig_get_poller_items():0
  1846. 19365:20140305:035908.740 End of get_values():0
  1847. 19362:20140305:035908.740 End of get_values():0
  1848. 19364:20140305:035908.740 End of get_values():0
  1849. 19363:20140305:035908.741 End of get_values():0
  1850. 19365:20140305:035908.741 unreachable poller #1 spent 0.002984 seconds while updating 0 values
  1851. 19362:20140305:035908.741 poller #3 spent 0.002784 seconds while updating 0 values
  1852. 19364:20140305:035908.741 poller #5 spent 0.003201 seconds while updating 0 values
  1853. 19363:20140305:035908.741 poller #4 spent 0.003838 seconds while updating 0 values
  1854. 19365:20140305:035908.742 In DCconfig_get_poller_nextcheck() poller_type:1
  1855. 19362:20140305:035908.742 In DCconfig_get_poller_nextcheck() poller_type:0
  1856. 19364:20140305:035908.742 In DCconfig_get_poller_nextcheck() poller_type:0
  1857. 19363:20140305:035908.742 In DCconfig_get_poller_nextcheck() poller_type:0
  1858. 19365:20140305:035908.742 End of DCconfig_get_poller_nextcheck():-1
  1859. 19362:20140305:035908.743 End of DCconfig_get_poller_nextcheck():-1
  1860. 19364:20140305:035908.743 End of DCconfig_get_poller_nextcheck():-1
  1861. 19363:20140305:035908.743 End of DCconfig_get_poller_nextcheck():-1
  1862. 19365:20140305:035908.743 sleeping for 5 seconds
  1863. 19362:20140305:035908.743 sleeping for 5 seconds
  1864. 19364:20140305:035908.744 sleeping for 5 seconds
  1865. 19363:20140305:035908.744 sleeping for 5 seconds
  1866. 19371:20140305:035908.798 In get_pinger_hosts()
  1867. 19371:20140305:035908.798 In DCconfig_get_poller_items() poller_type:3
  1868. 19371:20140305:035908.798 End of DCconfig_get_poller_items():0
  1869. 19371:20140305:035908.799 End of get_pinger_hosts():0
  1870. 19371:20140305:035908.799 In process_pinger_hosts()
  1871. 19371:20140305:035908.799 End of process_pinger_hosts()
  1872. 19371:20140305:035908.799 icmp pinger #1 spent 0.001413 seconds while processing 0 items
  1873. 19371:20140305:035908.799 In DCconfig_get_poller_nextcheck() poller_type:3
  1874. 19371:20140305:035908.800 End of DCconfig_get_poller_nextcheck():-1
  1875. 19371:20140305:035908.800 sleeping for 5 seconds
  1876. 19376:20140305:035908.813 Syncing ...
  1877. 19376:20140305:035908.813 In DCsync_history() history_first:0 history_num:0
  1878. 19376:20140305:035908.813 history syncer #2 spent 0.000219 seconds while processing 0 items
  1879. 19376:20140305:035908.813 sleeping for 5 seconds
  1880. 19373:20140305:035908.816 In process_httptests()
  1881. 19373:20140305:035908.816 query [txnlev:0] [select t.httptestid,t.name,t.macros,t.agent,t.authentication,t.http_user,t.http_password from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and t.nextcheck<=1393991948 and t.httptestid%1=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)]
  1882. 19373:20140305:035908.817 End of process_httptests()
  1883. 19373:20140305:035908.817 http poller #1 spent 0.001031 seconds while updating HTTP tests
  1884. 19373:20140305:035908.817 query [txnlev:0] [select min(t.nextcheck) from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and t.httptestid%1=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)]
  1885. 19373:20140305:035908.818 No httptests to process in get_minnextcheck.
  1886. 19373:20140305:035908.818 sleeping for 5 seconds
  1887. 19375:20140305:035908.818 Syncing ...
  1888. 19375:20140305:035908.818 In DCsync_history() history_first:0 history_num:0
  1889. 19375:20140305:035908.818 history syncer #1 spent 0.000201 seconds while processing 0 items
  1890. 19375:20140305:035908.819 sleeping for 5 seconds
  1891. 19377:20140305:035908.820 Syncing ...
  1892. 19377:20140305:035908.820 In DCsync_history() history_first:0 history_num:0
  1893. 19377:20140305:035908.821 history syncer #3 spent 0.000223 seconds while processing 0 items
  1894. 19377:20140305:035908.821 sleeping for 5 seconds
  1895. 19378:20140305:035908.823 Syncing ...
  1896. 19378:20140305:035908.823 In DCsync_history() history_first:0 history_num:0
  1897. 19378:20140305:035908.823 history syncer #4 spent 0.000199 seconds while processing 0 items
  1898. 19378:20140305:035908.823 sleeping for 5 seconds
  1899. 19359:20140305:035908.846 In host_availability_sender()
  1900. 19359:20140305:035908.846 In get_host_availability_data()
  1901. 19359:20140305:035908.846 query [txnlev:0] [select hostid,available,error,snmp_available,snmp_error,ipmi_available,ipmi_error,jmx_available,jmx_error from hosts]
  1902. 19359:20140305:035908.846 End of get_host_availability_data():FAIL
  1903. 19359:20140305:035908.847 End of host_availability_sender()
  1904. 19359:20140305:035908.847 In history_sender()
  1905. 19359:20140305:035908.847 In proxy_get_history_data() table:'proxy_history'
  1906. 19359:20140305:035908.847 In proxy_get_lastid() [proxy_history.history_lastid]
  1907. 19359:20140305:035908.847 query [txnlev:0] [select nextid from ids where table_name='proxy_history' and field_name='history_lastid']
  1908. 19359:20140305:035908.848 End of proxy_get_lastid():0
  1909. 19359:20140305:035908.848 query [txnlev:0] [select p.id,h.host,i.key_,p.clock,p.ns,p.timestamp,p.source,p.severity,p.value,p.logeventid,p.status from hosts h,items i,proxy_history p where h.hostid=i.hostid and i.itemid=p.itemid and p.id>0 order by p.id limit 1000]
  1910. 19359:20140305:035908.848 End of proxy_get_history_data():0 lastid:0
  1911. 19359:20140305:035908.849 End of history_sender()
  1912. 19359:20140305:035908.849 In history_sender()
  1913. 19359:20140305:035908.849 In proxy_get_history_data() table:'proxy_dhistory'
  1914. 19359:20140305:035908.849 In proxy_get_lastid() [proxy_dhistory.dhistory_lastid]
  1915. 19359:20140305:035908.849 query [txnlev:0] [select nextid from ids where table_name='proxy_dhistory' and field_name='dhistory_lastid']
  1916. 19359:20140305:035908.850 End of proxy_get_lastid():0
  1917. 19359:20140305:035908.850 query [txnlev:0] [select p.id,p.clock,p.druleid,p.dcheckid,p.type,p.ip,p.dns,p.port,p.key_,p.value,p.status from proxy_dhistory p where p.id>0 order by p.id limit 1000]
  1918. 19359:20140305:035908.850 End of proxy_get_history_data():0 lastid:0
  1919. 19359:20140305:035908.851 End of history_sender()
  1920. 19359:20140305:035908.851 In history_sender()
  1921. 19359:20140305:035908.851 In proxy_get_history_data() table:'proxy_autoreg_host'
  1922. 19359:20140305:035908.851 In proxy_get_lastid() [proxy_autoreg_host.autoreg_host_lastid]
  1923. 19359:20140305:035908.851 query [txnlev:0] [select nextid from ids where table_name='proxy_autoreg_host' and field_name='autoreg_host_lastid']
  1924. 19359:20140305:035908.852 End of proxy_get_lastid():0
  1925. 19359:20140305:035908.852 query [txnlev:0] [select p.id,p.clock,p.host,p.listen_ip,p.listen_dns,p.listen_port from proxy_autoreg_host p where p.id>0 order by p.id limit 1000]
  1926. 19359:20140305:035908.852 End of proxy_get_history_data():0 lastid:0
  1927. 19359:20140305:035908.852 End of history_sender()
  1928. 19359:20140305:035908.853 Datasender spent 0.007002 seconds while processing 0 values.
  1929. 19359:20140305:035908.853 sleeping for 1 seconds
  1930. 19359:20140305:035909.853 In host_availability_sender()
  1931. 19359:20140305:035909.854 In get_host_availability_data()
  1932. 19359:20140305:035909.854 query [txnlev:0] [select hostid,available,error,snmp_available,snmp_error,ipmi_available,ipmi_error,jmx_available,jmx_error from hosts]
  1933. 19359:20140305:035909.854 End of get_host_availability_data():FAIL
  1934. 19359:20140305:035909.855 End of host_availability_sender()
  1935. 19359:20140305:035909.855 In history_sender()
  1936. 19359:20140305:035909.855 In proxy_get_history_data() table:'proxy_history'
  1937. 19359:20140305:035909.855 In proxy_get_lastid() [proxy_history.history_lastid]
  1938. 19359:20140305:035909.856 query [txnlev:0] [select nextid from ids where table_name='proxy_history' and field_name='history_lastid']
  1939. 19359:20140305:035909.856 End of proxy_get_lastid():0
  1940. 19359:20140305:035909.856 query [txnlev:0] [select p.id,h.host,i.key_,p.clock,p.ns,p.timestamp,p.source,p.severity,p.value,p.logeventid,p.status from hosts h,items i,proxy_history p where h.hostid=i.hostid and i.itemid=p.itemid and p.id>0 order by p.id limit 1000]
  1941. 19359:20140305:035909.857 End of proxy_get_history_data():0 lastid:0
  1942. 19359:20140305:035909.857 End of history_sender()
  1943. 19359:20140305:035909.857 In history_sender()
  1944. 19359:20140305:035909.857 In proxy_get_history_data() table:'proxy_dhistory'
  1945. 19359:20140305:035909.857 In proxy_get_lastid() [proxy_dhistory.dhistory_lastid]
  1946. 19359:20140305:035909.858 query [txnlev:0] [select nextid from ids where table_name='proxy_dhistory' and field_name='dhistory_lastid']
  1947. 19359:20140305:035909.858 End of proxy_get_lastid():0
  1948. 19359:20140305:035909.858 query [txnlev:0] [select p.id,p.clock,p.druleid,p.dcheckid,p.type,p.ip,p.dns,p.port,p.key_,p.value,p.status from proxy_dhistory p where p.id>0 order by p.id limit 1000]
  1949. 19359:20140305:035909.858 End of proxy_get_history_data():0 lastid:0
  1950. 19359:20140305:035909.859 End of history_sender()
  1951. 19359:20140305:035909.859 In history_sender()
  1952. 19359:20140305:035909.859 In proxy_get_history_data() table:'proxy_autoreg_host'
  1953. 19359:20140305:035909.859 In proxy_get_lastid() [proxy_autoreg_host.autoreg_host_lastid]
  1954. 19359:20140305:035909.859 query [txnlev:0] [select nextid from ids where table_name='proxy_autoreg_host' and field_name='autoreg_host_lastid']
  1955. 19359:20140305:035909.860 End of proxy_get_lastid():0
  1956. 19359:20140305:035909.860 query [txnlev:0] [select p.id,p.clock,p.host,p.listen_ip,p.listen_dns,p.listen_port from proxy_autoreg_host p where p.id>0 order by p.id limit 1000]
  1957. 19359:20140305:035909.860 End of proxy_get_history_data():0 lastid:0
  1958. 19359:20140305:035909.861 End of history_sender()
  1959. 19359:20140305:035909.861 Datasender spent 0.007611 seconds while processing 0 values.
  1960. 19359:20140305:035909.861 sleeping for 1 seconds
  1961. 19359:20140305:035910.861 In host_availability_sender()
  1962. 19359:20140305:035910.862 In get_host_availability_data()
  1963. 19359:20140305:035910.862 query [txnlev:0] [select hostid,available,error,snmp_available,snmp_error,ipmi_available,ipmi_error,jmx_available,jmx_error from hosts]
  1964. 19359:20140305:035910.863 End of get_host_availability_data():FAIL
  1965. 19359:20140305:035910.863 End of host_availability_sender()
  1966. 19359:20140305:035910.864 In history_sender()
  1967. 19359:20140305:035910.864 In proxy_get_history_data() table:'proxy_history'
  1968. 19359:20140305:035910.864 In proxy_get_lastid() [proxy_history.history_lastid]
  1969. 19359:20140305:035910.865 query [txnlev:0] [select nextid from ids where table_name='proxy_history' and field_name='history_lastid']
  1970. 19359:20140305:035910.865 End of proxy_get_lastid():0
  1971. 19359:20140305:035910.865 query [txnlev:0] [select p.id,h.host,i.key_,p.clock,p.ns,p.timestamp,p.source,p.severity,p.value,p.logeventid,p.status from hosts h,items i,proxy_history p where h.hostid=i.hostid and i.itemid=p.itemid and p.id>0 order by p.id limit 1000]
  1972. 19359:20140305:035910.866 End of proxy_get_history_data():0 lastid:0
  1973. 19359:20140305:035910.866 End of history_sender()
  1974. 19359:20140305:035910.867 In history_sender()
  1975. 19359:20140305:035910.867 In proxy_get_history_data() table:'proxy_dhistory'
  1976. 19359:20140305:035910.867 In proxy_get_lastid() [proxy_dhistory.dhistory_lastid]
  1977. 19359:20140305:035910.867 query [txnlev:0] [select nextid from ids where table_name='proxy_dhistory' and field_name='dhistory_lastid']
  1978. 19359:20140305:035910.868 End of proxy_get_lastid():0
  1979. 19359:20140305:035910.868 query [txnlev:0] [select p.id,p.clock,p.druleid,p.dcheckid,p.type,p.ip,p.dns,p.port,p.key_,p.value,p.status from proxy_dhistory p where p.id>0 order by p.id limit 1000]
  1980. 19359:20140305:035910.868 End of proxy_get_history_data():0 lastid:0
  1981. 19359:20140305:035910.869 End of history_sender()
  1982. 19359:20140305:035910.869 In history_sender()
  1983. 19359:20140305:035910.869 In proxy_get_history_data() table:'proxy_autoreg_host'
  1984. 19359:20140305:035910.869 In proxy_get_lastid() [proxy_autoreg_host.autoreg_host_lastid]
  1985. 19359:20140305:035910.869 query [txnlev:0] [select nextid from ids where table_name='proxy_autoreg_host' and field_name='autoreg_host_lastid']
  1986. 19359:20140305:035910.870 End of proxy_get_lastid():0
  1987. 19359:20140305:035910.870 query [txnlev:0] [select p.id,p.clock,p.host,p.listen_ip,p.listen_dns,p.listen_port from proxy_autoreg_host p where p.id>0 order by p.id limit 1000]
  1988. 19359:20140305:035910.870 End of proxy_get_history_data():0 lastid:0
  1989. 19359:20140305:035910.871 End of history_sender()
  1990. 19359:20140305:035910.871 Datasender spent 0.009369 seconds while processing 0 values.
  1991. 19359:20140305:035910.871 sleeping for 1 seconds
  1992. 19359:20140305:035911.871 In host_availability_sender()
  1993. 19359:20140305:035911.872 In get_host_availability_data()
  1994. 19359:20140305:035911.872 query [txnlev:0] [select hostid,available,error,snmp_available,snmp_error,ipmi_available,ipmi_error,jmx_available,jmx_error from hosts]
  1995. 19359:20140305:035911.872 End of get_host_availability_data():FAIL
  1996. 19359:20140305:035911.873 End of host_availability_sender()
  1997. 19359:20140305:035911.873 In history_sender()
  1998. 19359:20140305:035911.873 In proxy_get_history_data() table:'proxy_history'
  1999. 19359:20140305:035911.873 In proxy_get_lastid() [proxy_history.history_lastid]
  2000. 19359:20140305:035911.874 query [txnlev:0] [select nextid from ids where table_name='proxy_history' and field_name='history_lastid']
  2001. 19359:20140305:035911.874 End of proxy_get_lastid():0
  2002. 19359:20140305:035911.874 query [txnlev:0] [select p.id,h.host,i.key_,p.clock,p.ns,p.timestamp,p.source,p.severity,p.value,p.logeventid,p.status from hosts h,items i,proxy_history p where h.hostid=i.hostid and i.itemid=p.itemid and p.id>0 order by p.id limit 1000]
  2003. 19359:20140305:035911.875 End of proxy_get_history_data():0 lastid:0
  2004. 19359:20140305:035911.875 End of history_sender()
  2005. 19359:20140305:035911.875 In history_sender()
  2006. 19359:20140305:035911.875 In proxy_get_history_data() table:'proxy_dhistory'
  2007. 19359:20140305:035911.875 In proxy_get_lastid() [proxy_dhistory.dhistory_lastid]
  2008. 19359:20140305:035911.876 query [txnlev:0] [select nextid from ids where table_name='proxy_dhistory' and field_name='dhistory_lastid']
  2009. 19359:20140305:035911.876 End of proxy_get_lastid():0
  2010. 19359:20140305:035911.876 query [txnlev:0] [select p.id,p.clock,p.druleid,p.dcheckid,p.type,p.ip,p.dns,p.port,p.key_,p.value,p.status from proxy_dhistory p where p.id>0 order by p.id limit 1000]
  2011. 19359:20140305:035911.876 End of proxy_get_history_data():0 lastid:0
  2012. 19359:20140305:035911.877 End of history_sender()
  2013. 19359:20140305:035911.877 In history_sender()
  2014. 19359:20140305:035911.877 In proxy_get_history_data() table:'proxy_autoreg_host'
  2015. 19359:20140305:035911.877 In proxy_get_lastid() [proxy_autoreg_host.autoreg_host_lastid]
  2016. 19359:20140305:035911.877 query [txnlev:0] [select nextid from ids where table_name='proxy_autoreg_host' and field_name='autoreg_host_lastid']
  2017. 19359:20140305:035911.878 End of proxy_get_lastid():0
  2018. 19359:20140305:035911.878 query [txnlev:0] [select p.id,p.clock,p.host,p.listen_ip,p.listen_dns,p.listen_port from proxy_autoreg_host p where p.id>0 order by p.id limit 1000]
  2019. 19359:20140305:035911.878 End of proxy_get_history_data():0 lastid:0
  2020. 19359:20140305:035911.879 End of history_sender()
  2021. 19359:20140305:035911.879 Datasender spent 0.007469 seconds while processing 0 values.
  2022. 19359:20140305:035911.879 sleeping for 1 seconds
  2023. 19359:20140305:035912.879 In host_availability_sender()
  2024. 19359:20140305:035912.880 In get_host_availability_data()
  2025. 19359:20140305:035912.880 query [txnlev:0] [select hostid,available,error,snmp_available,snmp_error,ipmi_available,ipmi_error,jmx_available,jmx_error from hosts]
  2026. 19359:20140305:035912.881 End of get_host_availability_data():FAIL
  2027. 19359:20140305:035912.881 End of host_availability_sender()
  2028. 19359:20140305:035912.881 In history_sender()
  2029. 19359:20140305:035912.882 In proxy_get_history_data() table:'proxy_history'
  2030. 19359:20140305:035912.882 In proxy_get_lastid() [proxy_history.history_lastid]
  2031. 19359:20140305:035912.882 query [txnlev:0] [select nextid from ids where table_name='proxy_history' and field_name='history_lastid']
  2032. 19359:20140305:035912.883 End of proxy_get_lastid():0
  2033. 19359:20140305:035912.883 query [txnlev:0] [select p.id,h.host,i.key_,p.clock,p.ns,p.timestamp,p.source,p.severity,p.value,p.logeventid,p.status from hosts h,items i,proxy_history p where h.hostid=i.hostid and i.itemid=p.itemid and p.id>0 order by p.id limit 1000]
  2034. 19359:20140305:035912.883 End of proxy_get_history_data():0 lastid:0
  2035. 19359:20140305:035912.884 End of history_sender()
  2036. 19359:20140305:035912.884 In history_sender()
  2037. 19359:20140305:035912.884 In proxy_get_history_data() table:'proxy_dhistory'
  2038. 19359:20140305:035912.884 In proxy_get_lastid() [proxy_dhistory.dhistory_lastid]
  2039. 19359:20140305:035912.885 query [txnlev:0] [select nextid from ids where table_name='proxy_dhistory' and field_name='dhistory_lastid']
  2040. 19359:20140305:035912.885 End of proxy_get_lastid():0
  2041. 19359:20140305:035912.885 query [txnlev:0] [select p.id,p.clock,p.druleid,p.dcheckid,p.type,p.ip,p.dns,p.port,p.key_,p.value,p.status from proxy_dhistory p where p.id>0 order by p.id limit 1000]
  2042. 19359:20140305:035912.886 End of proxy_get_history_data():0 lastid:0
  2043. 19359:20140305:035912.886 End of history_sender()
  2044. 19359:20140305:035912.886 In history_sender()
  2045. 19359:20140305:035912.886 In proxy_get_history_data() table:'proxy_autoreg_host'
  2046. 19359:20140305:035912.886 In proxy_get_lastid() [proxy_autoreg_host.autoreg_host_lastid]
  2047. 19359:20140305:035912.887 query [txnlev:0] [select nextid from ids where table_name='proxy_autoreg_host' and field_name='autoreg_host_lastid']
  2048. 19359:20140305:035912.887 End of proxy_get_lastid():0
  2049. 19359:20140305:035912.887 query [txnlev:0] [select p.id,p.clock,p.host,p.listen_ip,p.listen_dns,p.listen_port from proxy_autoreg_host p where p.id>0 order by p.id limit 1000]
  2050. 19359:20140305:035912.887 End of proxy_get_history_data():0 lastid:0
  2051. 19359:20140305:035912.888 End of history_sender()
  2052. 19359:20140305:035912.888 Datasender spent 0.008473 seconds while processing 0 values.
  2053. 19359:20140305:035912.888 sleeping for 1 seconds
  2054. 19361:20140305:035913.711 In get_values()
  2055. 19360:20140305:035913.711 In get_values()
  2056. 19360:20140305:035913.714 In DCconfig_get_poller_items() poller_type:0
  2057. 19360:20140305:035913.715 End of DCconfig_get_poller_items():0
  2058. 19361:20140305:035913.715 In DCconfig_get_poller_items() poller_type:0
  2059. 19360:20140305:035913.715 End of get_values():0
  2060. 19361:20140305:035913.715 End of DCconfig_get_poller_items():0
  2061. 19360:20140305:035913.715 poller #1 spent 0.004482 seconds while updating 0 values
  2062. 19360:20140305:035913.716 In DCconfig_get_poller_nextcheck() poller_type:0
  2063. 19361:20140305:035913.716 End of get_values():0
  2064. 19360:20140305:035913.716 End of DCconfig_get_poller_nextcheck():-1
  2065. 19361:20140305:035913.716 poller #2 spent 0.005753 seconds while updating 0 values
  2066. 19361:20140305:035913.717 In DCconfig_get_poller_nextcheck() poller_type:0
  2067. 19361:20140305:035913.717 End of DCconfig_get_poller_nextcheck():-1
  2068. 19360:20140305:035913.717 sleeping for 5 seconds
  2069. 19361:20140305:035913.717 sleeping for 5 seconds
  2070. 19362:20140305:035913.745 In get_values()
  2071. 19365:20140305:035913.745 In get_values()
  2072. 19364:20140305:035913.745 In get_values()
  2073. 19363:20140305:035913.745 In get_values()
  2074. 19363:20140305:035913.746 In DCconfig_get_poller_items() poller_type:0
  2075. 19364:20140305:035913.746 In DCconfig_get_poller_items() poller_type:0
  2076. 19365:20140305:035913.746 In DCconfig_get_poller_items() poller_type:1
  2077. 19362:20140305:035913.746 In DCconfig_get_poller_items() poller_type:0
  2078. 19364:20140305:035913.746 End of DCconfig_get_poller_items():0
  2079. 19365:20140305:035913.747 End of DCconfig_get_poller_items():0
  2080. 19363:20140305:035913.747 End of DCconfig_get_poller_items():0
  2081. 19362:20140305:035913.747 End of DCconfig_get_poller_items():0
  2082. 19365:20140305:035913.747 End of get_values():0
  2083. 19364:20140305:035913.747 End of get_values():0
  2084. 19363:20140305:035913.747 End of get_values():0
  2085. 19362:20140305:035913.748 End of get_values():0
  2086. 19365:20140305:035913.748 unreachable poller #1 spent 0.002921 seconds while updating 0 values
  2087. 19363:20140305:035913.748 poller #4 spent 0.002738 seconds while updating 0 values
  2088. 19364:20140305:035913.748 poller #5 spent 0.003149 seconds while updating 0 values
  2089. 19362:20140305:035913.748 poller #3 spent 0.003781 seconds while updating 0 values
  2090. 19365:20140305:035913.749 In DCconfig_get_poller_nextcheck() poller_type:1
  2091. 19364:20140305:035913.749 In DCconfig_get_poller_nextcheck() poller_type:0
  2092. 19363:20140305:035913.749 In DCconfig_get_poller_nextcheck() poller_type:0
  2093. 19362:20140305:035913.749 In DCconfig_get_poller_nextcheck() poller_type:0
  2094. 19365:20140305:035913.750 End of DCconfig_get_poller_nextcheck():-1
  2095. 19364:20140305:035913.750 End of DCconfig_get_poller_nextcheck():-1
  2096. 19363:20140305:035913.750 End of DCconfig_get_poller_nextcheck():-1
  2097. 19362:20140305:035913.750 End of DCconfig_get_poller_nextcheck():-1
  2098. 19365:20140305:035913.750 sleeping for 5 seconds
  2099. 19364:20140305:035913.751 sleeping for 5 seconds
  2100. 19363:20140305:035913.751 sleeping for 5 seconds
  2101. 19362:20140305:035913.751 sleeping for 5 seconds
  2102. 19371:20140305:035913.801 In get_pinger_hosts()
  2103. 19371:20140305:035913.801 In DCconfig_get_poller_items() poller_type:3
  2104. 19371:20140305:035913.801 End of DCconfig_get_poller_items():0
  2105. 19371:20140305:035913.802 End of get_pinger_hosts():0
  2106. 19371:20140305:035913.802 In process_pinger_hosts()
  2107. 19371:20140305:035913.802 End of process_pinger_hosts()
  2108. 19371:20140305:035913.802 icmp pinger #1 spent 0.001350 seconds while processing 0 items
  2109. 19371:20140305:035913.802 In DCconfig_get_poller_nextcheck() poller_type:3
  2110. 19371:20140305:035913.803 End of DCconfig_get_poller_nextcheck():-1
  2111. 19371:20140305:035913.803 sleeping for 5 seconds
  2112. 19376:20140305:035913.814 Syncing ...
  2113. 19376:20140305:035913.814 In DCsync_history() history_first:0 history_num:0
  2114. 19376:20140305:035913.815 history syncer #2 spent 0.000214 seconds while processing 0 items
  2115. 19376:20140305:035913.815 sleeping for 5 seconds
  2116. 19375:20140305:035913.819 Syncing ...
  2117. 19373:20140305:035913.820 In process_httptests()
  2118. 19373:20140305:035913.820 query [txnlev:0] [select t.httptestid,t.name,t.macros,t.agent,t.authentication,t.http_user,t.http_password from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and t.nextcheck<=1393991953 and t.httptestid%1=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)]
  2119. 19375:20140305:035913.820 In DCsync_history() history_first:0 history_num:0
  2120. 19375:20140305:035913.821 history syncer #1 spent 0.000561 seconds while processing 0 items
  2121. 19375:20140305:035913.821 sleeping for 5 seconds
  2122. 19373:20140305:035913.821 End of process_httptests()
  2123. 19373:20140305:035913.821 http poller #1 spent 0.001649 seconds while updating HTTP tests
  2124. 19373:20140305:035913.821 query [txnlev:0] [select min(t.nextcheck) from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and t.httptestid%1=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)]
  2125. 19377:20140305:035913.822 Syncing ...
  2126. 19377:20140305:035913.822 In DCsync_history() history_first:0 history_num:0
  2127. 19377:20140305:035913.822 history syncer #3 spent 0.000197 seconds while processing 0 items
  2128. 19377:20140305:035913.822 sleeping for 5 seconds
  2129. 19373:20140305:035913.823 No httptests to process in get_minnextcheck.
  2130. 19373:20140305:035913.823 sleeping for 5 seconds
  2131. 19378:20140305:035913.824 Syncing ...
  2132. 19378:20140305:035913.824 In DCsync_history() history_first:0 history_num:0
  2133. 19378:20140305:035913.824 history syncer #4 spent 0.000199 seconds while processing 0 items
  2134. 19378:20140305:035913.824 sleeping for 5 seconds
  2135. 19359:20140305:035913.888 In host_availability_sender()
  2136. 19359:20140305:035913.889 In get_host_availability_data()
  2137. 19359:20140305:035913.889 query [txnlev:0] [select hostid,available,error,snmp_available,snmp_error,ipmi_available,ipmi_error,jmx_available,jmx_error from hosts]
  2138. 19359:20140305:035913.889 End of get_host_availability_data():FAIL
  2139. 19359:20140305:035913.890 End of host_availability_sender()
  2140. 19359:20140305:035913.890 In history_sender()
  2141. 19359:20140305:035913.890 In proxy_get_history_data() table:'proxy_history'
  2142. 19359:20140305:035913.890 In proxy_get_lastid() [proxy_history.history_lastid]
  2143. 19359:20140305:035913.890 query [txnlev:0] [select nextid from ids where table_name='proxy_history' and field_name='history_lastid']
  2144. 19359:20140305:035913.891 End of proxy_get_lastid():0
  2145. 19359:20140305:035913.891 query [txnlev:0] [select p.id,h.host,i.key_,p.clock,p.ns,p.timestamp,p.source,p.severity,p.value,p.logeventid,p.status from hosts h,items i,proxy_history p where h.hostid=i.hostid and i.itemid=p.itemid and p.id>0 order by p.id limit 1000]
  2146. 19359:20140305:035913.891 End of proxy_get_history_data():0 lastid:0
  2147. 19359:20140305:035913.892 End of history_sender()
  2148. 19359:20140305:035913.892 In history_sender()
  2149. 19359:20140305:035913.892 In proxy_get_history_data() table:'proxy_dhistory'
  2150. 19359:20140305:035913.892 In proxy_get_lastid() [proxy_dhistory.dhistory_lastid]
  2151. 19359:20140305:035913.892 query [txnlev:0] [select nextid from ids where table_name='proxy_dhistory' and field_name='dhistory_lastid']
  2152. 19359:20140305:035913.893 End of proxy_get_lastid():0
  2153. 19359:20140305:035913.893 query [txnlev:0] [select p.id,p.clock,p.druleid,p.dcheckid,p.type,p.ip,p.dns,p.port,p.key_,p.value,p.status from proxy_dhistory p where p.id>0 order by p.id limit 1000]
  2154. 19359:20140305:035913.893 End of proxy_get_history_data():0 lastid:0
  2155. 19359:20140305:035913.894 End of history_sender()
  2156. 19359:20140305:035913.894 In history_sender()
  2157. 19359:20140305:035913.894 In proxy_get_history_data() table:'proxy_autoreg_host'
  2158. 19359:20140305:035913.894 In proxy_get_lastid() [proxy_autoreg_host.autoreg_host_lastid]
  2159. 19359:20140305:035913.895 query [txnlev:0] [select nextid from ids where table_name='proxy_autoreg_host' and field_name='autoreg_host_lastid']
  2160. 19359:20140305:035913.895 End of proxy_get_lastid():0
  2161. 19359:20140305:035913.895 query [txnlev:0] [select p.id,p.clock,p.host,p.listen_ip,p.listen_dns,p.listen_port from proxy_autoreg_host p where p.id>0 order by p.id limit 1000]
  2162. 19359:20140305:035913.895 End of proxy_get_history_data():0 lastid:0
  2163. 19359:20140305:035913.896 End of history_sender()
  2164. 19359:20140305:035913.896 Datasender spent 0.007426 seconds while processing 0 values.
  2165. 19359:20140305:035913.896 sleeping for 1 seconds
  2166. 19370:20140305:035914.180 Trapper got [{
  2167. "request":"active checks",
  2168. "host":"test-mon-master"}] len 56
  2169. 19370:20140305:035914.180 In send_list_of_active_checks_json()
  2170. 19370:20140305:035914.181 In get_hostid_by_host() host:'test-mon-master'
  2171. 19370:20140305:035914.181 query [txnlev:0] [select hostid,status from hosts where host='test-mon-master' and status in (0,1) and proxy_hostid is null]
  2172. 19370:20140305:035914.191 query [txnlev:1] [begin;]
  2173. 19370:20140305:035914.192 query [txnlev:1] [insert into proxy_autoreg_host (clock,host,listen_ip,listen_dns,listen_port) values (1393991954,'test-mon-master','10.185.20.42','ip-10-185-20-42.ec2.internal',10050)]
  2174. 19370:20140305:035914.193 query [txnlev:1] [commit;]
  2175. 19370:20140305:035914.193 End of get_hostid_by_host():FAIL
  2176. 19370:20140305:035914.193 cannot send list of active checks to [10.185.20.42]: host [test-mon-master] not found
  2177. 19370:20140305:035914.194 send_list_of_active_checks_json() sending [{
  2178. "response":"failed",
  2179. "info":"host [test-mon-master] not found"}]
  2180. 19370:20140305:035914.194 End of send_list_of_active_checks_json():SUCCEED
  2181. 19359:20140305:035914.896 In host_availability_sender()
  2182. 19359:20140305:035914.897 In get_host_availability_data()
  2183. 19359:20140305:035914.897 query [txnlev:0] [select hostid,available,error,snmp_available,snmp_error,ipmi_available,ipmi_error,jmx_available,jmx_error from hosts]
  2184. 19359:20140305:035914.898 End of get_host_availability_data():FAIL
  2185. 19359:20140305:035914.898 End of host_availability_sender()
  2186. 19359:20140305:035914.899 In history_sender()
  2187. 19359:20140305:035914.899 In proxy_get_history_data() table:'proxy_history'
  2188. 19359:20140305:035914.899 In proxy_get_lastid() [proxy_history.history_lastid]
  2189. 19359:20140305:035914.900 query [txnlev:0] [select nextid from ids where table_name='proxy_history' and field_name='history_lastid']
  2190. 19359:20140305:035914.900 End of proxy_get_lastid():0
  2191. 19359:20140305:035914.900 query [txnlev:0] [select p.id,h.host,i.key_,p.clock,p.ns,p.timestamp,p.source,p.severity,p.value,p.logeventid,p.status from hosts h,items i,proxy_history p where h.hostid=i.hostid and i.itemid=p.itemid and p.id>0 order by p.id limit 1000]
  2192. 19359:20140305:035914.901 End of proxy_get_history_data():0 lastid:0
  2193. 19359:20140305:035914.901 End of history_sender()
  2194. 19359:20140305:035914.901 In history_sender()
  2195. 19359:20140305:035914.902 In proxy_get_history_data() table:'proxy_dhistory'
  2196. 19359:20140305:035914.902 In proxy_get_lastid() [proxy_dhistory.dhistory_lastid]
  2197. 19359:20140305:035914.902 query [txnlev:0] [select nextid from ids where table_name='proxy_dhistory' and field_name='dhistory_lastid']
  2198. 19359:20140305:035914.902 End of proxy_get_lastid():0
  2199. 19359:20140305:035914.903 query [txnlev:0] [select p.id,p.clock,p.druleid,p.dcheckid,p.type,p.ip,p.dns,p.port,p.key_,p.value,p.status from proxy_dhistory p where p.id>0 order by p.id limit 1000]
  2200. 19359:20140305:035914.903 End of proxy_get_history_data():0 lastid:0
  2201. 19359:20140305:035914.903 End of history_sender()
  2202. 19359:20140305:035914.903 In history_sender()
  2203. 19359:20140305:035914.904 In proxy_get_history_data() table:'proxy_autoreg_host'
  2204. 19359:20140305:035914.904 In proxy_get_lastid() [proxy_autoreg_host.autoreg_host_lastid]
  2205. 19359:20140305:035914.904 query [txnlev:0] [select nextid from ids where table_name='proxy_autoreg_host' and field_name='autoreg_host_lastid']
  2206. 19359:20140305:035914.904 End of proxy_get_lastid():0
  2207. 19359:20140305:035914.904 query [txnlev:0] [select p.id,p.clock,p.host,p.listen_ip,p.listen_dns,p.listen_port from proxy_autoreg_host p where p.id>0 order by p.id limit 1000]
  2208. 19359:20140305:035914.905 End of proxy_get_history_data():1 lastid:1
  2209. 19359:20140305:035914.905 In connect_to_server() [10.168.24.153]:10051 [timeout:600]
  2210. 19360:20140305:035918.718 In get_values()
  2211. 19361:20140305:035918.718 In get_values()
  2212. 19361:20140305:035918.727 In DCconfig_get_poller_items() poller_type:0
  2213. 19361:20140305:035918.727 End of DCconfig_get_poller_items():0
  2214. 19361:20140305:035918.728 End of get_values():0
  2215. 19360:20140305:035918.728 In DCconfig_get_poller_items() poller_type:0
  2216. 19361:20140305:035918.728 poller #2 spent 0.010015 seconds while updating 0 values
  2217. 19360:20140305:035918.728 End of DCconfig_get_poller_items():0
  2218. 19361:20140305:035918.729 In DCconfig_get_poller_nextcheck() poller_type:0
  2219. 19360:20140305:035918.729 End of get_values():0
  2220. 19361:20140305:035918.729 End of DCconfig_get_poller_nextcheck():-1
  2221. 19360:20140305:035918.729 poller #1 spent 0.011448 seconds while updating 0 values
  2222. 19361:20140305:035918.730 sleeping for 5 seconds
  2223. 19360:20140305:035918.730 In DCconfig_get_poller_nextcheck() poller_type:0
  2224. 19360:20140305:035918.730 End of DCconfig_get_poller_nextcheck():-1
  2225. 19360:20140305:035918.730 sleeping for 5 seconds
  2226. 19365:20140305:035918.752 In get_values()
  2227. 19362:20140305:035918.752 In get_values()
  2228. 19363:20140305:035918.752 In get_values()
  2229. 19364:20140305:035918.752 In get_values()
  2230. 19362:20140305:035918.753 In DCconfig_get_poller_items() poller_type:0
  2231. 19363:20140305:035918.753 In DCconfig_get_poller_items() poller_type:0
  2232. 19364:20140305:035918.753 In DCconfig_get_poller_items() poller_type:0
  2233. 19363:20140305:035918.753 End of DCconfig_get_poller_items():0
  2234. 19364:20140305:035918.753 End of DCconfig_get_poller_items():0
  2235. 19362:20140305:035918.754 End of DCconfig_get_poller_items():0
  2236. 19365:20140305:035918.754 In DCconfig_get_poller_items() poller_type:1
  2237. 19363:20140305:035918.754 End of get_values():0
  2238. 19364:20140305:035918.754 End of get_values():0
  2239. 19362:20140305:035918.754 End of get_values():0
  2240. 19365:20140305:035918.755 End of DCconfig_get_poller_items():0
  2241. 19363:20140305:035918.755 poller #4 spent 0.002589 seconds while updating 0 values
  2242. 19364:20140305:035918.755 poller #5 spent 0.002598 seconds while updating 0 values
  2243. 19362:20140305:035918.755 poller #3 spent 0.003199 seconds while updating 0 values
  2244. 19365:20140305:035918.755 End of get_values():0
  2245. 19363:20140305:035918.756 In DCconfig_get_poller_nextcheck() poller_type:0
  2246. 19364:20140305:035918.756 In DCconfig_get_poller_nextcheck() poller_type:0
  2247. 19365:20140305:035918.756 unreachable poller #1 spent 0.004366 seconds while updating 0 values
  2248. 19362:20140305:035918.756 In DCconfig_get_poller_nextcheck() poller_type:0
  2249. 19364:20140305:035918.756 End of DCconfig_get_poller_nextcheck():-1
  2250. 19363:20140305:035918.757 End of DCconfig_get_poller_nextcheck():-1
  2251. 19362:20140305:035918.757 End of DCconfig_get_poller_nextcheck():-1
  2252. 19365:20140305:035918.757 In DCconfig_get_poller_nextcheck() poller_type:1
  2253. 19364:20140305:035918.757 sleeping for 5 seconds
  2254. 19363:20140305:035918.757 sleeping for 5 seconds
  2255. 19365:20140305:035918.758 End of DCconfig_get_poller_nextcheck():-1
  2256. 19362:20140305:035918.758 sleeping for 5 seconds
  2257. 19365:20140305:035918.758 sleeping for 5 seconds
  2258. 19371:20140305:035918.804 In get_pinger_hosts()
  2259. 19371:20140305:035918.804 In DCconfig_get_poller_items() poller_type:3
  2260. 19371:20140305:035918.804 End of DCconfig_get_poller_items():0
  2261. 19371:20140305:035918.805 End of get_pinger_hosts():0
  2262. 19371:20140305:035918.805 In process_pinger_hosts()
  2263. 19371:20140305:035918.805 End of process_pinger_hosts()
  2264. 19371:20140305:035918.805 icmp pinger #1 spent 0.001579 seconds while processing 0 items
  2265. 19371:20140305:035918.806 In DCconfig_get_poller_nextcheck() poller_type:3
  2266. 19371:20140305:035918.806 End of DCconfig_get_poller_nextcheck():-1
  2267. 19371:20140305:035918.806 sleeping for 5 seconds
  2268. 19376:20140305:035918.816 Syncing ...
  2269. 19376:20140305:035918.816 In DCsync_history() history_first:0 history_num:0
  2270. 19376:20140305:035918.816 history syncer #2 spent 0.000223 seconds while processing 0 items
  2271. 19376:20140305:035918.816 sleeping for 5 seconds
  2272. 19375:20140305:035918.822 Syncing ...
  2273. 19375:20140305:035918.822 In DCsync_history() history_first:0 history_num:0
  2274. 19375:20140305:035918.822 history syncer #1 spent 0.000203 seconds while processing 0 items
  2275. 19375:20140305:035918.822 sleeping for 5 seconds
  2276. 19377:20140305:035918.823 Syncing ...
  2277. 19377:20140305:035918.823 In DCsync_history() history_first:0 history_num:0
  2278. 19377:20140305:035918.823 history syncer #3 spent 0.000198 seconds while processing 0 items
  2279. 19377:20140305:035918.824 sleeping for 5 seconds
  2280. 19373:20140305:035918.824 In process_httptests()
  2281. 19373:20140305:035918.824 query [txnlev:0] [select t.httptestid,t.name,t.macros,t.agent,t.authentication,t.http_user,t.http_password from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and t.nextcheck<=1393991958 and t.httptestid%1=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)]
  2282. 19373:20140305:035918.825 End of process_httptests()
  2283. 19373:20140305:035918.825 http poller #1 spent 0.001117 seconds while updating HTTP tests
  2284. 19373:20140305:035918.825 query [txnlev:0] [select min(t.nextcheck) from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and t.httptestid%1=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)]
  2285. 19378:20140305:035918.825 Syncing ...
  2286. 19378:20140305:035918.826 In DCsync_history() history_first:0 history_num:0
  2287. 19378:20140305:035918.826 history syncer #4 spent 0.000198 seconds while processing 0 items
  2288. 19378:20140305:035918.826 sleeping for 5 seconds
  2289. 19373:20140305:035918.826 No httptests to process in get_minnextcheck.
  2290. 19373:20140305:035918.827 sleeping for 5 seconds
  2291. 19369:20140305:035919.756 Trapper got [{
  2292. "request":"active checks",
  2293. "host":"test-lb-0"}] len 50
  2294. 19369:20140305:035919.757 In send_list_of_active_checks_json()
  2295. 19369:20140305:035919.758 In get_hostid_by_host() host:'test-lb-0'
  2296. 19369:20140305:035919.758 query [txnlev:0] [select hostid,status from hosts where host='test-lb-0' and status in (0,1) and proxy_hostid is null]
  2297. 19369:20140305:035919.762 query [txnlev:1] [begin;]
  2298. 19369:20140305:035919.762 query [txnlev:1] [insert into proxy_autoreg_host (clock,host,listen_ip,listen_dns,listen_port) values (1393991959,'test-lb-0','10.147.197.184','ip-10-147-197-184.ec2.internal',10050)]
  2299. 19369:20140305:035919.763 query [txnlev:1] [commit;]
  2300. 19369:20140305:035919.763 End of get_hostid_by_host():FAIL
  2301. 19369:20140305:035919.764 cannot send list of active checks to [10.147.197.184]: host [test-lb-0] not found
  2302. 19369:20140305:035919.764 send_list_of_active_checks_json() sending [{
  2303. "response":"failed",
  2304. "info":"host [test-lb-0] not found"}]
  2305. 19369:20140305:035919.764 End of send_list_of_active_checks_json():SUCCEED
  2306. 19361:20140305:035923.731 In get_values()
  2307. 19360:20140305:035923.731 In get_values()
  2308. 19360:20140305:035923.736 In DCconfig_get_poller_items() poller_type:0
  2309. 19360:20140305:035923.736 End of DCconfig_get_poller_items():0
  2310. 19360:20140305:035923.736 End of get_values():0
  2311. 19361:20140305:035923.736 In DCconfig_get_poller_items() poller_type:0
  2312. 19360:20140305:035923.737 poller #1 spent 0.005794 seconds while updating 0 values
  2313. 19361:20140305:035923.737 End of DCconfig_get_poller_items():0
  2314. 19360:20140305:035923.737 In DCconfig_get_poller_nextcheck() poller_type:0
  2315. 19361:20140305:035923.737 End of get_values():0
  2316. 19360:20140305:035923.738 End of DCconfig_get_poller_nextcheck():-1
  2317. 19361:20140305:035923.738 poller #2 spent 0.007357 seconds while updating 0 values
  2318. 19360:20140305:035923.738 sleeping for 5 seconds
  2319. 19361:20140305:035923.738 In DCconfig_get_poller_nextcheck() poller_type:0
  2320. 19361:20140305:035923.739 End of DCconfig_get_poller_nextcheck():-1
  2321. 19361:20140305:035923.739 sleeping for 5 seconds
  2322. 19362:20140305:035923.759 In get_values()
  2323. 19365:20140305:035923.759 In get_values()
  2324. 19364:20140305:035923.759 In get_values()
  2325. 19363:20140305:035923.760 In get_values()
  2326. 19365:20140305:035923.760 In DCconfig_get_poller_items() poller_type:1
  2327. 19362:20140305:035923.760 In DCconfig_get_poller_items() poller_type:0
  2328. 19363:20140305:035923.760 In DCconfig_get_poller_items() poller_type:0
  2329. 19364:20140305:035923.760 In DCconfig_get_poller_items() poller_type:0
  2330. 19365:20140305:035923.761 End of DCconfig_get_poller_items():0
  2331. 19362:20140305:035923.761 End of DCconfig_get_poller_items():0
  2332. 19363:20140305:035923.761 End of DCconfig_get_poller_items():0
  2333. 19364:20140305:035923.761 End of DCconfig_get_poller_items():0
  2334. 19362:20140305:035923.762 End of get_values():0
  2335. 19365:20140305:035923.762 End of get_values():0
  2336. 19363:20140305:035923.762 End of get_values():0
  2337. 19364:20140305:035923.762 End of get_values():0
  2338. 19362:20140305:035923.762 poller #3 spent 0.003261 seconds while updating 0 values
  2339. 19365:20140305:035923.763 unreachable poller #1 spent 0.003246 seconds while updating 0 values
  2340. 19363:20140305:035923.763 poller #4 spent 0.003066 seconds while updating 0 values
  2341. 19364:20140305:035923.763 poller #5 spent 0.003481 seconds while updating 0 values
  2342. 19362:20140305:035923.763 In DCconfig_get_poller_nextcheck() poller_type:0
  2343. 19365:20140305:035923.763 In DCconfig_get_poller_nextcheck() poller_type:1
  2344. 19364:20140305:035923.764 In DCconfig_get_poller_nextcheck() poller_type:0
  2345. 19363:20140305:035923.764 In DCconfig_get_poller_nextcheck() poller_type:0
  2346. 19362:20140305:035923.764 End of DCconfig_get_poller_nextcheck():-1
  2347. 19365:20140305:035923.764 End of DCconfig_get_poller_nextcheck():-1
  2348. 19364:20140305:035923.764 End of DCconfig_get_poller_nextcheck():-1
  2349. 19363:20140305:035923.765 End of DCconfig_get_poller_nextcheck():-1
  2350. 19362:20140305:035923.765 sleeping for 5 seconds
  2351. 19365:20140305:035923.765 sleeping for 5 seconds
  2352. 19364:20140305:035923.765 sleeping for 5 seconds
  2353. 19363:20140305:035923.765 sleeping for 5 seconds
  2354. 19371:20140305:035923.807 In get_pinger_hosts()
  2355. 19371:20140305:035923.807 In DCconfig_get_poller_items() poller_type:3
  2356. 19371:20140305:035923.807 End of DCconfig_get_poller_items():0
  2357. 19371:20140305:035923.807 End of get_pinger_hosts():0
  2358. 19371:20140305:035923.808 In process_pinger_hosts()
  2359. 19371:20140305:035923.808 End of process_pinger_hosts()
  2360. 19371:20140305:035923.808 icmp pinger #1 spent 0.001250 seconds while processing 0 items
  2361. 19371:20140305:035923.808 In DCconfig_get_poller_nextcheck() poller_type:3
  2362. 19371:20140305:035923.809 End of DCconfig_get_poller_nextcheck():-1
  2363. 19371:20140305:035923.809 sleeping for 5 seconds
  2364. 19376:20140305:035923.817 Syncing ...
  2365. 19376:20140305:035923.817 In DCsync_history() history_first:0 history_num:0
  2366. 19376:20140305:035923.817 history syncer #2 spent 0.000241 seconds while processing 0 items
  2367. 19376:20140305:035923.818 sleeping for 5 seconds
  2368. 19375:20140305:035923.823 Syncing ...
  2369. 19375:20140305:035923.823 In DCsync_history() history_first:0 history_num:0
  2370. 19375:20140305:035923.823 history syncer #1 spent 0.000241 seconds while processing 0 items
  2371. 19375:20140305:035923.824 sleeping for 5 seconds
  2372. 19377:20140305:035923.825 Syncing ...
  2373. 19377:20140305:035923.825 In DCsync_history() history_first:0 history_num:0
  2374. 19377:20140305:035923.826 history syncer #3 spent 0.000236 seconds while processing 0 items
  2375. 19377:20140305:035923.826 sleeping for 5 seconds
  2376. 19378:20140305:035923.827 Syncing ...
  2377. 19378:20140305:035923.827 In DCsync_history() history_first:0 history_num:0
  2378. 19378:20140305:035923.827 history syncer #4 spent 0.000202 seconds while processing 0 items
  2379. 19373:20140305:035923.827 In process_httptests()
  2380. 19373:20140305:035923.827 query [txnlev:0] [select t.httptestid,t.name,t.macros,t.agent,t.authentication,t.http_user,t.http_password from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and t.nextcheck<=1393991963 and t.httptestid%1=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)]
  2381. 19373:20140305:035923.828 End of process_httptests()
  2382. 19378:20140305:035923.828 sleeping for 5 seconds
  2383. 19373:20140305:035923.829 http poller #1 spent 0.001300 seconds while updating HTTP tests
  2384. 19373:20140305:035923.829 query [txnlev:0] [select min(t.nextcheck) from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and t.httptestid%1=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)]
  2385. 19373:20140305:035923.829 No httptests to process in get_minnextcheck.
  2386. 19373:20140305:035923.830 sleeping for 5 seconds
  2387. 19360:20140305:035928.739 In get_values()
  2388. 19361:20140305:035928.740 In get_values()
  2389. 19361:20140305:035928.756 In DCconfig_get_poller_items() poller_type:0
  2390. 19361:20140305:035928.757 End of DCconfig_get_poller_items():0
  2391. 19360:20140305:035928.757 In DCconfig_get_poller_items() poller_type:0
  2392. 19360:20140305:035928.757 End of DCconfig_get_poller_items():0
  2393. 19361:20140305:035928.757 End of get_values():0
  2394. 19360:20140305:035928.758 End of get_values():0
  2395. 19361:20140305:035928.758 poller #2 spent 0.018377 seconds while updating 0 values
  2396. 19360:20140305:035928.758 poller #1 spent 0.018893 seconds while updating 0 values
  2397. 19361:20140305:035928.758 In DCconfig_get_poller_nextcheck() poller_type:0
  2398. 19360:20140305:035928.759 In DCconfig_get_poller_nextcheck() poller_type:0
  2399. 19361:20140305:035928.759 End of DCconfig_get_poller_nextcheck():-1
  2400. 19360:20140305:035928.759 End of DCconfig_get_poller_nextcheck():-1
  2401. 19361:20140305:035928.759 sleeping for 5 seconds
  2402. 19360:20140305:035928.759 sleeping for 5 seconds
  2403. 19363:20140305:035928.766 In get_values()
  2404. 19365:20140305:035928.767 In get_values()
  2405. 19364:20140305:035928.767 In get_values()
  2406. 19362:20140305:035928.767 In get_values()
  2407. 19365:20140305:035928.767 In DCconfig_get_poller_items() poller_type:1
  2408. 19364:20140305:035928.767 In DCconfig_get_poller_items() poller_type:0
  2409. 19362:20140305:035928.768 In DCconfig_get_poller_items() poller_type:0
  2410. 19364:20140305:035928.768 End of DCconfig_get_poller_items():0
  2411. 19365:20140305:035928.768 End of DCconfig_get_poller_items():0
  2412. 19362:20140305:035928.768 End of DCconfig_get_poller_items():0
  2413. 19363:20140305:035928.768 In DCconfig_get_poller_items() poller_type:0
  2414. 19364:20140305:035928.769 End of get_values():0
  2415. 19365:20140305:035928.769 End of get_values():0
  2416. 19362:20140305:035928.769 End of get_values():0
  2417. 19363:20140305:035928.769 End of DCconfig_get_poller_items():0
  2418. 19364:20140305:035928.770 poller #5 spent 0.002642 seconds while updating 0 values
  2419. 19365:20140305:035928.770 unreachable poller #1 spent 0.003052 seconds while updating 0 values
  2420. 19362:20140305:035928.770 poller #3 spent 0.002866 seconds while updating 0 values
  2421. 19363:20140305:035928.770 End of get_values():0
  2422. 19364:20140305:035928.770 In DCconfig_get_poller_nextcheck() poller_type:0
  2423. 19365:20140305:035928.771 In DCconfig_get_poller_nextcheck() poller_type:1
  2424. 19362:20140305:035928.771 In DCconfig_get_poller_nextcheck() poller_type:0
  2425. 19363:20140305:035928.771 poller #4 spent 0.004616 seconds while updating 0 values
  2426. 19364:20140305:035928.771 End of DCconfig_get_poller_nextcheck():-1
  2427. 19365:20140305:035928.771 End of DCconfig_get_poller_nextcheck():-1
  2428. 19362:20140305:035928.772 End of DCconfig_get_poller_nextcheck():-1
  2429. 19363:20140305:035928.772 In DCconfig_get_poller_nextcheck() poller_type:0
  2430. 19364:20140305:035928.772 sleeping for 5 seconds
  2431. 19365:20140305:035928.772 sleeping for 5 seconds
  2432. 19362:20140305:035928.772 sleeping for 5 seconds
  2433. 19363:20140305:035928.773 End of DCconfig_get_poller_nextcheck():-1
  2434. 19363:20140305:035928.773 sleeping for 5 seconds
  2435. 19371:20140305:035928.810 In get_pinger_hosts()
  2436. 19371:20140305:035928.810 In DCconfig_get_poller_items() poller_type:3
  2437. 19371:20140305:035928.810 End of DCconfig_get_poller_items():0
  2438. 19371:20140305:035928.810 End of get_pinger_hosts():0
  2439. 19371:20140305:035928.811 In process_pinger_hosts()
  2440. 19371:20140305:035928.811 End of process_pinger_hosts()
  2441. 19371:20140305:035928.811 icmp pinger #1 spent 0.001427 seconds while processing 0 items
  2442. 19371:20140305:035928.811 In DCconfig_get_poller_nextcheck() poller_type:3
  2443. 19371:20140305:035928.811 End of DCconfig_get_poller_nextcheck():-1
  2444. 19371:20140305:035928.812 sleeping for 5 seconds
  2445. 19376:20140305:035928.818 Syncing ...
  2446. 19376:20140305:035928.819 In DCsync_history() history_first:0 history_num:0
  2447. 19376:20140305:035928.819 history syncer #2 spent 0.000205 seconds while processing 0 items
  2448. 19376:20140305:035928.819 sleeping for 5 seconds
  2449. 19375:20140305:035928.824 Syncing ...
  2450. 19375:20140305:035928.824 In DCsync_history() history_first:0 history_num:0
  2451. 19375:20140305:035928.825 history syncer #1 spent 0.000227 seconds while processing 0 items
  2452. 19375:20140305:035928.825 sleeping for 5 seconds
  2453. 19377:20140305:035928.826 Syncing ...
  2454. 19377:20140305:035928.827 In DCsync_history() history_first:0 history_num:0
  2455. 19377:20140305:035928.827 history syncer #3 spent 0.000200 seconds while processing 0 items
  2456. 19377:20140305:035928.827 sleeping for 5 seconds
  2457. 19378:20140305:035928.829 Syncing ...
  2458. 19378:20140305:035928.829 In DCsync_history() history_first:0 history_num:0
  2459. 19378:20140305:035928.829 history syncer #4 spent 0.000209 seconds while processing 0 items
  2460. 19378:20140305:035928.829 sleeping for 5 seconds
  2461. 19373:20140305:035928.830 In process_httptests()
  2462. 19373:20140305:035928.830 query [txnlev:0] [select t.httptestid,t.name,t.macros,t.agent,t.authentication,t.http_user,t.http_password from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and t.nextcheck<=1393991968 and t.httptestid%1=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)]
  2463. 19373:20140305:035928.831 End of process_httptests()
  2464. 19373:20140305:035928.831 http poller #1 spent 0.001004 seconds while updating HTTP tests
  2465. 19373:20140305:035928.831 query [txnlev:0] [select min(t.nextcheck) from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and t.httptestid%1=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)]
  2466. 19373:20140305:035928.832 No httptests to process in get_minnextcheck.
  2467. 19373:20140305:035928.832 sleeping for 5 seconds
  2468. 19361:20140305:035933.760 In get_values()
  2469. 19360:20140305:035933.761 In get_values()
  2470. 19360:20140305:035933.767 In DCconfig_get_poller_items() poller_type:0
  2471. 19361:20140305:035933.768 In DCconfig_get_poller_items() poller_type:0
  2472. 19360:20140305:035933.768 End of DCconfig_get_poller_items():0
  2473. 19360:20140305:035933.768 End of get_values():0
  2474. 19361:20140305:035933.768 End of DCconfig_get_poller_items():0
  2475. 19360:20140305:035933.769 poller #1 spent 0.008145 seconds while updating 0 values
  2476. 19361:20140305:035933.769 End of get_values():0
  2477. 19360:20140305:035933.769 In DCconfig_get_poller_nextcheck() poller_type:0
  2478. 19361:20140305:035933.769 poller #2 spent 0.009161 seconds while updating 0 values
  2479. 19360:20140305:035933.770 End of DCconfig_get_poller_nextcheck():-1
  2480. 19361:20140305:035933.770 In DCconfig_get_poller_nextcheck() poller_type:0
  2481. 19360:20140305:035933.770 sleeping for 5 seconds
  2482. 19361:20140305:035933.770 End of DCconfig_get_poller_nextcheck():-1
  2483. 19361:20140305:035933.771 sleeping for 5 seconds
  2484. 19364:20140305:035933.773 In get_values()
  2485. 19362:20140305:035933.774 In get_values()
  2486. 19365:20140305:035933.774 In get_values()
  2487. 19362:20140305:035933.774 In DCconfig_get_poller_items() poller_type:0
  2488. 19363:20140305:035933.774 In get_values()
  2489. 19365:20140305:035933.774 In DCconfig_get_poller_items() poller_type:1
  2490. 19364:20140305:035933.775 In DCconfig_get_poller_items() poller_type:0
  2491. 19362:20140305:035933.775 End of DCconfig_get_poller_items():0
  2492. 19363:20140305:035933.775 In DCconfig_get_poller_items() poller_type:0
  2493. 19365:20140305:035933.775 End of DCconfig_get_poller_items():0
  2494. 19364:20140305:035933.775 End of DCconfig_get_poller_items():0
  2495. 19362:20140305:035933.776 End of get_values():0
  2496. 19363:20140305:035933.776 End of DCconfig_get_poller_items():0
  2497. 19365:20140305:035933.776 End of get_values():0
  2498. 19364:20140305:035933.776 End of get_values():0
  2499. 19362:20140305:035933.777 poller #3 spent 0.003226 seconds while updating 0 values
  2500. 19363:20140305:035933.777 End of get_values():0
  2501. 19365:20140305:035933.777 unreachable poller #1 spent 0.003592 seconds while updating 0 values
  2502. 19364:20140305:035933.778 poller #5 spent 0.004337 seconds while updating 0 values
  2503. 19362:20140305:035933.778 In DCconfig_get_poller_nextcheck() poller_type:0
  2504. 19363:20140305:035933.778 poller #4 spent 0.004100 seconds while updating 0 values
  2505. 19364:20140305:035933.779 In DCconfig_get_poller_nextcheck() poller_type:0
  2506. 19365:20140305:035933.779 In DCconfig_get_poller_nextcheck() poller_type:1
  2507. 19362:20140305:035933.779 End of DCconfig_get_poller_nextcheck():-1
  2508. 19363:20140305:035933.779 In DCconfig_get_poller_nextcheck() poller_type:0
  2509. 19365:20140305:035933.779 End of DCconfig_get_poller_nextcheck():-1
  2510. 19364:20140305:035933.780 End of DCconfig_get_poller_nextcheck():-1
  2511. 19363:20140305:035933.780 End of DCconfig_get_poller_nextcheck():-1
  2512. 19362:20140305:035933.780 sleeping for 5 seconds
  2513. 19365:20140305:035933.780 sleeping for 5 seconds
  2514. 19364:20140305:035933.780 sleeping for 5 seconds
  2515. 19363:20140305:035933.781 sleeping for 5 seconds
  2516. 19371:20140305:035933.812 In get_pinger_hosts()
  2517. 19371:20140305:035933.813 In DCconfig_get_poller_items() poller_type:3
  2518. 19371:20140305:035933.813 End of DCconfig_get_poller_items():0
  2519. 19371:20140305:035933.813 End of get_pinger_hosts():0
  2520. 19371:20140305:035933.813 In process_pinger_hosts()
  2521. 19371:20140305:035933.814 End of process_pinger_hosts()
  2522. 19371:20140305:035933.814 icmp pinger #1 spent 0.001250 seconds while processing 0 items
  2523. 19371:20140305:035933.814 In DCconfig_get_poller_nextcheck() poller_type:3
  2524. 19371:20140305:035933.814 End of DCconfig_get_poller_nextcheck():-1
  2525. 19371:20140305:035933.814 sleeping for 5 seconds
  2526. 19376:20140305:035933.820 Syncing ...
  2527. 19376:20140305:035933.820 In DCsync_history() history_first:0 history_num:0
  2528. 19376:20140305:035933.820 history syncer #2 spent 0.000209 seconds while processing 0 items
  2529. 19376:20140305:035933.820 sleeping for 5 seconds
  2530. 19375:20140305:035933.825 Syncing ...
  2531. 19375:20140305:035933.826 In DCsync_history() history_first:0 history_num:0
  2532. 19375:20140305:035933.826 history syncer #1 spent 0.000206 seconds while processing 0 items
  2533. 19375:20140305:035933.826 sleeping for 5 seconds
  2534. 19377:20140305:035933.828 Syncing ...
  2535. 19377:20140305:035933.828 In DCsync_history() history_first:0 history_num:0
  2536. 19377:20140305:035933.828 history syncer #3 spent 0.000311 seconds while processing 0 items
  2537. 19377:20140305:035933.829 sleeping for 5 seconds
  2538. 19378:20140305:035933.830 Syncing ...
  2539. 19378:20140305:035933.830 In DCsync_history() history_first:0 history_num:0
  2540. 19378:20140305:035933.831 history syncer #4 spent 0.000206 seconds while processing 0 items
  2541. 19378:20140305:035933.831 sleeping for 5 seconds
  2542. 19373:20140305:035933.833 In process_httptests()
  2543. 19373:20140305:035933.833 query [txnlev:0] [select t.httptestid,t.name,t.macros,t.agent,t.authentication,t.http_user,t.http_password from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and t.nextcheck<=1393991973 and t.httptestid%1=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)]
  2544. 19373:20140305:035933.834 End of process_httptests()
  2545. 19373:20140305:035933.834 http poller #1 spent 0.001052 seconds while updating HTTP tests
  2546. 19373:20140305:035933.834 query [txnlev:0] [select min(t.nextcheck) from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and t.httptestid%1=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)]
  2547. 19373:20140305:035933.834 No httptests to process in get_minnextcheck.
  2548. 19373:20140305:035933.835 sleeping for 5 seconds
  2549. 19360:20140305:035938.771 In get_values()
  2550. 19361:20140305:035938.771 In get_values()
  2551. 19362:20140305:035938.781 In get_values()
  2552. 19364:20140305:035938.781 In get_values()
  2553. 19365:20140305:035938.781 In get_values()
  2554. 19363:20140305:035938.781 In get_values()
  2555. 19364:20140305:035938.786 In DCconfig_get_poller_items() poller_type:0
  2556. 19365:20140305:035938.786 In DCconfig_get_poller_items() poller_type:1
  2557. 19363:20140305:035938.786 In DCconfig_get_poller_items() poller_type:0
  2558. 19365:20140305:035938.786 End of DCconfig_get_poller_items():0
  2559. 19363:20140305:035938.787 End of DCconfig_get_poller_items():0
  2560. 19364:20140305:035938.787 End of DCconfig_get_poller_items():0
  2561. 19362:20140305:035938.787 In DCconfig_get_poller_items() poller_type:0
  2562. 19365:20140305:035938.787 End of get_values():0
  2563. 19363:20140305:035938.787 End of get_values():0
  2564. 19364:20140305:035938.788 End of get_values():0
  2565. 19362:20140305:035938.788 End of DCconfig_get_poller_items():0
  2566. 19365:20140305:035938.788 unreachable poller #1 spent 0.006487 seconds while updating 0 values
  2567. 19363:20140305:035938.788 poller #4 spent 0.006632 seconds while updating 0 values
  2568. 19364:20140305:035938.788 poller #5 spent 0.006963 seconds while updating 0 values
  2569. 19362:20140305:035938.789 End of get_values():0
  2570. 19365:20140305:035938.789 In DCconfig_get_poller_nextcheck() poller_type:1
  2571. 19363:20140305:035938.789 In DCconfig_get_poller_nextcheck() poller_type:0
  2572. 19364:20140305:035938.789 In DCconfig_get_poller_nextcheck() poller_type:0
  2573. 19362:20140305:035938.789 poller #3 spent 0.008124 seconds while updating 0 values
  2574. 19365:20140305:035938.790 End of DCconfig_get_poller_nextcheck():-1
  2575. 19363:20140305:035938.790 End of DCconfig_get_poller_nextcheck():-1
  2576. 19364:20140305:035938.790 End of DCconfig_get_poller_nextcheck():-1
  2577. 19362:20140305:035938.790 In DCconfig_get_poller_nextcheck() poller_type:0
  2578. 19365:20140305:035938.790 sleeping for 5 seconds
  2579. 19363:20140305:035938.791 sleeping for 5 seconds
  2580. 19364:20140305:035938.791 sleeping for 5 seconds
  2581. 19362:20140305:035938.791 End of DCconfig_get_poller_nextcheck():-1
  2582. 19362:20140305:035938.791 sleeping for 5 seconds
  2583. 19361:20140305:035938.791 In DCconfig_get_poller_items() poller_type:0
  2584. 19361:20140305:035938.792 End of DCconfig_get_poller_items():0
  2585. 19361:20140305:035938.792 End of get_values():0
  2586. 19360:20140305:035938.792 In DCconfig_get_poller_items() poller_type:0
  2587. 19361:20140305:035938.792 poller #2 spent 0.020780 seconds while updating 0 values
  2588. 19360:20140305:035938.792 End of DCconfig_get_poller_items():0
  2589. 19360:20140305:035938.793 End of get_values():0
  2590. 19361:20140305:035938.793 In DCconfig_get_poller_nextcheck() poller_type:0
  2591. 19361:20140305:035938.793 End of DCconfig_get_poller_nextcheck():-1
  2592. 19360:20140305:035938.793 poller #1 spent 0.022045 seconds while updating 0 values
  2593. 19360:20140305:035938.793 In DCconfig_get_poller_nextcheck() poller_type:0
  2594. 19361:20140305:035938.794 sleeping for 5 seconds
  2595. 19360:20140305:035938.794 End of DCconfig_get_poller_nextcheck():-1
  2596. 19360:20140305:035938.794 sleeping for 5 seconds
  2597. 19371:20140305:035938.815 In get_pinger_hosts()
  2598. 19371:20140305:035938.816 In DCconfig_get_poller_items() poller_type:3
  2599. 19371:20140305:035938.816 End of DCconfig_get_poller_items():0
  2600. 19371:20140305:035938.816 End of get_pinger_hosts():0
  2601. 19371:20140305:035938.816 In process_pinger_hosts()
  2602. 19371:20140305:035938.816 End of process_pinger_hosts()
  2603. 19371:20140305:035938.816 icmp pinger #1 spent 0.001409 seconds while processing 0 items
  2604. 19371:20140305:035938.817 In DCconfig_get_poller_nextcheck() poller_type:3
  2605. 19371:20140305:035938.817 End of DCconfig_get_poller_nextcheck():-1
  2606. 19371:20140305:035938.817 sleeping for 5 seconds
  2607. 19376:20140305:035938.821 Syncing ...
  2608. 19376:20140305:035938.821 In DCsync_history() history_first:0 history_num:0
  2609. 19376:20140305:035938.821 history syncer #2 spent 0.000203 seconds while processing 0 items
  2610. 19376:20140305:035938.822 sleeping for 5 seconds
  2611. 19375:20140305:035938.827 Syncing ...
  2612. 19375:20140305:035938.827 In DCsync_history() history_first:0 history_num:0
  2613. 19375:20140305:035938.827 history syncer #1 spent 0.000200 seconds while processing 0 items
  2614. 19375:20140305:035938.827 sleeping for 5 seconds
  2615. 19377:20140305:035938.829 Syncing ...
  2616. 19377:20140305:035938.829 In DCsync_history() history_first:0 history_num:0
  2617. 19377:20140305:035938.830 history syncer #3 spent 0.000198 seconds while processing 0 items
  2618. 19377:20140305:035938.830 sleeping for 5 seconds
  2619. 19378:20140305:035938.831 Syncing ...
  2620. 19378:20140305:035938.832 In DCsync_history() history_first:0 history_num:0
  2621. 19378:20140305:035938.832 history syncer #4 spent 0.000197 seconds while processing 0 items
  2622. 19378:20140305:035938.832 sleeping for 5 seconds
  2623. 19373:20140305:035938.835 In process_httptests()
  2624. 19373:20140305:035938.835 query [txnlev:0] [select t.httptestid,t.name,t.macros,t.agent,t.authentication,t.http_user,t.http_password from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and t.nextcheck<=1393991978 and t.httptestid%1=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)]
  2625. 19373:20140305:035938.836 End of process_httptests()
  2626. 19373:20140305:035938.836 http poller #1 spent 0.000997 seconds while updating HTTP tests
  2627. 19373:20140305:035938.836 query [txnlev:0] [select min(t.nextcheck) from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and t.httptestid%1=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)]
  2628. 19373:20140305:035938.837 No httptests to process in get_minnextcheck.
  2629. 19373:20140305:035938.837 sleeping for 5 seconds
Advertisement
Add Comment
Please, Sign In to add comment