Advertisement
si458

Untitled

Jan 19th, 2015
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.34 KB | None | 0 0
  1. root@observium:/opt/observium# ./discovery.php -d -m toner -h ricohmpc4000.rbs
  2. DEBUG!
  3. Observium 0.15.1.6194
  4. Discovery
  5.  
  6.  
  7. SQL[SELECT `version` FROM `dbSchema`]
  8.  
  9. SQL[SELECT count(*) FROM ports]
  10.  
  11. SQL[SELECT count(*) FROM devices]
  12.  
  13. SQL[SELECT count(*) FROM `sensors`]
  14.  
  15. SQL[SELECT count(*) FROM `services`]
  16.  
  17. SQL[SELECT count(*) FROM `applications`]
  18.  
  19. SQL[SELECT count(*) FROM `bgpPeers`]
  20.  
  21. SQL[SELECT count(*) FROM `ospf_ports`]
  22.  
  23. SQL[SELECT count(*) FROM `eigrp_ports`]
  24.  
  25. SQL[SELECT count(*) FROM `ipsec_tunnels`]
  26.  
  27. SQL[SELECT count(*) FROM `munin_plugins`]
  28.  
  29. SQL[SELECT count(*) FROM `pseudowires`]
  30.  
  31. SQL[SELECT count(*) FROM `vrfs`]
  32.  
  33. SQL[SELECT count(*) FROM `vminfo`]
  34.  
  35. SQL[SELECT count(*) FROM `users`]
  36.  
  37. SQL[SELECT count(*) FROM `bills`]
  38.  
  39. SQL[SELECT count(*) FROM `alert_table`]
  40.  
  41. SQL[SELECT count(*) FROM `alert_tests`]
  42.  
  43. SQL[SELECT count(*) FROM `groups`]
  44.  
  45. SQL[SELECT count(*) FROM `group_table`]
  46.  
  47. SQL[SELECT SUM(`last_polled_timetaken`) FROM devices]
  48.  
  49. SQL[SELECT sysObjectID, COUNT( * ) as count FROM `devices` WHERE `os` = 'generic' GROUP BY `sysObjectID`]
  50.  
  51. SQL[SELECT COUNT(*) AS count,os from devices group by `os`]
  52.  
  53. SQL[SELECT COUNT(*) AS `count`, `type` FROM `devices` GROUP BY `type`]
  54.  
  55. SQL[SELECT COUNT(*) AS `count`, `app_type` FROM `applications` GROUP BY `app_type`]
  56.  
  57. SQL[SELECT * FROM `devices` WHERE `status` = 1 AND `disabled` = 0 AND `hostname` LIKE 'ricohmpc4000.rbs' ORDER BY `last_discovered_timetaken` ASC]
  58.  
  59. CMD[/usr/bin/snmpget -v2c -c *** -Pu -OQUst -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'ricohmpc4000.rbs':'1995' sysObjectID.0 sysUpTime.0]
  60. EXITCODE[0]
  61. RUNTIME[0.0133s]
  62. STDOUT[
  63. sysObjectID.0 = enterprises.367.1.1
  64. sysUpTime.0 = 788384500
  65. ]
  66. SNMP_STATUS[TRUE]
  67.  
  68. SQL[SELECT * FROM `devices_attribs` WHERE `device_id` = '21']
  69. ricohmpc4000.rbs 21 ricoh (printer)
  70. Toner:
  71. CMD[/usr/bin/snmpbulkwalk -v2c -c *** -Pu -OsqnU -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' 1.3.6.1.2.1.43.11.1.1.3]
  72. EXITCODE[0]
  73. RUNTIME[0.04s]
  74. STDOUT[
  75. .1.3.6.1.2.1.43.11.1.1.3.1.1 1
  76. .1.3.6.1.2.1.43.11.1.1.3.1.2 2
  77. .1.3.6.1.2.1.43.11.1.1.3.1.3 3
  78. .1.3.6.1.2.1.43.11.1.1.3.1.4 4
  79. .1.3.6.1.2.1.43.11.1.1.3.1.5 5
  80. ]
  81. SNMP_STATUS[TRUE]
  82. .1.3.6.1.2.1.43.11.1.1.3.1.1 1
  83. .1.3.6.1.2.1.43.11.1.1.3.1.2 2
  84. .1.3.6.1.2.1.43.11.1.1.3.1.3 3
  85. .1.3.6.1.2.1.43.11.1.1.3.1.4 4
  86. .1.3.6.1.2.1.43.11.1.1.3.1.5 5
  87. Jetdirect
  88. CMD[/usr/bin/snmpget -v2c -c *** -Pu -Oqv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' .1.3.6.1.2.1.43.11.1.1.5.1.1]
  89. EXITCODE[0]
  90. RUNTIME[0.0366s]
  91. STDOUT[
  92. 3
  93. ]
  94. SNMP_STATUS[TRUE]
  95.  
  96. CMD[/usr/bin/snmpget -v2c -c *** -Pu -Oqv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' .1.3.6.1.2.1.43.11.1.1.6.1.1]
  97. EXITCODE[0]
  98. RUNTIME[0.0362s]
  99. STDOUT[
  100. "Black Toner"
  101. ]
  102. SNMP_STATUS[TRUE]
  103.  
  104. CMD[/usr/bin/snmpget -v2c -c *** -Pu -Oqv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' .1.3.6.1.2.1.43.11.1.1.9.1.1]
  105. EXITCODE[0]
  106. RUNTIME[0.0379s]
  107. STDOUT[
  108. -3
  109. ]
  110. SNMP_STATUS[TRUE]
  111.  
  112. CMD[/usr/bin/snmpget -v2c -c *** -Pu -Oqv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' .1.3.6.1.2.1.43.11.1.1.8.1.1]
  113. EXITCODE[0]
  114. RUNTIME[0.0366s]
  115. STDOUT[
  116. -2
  117. ]
  118. SNMP_STATUS[TRUE]
  119. 21 -> .1.3.6.1.2.1.43.11.1.1.9.1.1, 1, jetdirect, Black Toner, 100, .1.3.6.1.2.1.43.11.1.1.8.1.1, 100, 1
  120.  
  121. SQL[SELECT * FROM `toner` WHERE `device_id` = '21' AND `toner_index` = '1' AND `toner_type` = 'jetdirect' AND `toner_capacity_oid` = '.1.3.6.1.2.1.43.11.1.1.8.1.1']
  122. .
  123. CMD[/usr/bin/snmpget -v2c -c *** -Pu -Oqv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' .1.3.6.1.2.1.43.11.1.1.5.1.2]
  124. EXITCODE[0]
  125. RUNTIME[0.0358s]
  126. STDOUT[
  127. 4
  128. ]
  129. SNMP_STATUS[TRUE]
  130.  
  131. CMD[/usr/bin/snmpget -v2c -c *** -Pu -Oqv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' .1.3.6.1.2.1.43.11.1.1.6.1.2]
  132. EXITCODE[0]
  133. RUNTIME[0.0365s]
  134. STDOUT[
  135. "Waste Toner"
  136. ]
  137. SNMP_STATUS[TRUE]
  138. WasteTonerBox
  139. SQL[SELECT COUNT(*) FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'wastebox_oid']
  140.  
  141. SQL[UPDATE `devices_attribs` set `attrib_value` ='.1.3.6.1.2.1.43.11.1.1.9.1.2' WHERE device_id='21' and attrib_type='wastebox_oid']
  142.  
  143. CMD[/usr/bin/snmpget -v2c -c *** -Pu -Oqv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' .1.3.6.1.2.1.43.11.1.1.5.1.3]
  144. EXITCODE[0]
  145. RUNTIME[0.0378s]
  146. STDOUT[
  147. 3
  148. ]
  149. SNMP_STATUS[TRUE]
  150.  
  151. CMD[/usr/bin/snmpget -v2c -c *** -Pu -Oqv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' .1.3.6.1.2.1.43.11.1.1.6.1.3]
  152. EXITCODE[0]
  153. RUNTIME[0.0355s]
  154. STDOUT[
  155. "Cyan Toner"
  156. ]
  157. SNMP_STATUS[TRUE]
  158.  
  159. CMD[/usr/bin/snmpget -v2c -c *** -Pu -Oqv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' .1.3.6.1.2.1.43.11.1.1.9.1.3]
  160. EXITCODE[0]
  161. RUNTIME[0.0369s]
  162. STDOUT[
  163. -2
  164. ]
  165. SNMP_STATUS[TRUE]
  166.  
  167. CMD[/usr/bin/snmpget -v2c -c *** -Pu -Oqv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' .1.3.6.1.2.1.43.11.1.1.8.1.3]
  168. EXITCODE[0]
  169. RUNTIME[0.0371s]
  170. STDOUT[
  171. -2
  172. ]
  173. SNMP_STATUS[TRUE]
  174.  
  175. CMD[/usr/bin/snmpget -v2c -c *** -Pu -Oqv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' .1.3.6.1.2.1.43.11.1.1.5.1.4]
  176. EXITCODE[0]
  177. RUNTIME[0.0369s]
  178. STDOUT[
  179. 3
  180. ]
  181. SNMP_STATUS[TRUE]
  182.  
  183. CMD[/usr/bin/snmpget -v2c -c *** -Pu -Oqv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' .1.3.6.1.2.1.43.11.1.1.6.1.4]
  184. EXITCODE[0]
  185. RUNTIME[0.0367s]
  186. STDOUT[
  187. "Magenta Toner"
  188. ]
  189. SNMP_STATUS[TRUE]
  190.  
  191. CMD[/usr/bin/snmpget -v2c -c *** -Pu -Oqv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' .1.3.6.1.2.1.43.11.1.1.9.1.4]
  192. EXITCODE[0]
  193. RUNTIME[0.0359s]
  194. STDOUT[
  195. -3
  196. ]
  197. SNMP_STATUS[TRUE]
  198.  
  199. CMD[/usr/bin/snmpget -v2c -c *** -Pu -Oqv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' .1.3.6.1.2.1.43.11.1.1.8.1.4]
  200. EXITCODE[0]
  201. RUNTIME[0.0368s]
  202. STDOUT[
  203. -2
  204. ]
  205. SNMP_STATUS[TRUE]
  206. 21 -> .1.3.6.1.2.1.43.11.1.1.9.1.4, 4, jetdirect, Magenta Toner, 100, .1.3.6.1.2.1.43.11.1.1.8.1.4, 100, 1
  207.  
  208. SQL[SELECT * FROM `toner` WHERE `device_id` = '21' AND `toner_index` = '4' AND `toner_type` = 'jetdirect' AND `toner_capacity_oid` = '.1.3.6.1.2.1.43.11.1.1.8.1.4']
  209. .
  210. CMD[/usr/bin/snmpget -v2c -c *** -Pu -Oqv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' .1.3.6.1.2.1.43.11.1.1.5.1.5]
  211. EXITCODE[0]
  212. RUNTIME[0.0361s]
  213. STDOUT[
  214. 3
  215. ]
  216. SNMP_STATUS[TRUE]
  217.  
  218. CMD[/usr/bin/snmpget -v2c -c *** -Pu -Oqv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' .1.3.6.1.2.1.43.11.1.1.6.1.5]
  219. EXITCODE[0]
  220. RUNTIME[0.0366s]
  221. STDOUT[
  222. "Yellow Toner"
  223. ]
  224. SNMP_STATUS[TRUE]
  225.  
  226. CMD[/usr/bin/snmpget -v2c -c *** -Pu -Oqv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' .1.3.6.1.2.1.43.11.1.1.9.1.5]
  227. EXITCODE[0]
  228. RUNTIME[0.0369s]
  229. STDOUT[
  230. -3
  231. ]
  232. SNMP_STATUS[TRUE]
  233.  
  234. CMD[/usr/bin/snmpget -v2c -c *** -Pu -Oqv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' .1.3.6.1.2.1.43.11.1.1.8.1.5]
  235. EXITCODE[0]
  236. RUNTIME[0.0378s]
  237. STDOUT[
  238. -2
  239. ]
  240. SNMP_STATUS[TRUE]
  241. 21 -> .1.3.6.1.2.1.43.11.1.1.9.1.5, 5, jetdirect, Yellow Toner, 100, .1.3.6.1.2.1.43.11.1.1.8.1.5, 100, 1
  242.  
  243. SQL[SELECT * FROM `toner` WHERE `device_id` = '21' AND `toner_index` = '5' AND `toner_type` = 'jetdirect' AND `toner_capacity_oid` = '.1.3.6.1.2.1.43.11.1.1.8.1.5']
  244. .
  245. Checking ...
  246. Array
  247. (
  248. [jetdirect] => Array
  249. (
  250. [1] => 1
  251. [4] => 1
  252. [5] => 1
  253. )
  254.  
  255. )
  256.  
  257. SQL[SELECT * FROM `toner` WHERE `device_id` = '21']
  258.  
  259. CMD[/usr/bin/snmpget -v2c -c *** -Pu -OUqnv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' 1.3.6.1.2.1.43.10.2.1.4.1.1]
  260. EXITCODE[0]
  261. RUNTIME[0.0389s]
  262. STDOUT[
  263. 88363
  264. ]
  265. SNMP_STATUS[TRUE]
  266. Pagecounter
  267. SQL[SELECT COUNT(*) FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'pagecount_oid']
  268.  
  269. SQL[UPDATE `devices_attribs` set `attrib_value` ='1.3.6.1.2.1.43.10.2.1.4.1.1' WHERE device_id='21' and attrib_type='pagecount_oid']
  270.  
  271. Module [ toner ] time: 0.7818s
  272.  
  273. SQL[UPDATE `devices` set `last_discovered` =NOW(),`type` ='printer',`last_discovered_timetaken` ='0.781' WHERE `device_id` = '21']
  274.  
  275. SQL[INSERT INTO `devices_perftimes` (`device_id`,`operation`,`start`,`duration`) VALUES ('21','discover','1421682508.3047','0.78193998336792')]
  276. Discovered in 0.781 seconds
  277.  
  278.  
  279. SQL[SELECT * FROM `alert_tests`]
  280.  
  281. SQL[SELECT * FROM `alert_assoc`]
  282.  
  283. SQL[SELECT count(*) FROM `devices` WHERE device_id = '21' AND `hostname` != 'router.cuttingedge']
  284.  
  285. SQL[SELECT count(*) FROM `devices` WHERE device_id = '21']
  286.  
  287. SQL[SELECT count(*) FROM `devices` WHERE device_id = '21' AND `hostname` != 'autocube.acs']
  288.  
  289. SQL[SELECT count(*) FROM `devices` WHERE device_id = '21']
  290.  
  291. SQL[SELECT count(*) FROM `devices` WHERE device_id = '21']
  292.  
  293. SQL[SELECT * FROM `alert_table` WHERE `device_id` = '21']
  294.  
  295. SQL[SELECT * FROM `devices` WHERE device_id = '21']
  296.  
  297. SQL[SELECT * FROM `devices` WHERE device_id = '21']
  298.  
  299. SQL[SELECT * FROM `devices` WHERE device_id = '21']
  300.  
  301. SQL[SELECT * FROM `ports` WHERE device_id = '21' AND `deleted` != '1' AND `ifName` = 'ether01-EFM']
  302.  
  303. SQL[SELECT * FROM `ports` WHERE device_id = '21' AND `deleted` != '1' AND `ifName` = 'pppoe-fttc']
  304.  
  305. SQL[SELECT * FROM `devices` WHERE `device_id` = '21']
  306.  
  307. SQL[INSERT INTO `perf_times` (`type`,`doing`,`start`,`duration`,`devices`) VALUES ('discover','ricohmpc4000.rbs','1421682508.1306','1.044','1')]
  308. ./discovery.php: ricohmpc4000.rbs - 1 devices discovered in 1.044 secs
  309. NOTE, $config['snmp']['hide_auth'] sets as TRUE, snmp community and snmp v3 auth hidden from debug output.
  310. Memory usage: 8MB (peak: 8.25MB)
  311. MySQL: Cell[28/0.01s] Row[4/0s] Rows[13/0.01s] Column[0/0s] Update[3/0.06s] Insert[2/0.03s] Delete[0/0s]
  312. root@observium:/opt/observium# ./poller.php -d -m toner -h ricohmpc4000.rbs
  313. DEBUG!
  314. Observium 0.15.1.6194
  315. Poller
  316.  
  317. Starting polling run:
  318.  
  319.  
  320. SQL[SELECT `device_id` FROM `devices` WHERE `disabled` = 0 AND `hostname` LIKE 'ricohmpc4000.rbs' ORDER BY `device_id` ASC]
  321.  
  322. SQL[SELECT * FROM `devices` WHERE `device_id` = '21']
  323.  
  324. SQL[SELECT * FROM `devices_attribs` WHERE `device_id` = '21']
  325.  
  326. SQL[SELECT * FROM `alert_tests` WHERE 1]
  327. Cached 5 alert rules.
  328.  
  329. SQL[SELECT *,`alert_table`.`alert_table_id` AS `alert_table_id` FROM `alert_table` LEFT JOIN `alert_table-state` ON `alert_table`.`alert_table_id` = `alert_table-state`.`alert_table_id` WHERE `device_id` = '21']
  330. Array
  331. (
  332. [1] => Array
  333. (
  334. [alert_test_id] => 1
  335. [entity_type] => device
  336. [alert_name] => SNMPDeviceDown
  337. [alert_message] => SNMP Status
  338. [conditions] => Array
  339. (
  340. [0] => Array
  341. (
  342. [value] => snmp
  343. [condition] => =
  344. [metric] => device_status_type
  345. )
  346.  
  347. [1] => Array
  348. (
  349. [value] => 0
  350. [condition] => =
  351. [metric] => device_status
  352. )
  353.  
  354. )
  355.  
  356. [and] => 1
  357. [severity] => crit
  358. [delay] => 0
  359. [alerter] => default
  360. [enable] => 1
  361. [show_frontpage] => 1
  362. [suppress_recovery] => 0
  363. [ignore_until] =>
  364. )
  365.  
  366. [2] => Array
  367. (
  368. [alert_test_id] => 2
  369. [entity_type] => device
  370. [alert_name] => UpTime
  371. [alert_message] => Up Time Less Than 10 Mins
  372. [conditions] => Array
  373. (
  374. [0] => Array
  375. (
  376. [value] => 600
  377. [condition] => <
  378. [metric] => device_uptime
  379. )
  380.  
  381. [1] => Array
  382. (
  383. [value] => 0
  384. [condition] => >
  385. [metric] => device_uptime
  386. )
  387.  
  388. )
  389.  
  390. [and] => 1
  391. [severity] => crit
  392. [delay] => 0
  393. [alerter] => default
  394. [enable] => 1
  395. [show_frontpage] => 1
  396. [suppress_recovery] => 1
  397. [ignore_until] =>
  398. )
  399.  
  400. [3] => Array
  401. (
  402. [alert_test_id] => 3
  403. [entity_type] => device
  404. [alert_name] => PingDeviceDown
  405. [alert_message] => Ping Status
  406. [conditions] => Array
  407. (
  408. [0] => Array
  409. (
  410. [value] => ping
  411. [condition] => =
  412. [metric] => device_status_type
  413. )
  414.  
  415. [1] => Array
  416. (
  417. [value] => 0
  418. [condition] => =
  419. [metric] => device_status
  420. )
  421.  
  422. )
  423.  
  424. [and] => 1
  425. [severity] => crit
  426. [delay] => 0
  427. [alerter] => default
  428. [enable] => 1
  429. [show_frontpage] => 1
  430. [suppress_recovery] => 0
  431. [ignore_until] =>
  432. )
  433.  
  434. [4] => Array
  435. (
  436. [alert_test_id] => 4
  437. [entity_type] => port
  438. [alert_name] => EFMBandwidth
  439. [alert_message] => EFM Bandwidth Above 5MB
  440. [conditions] => Array
  441. (
  442. [0] => Array
  443. (
  444. [value] => 625000
  445. [condition] => >
  446. [metric] => ifInOctets_rate
  447. )
  448.  
  449. [1] => Array
  450. (
  451. [value] => 625000
  452. [condition] => >
  453. [metric] => ifOutOctets_rate
  454. )
  455.  
  456. )
  457.  
  458. [and] => 0
  459. [severity] => crit
  460. [delay] => 0
  461. [alerter] => default
  462. [enable] => 1
  463. [show_frontpage] => 1
  464. [suppress_recovery] => 0
  465. [ignore_until] =>
  466. )
  467.  
  468. [5] => Array
  469. (
  470. [alert_test_id] => 5
  471. [entity_type] => port
  472. [alert_name] => FTTC-IN-Bandwidth
  473. [alert_message] => FTTC IN Bandwidth Above 20MB
  474. [conditions] => Array
  475. (
  476. [0] => Array
  477. (
  478. [value] => 2500000
  479. [condition] => >
  480. [metric] => ifInOctets_rate
  481. )
  482.  
  483. )
  484.  
  485. [and] => 1
  486. [severity] => crit
  487. [delay] => 0
  488. [alerter] => default
  489. [enable] => 1
  490. [show_frontpage] => 1
  491. [suppress_recovery] => 0
  492. [ignore_until] =>
  493. )
  494.  
  495. )
  496. Array
  497. (
  498. [device] => Array
  499. (
  500. [21] => Array
  501. (
  502. [1] => Array
  503. (
  504. [alert_table_id] => 18
  505. [alert_test_id] => 1
  506. [device_id] => 21
  507. [entity_type] => device
  508. [entity_id] => 21
  509. [alert_assocs] => 1
  510. [delay] => 0
  511. [ignore_until] =>
  512. [ignore_until_ok] => 0
  513. [last_checked] => 1421682494
  514. [last_changed] => 1420802251
  515. [last_recovered] => 0
  516. [last_failed] => 0
  517. [has_alerted] => 0
  518. [last_message] => Checks OK
  519. [alert_status] => 1
  520. [last_alerted] => 0
  521. [state] => {"metrics":{"device_status_type":"","device_status":"1"}}
  522. [count] => 0
  523. [state_entry] => 1
  524. )
  525.  
  526. [2] => Array
  527. (
  528. [alert_table_id] => 55
  529. [alert_test_id] => 2
  530. [device_id] => 21
  531. [entity_type] => device
  532. [entity_id] => 21
  533. [alert_assocs] => 2
  534. [delay] => 0
  535. [ignore_until] =>
  536. [ignore_until_ok] => 0
  537. [last_checked] => 1421682494
  538. [last_changed] => 1420802251
  539. [last_recovered] => 0
  540. [last_failed] => 0
  541. [has_alerted] => 0
  542. [last_message] => Checks OK
  543. [alert_status] => 1
  544. [last_alerted] => 0
  545. [state] => {"metrics":{"device_uptime":"7883792"},"failed":[{"value":"0","condition":">","metric":"device_uptime"}]}
  546. [count] => 0
  547. [state_entry] => 1
  548. )
  549.  
  550. [3] => Array
  551. (
  552. [alert_table_id] => 104
  553. [alert_test_id] => 3
  554. [device_id] => 21
  555. [entity_type] => device
  556. [entity_id] => 21
  557. [alert_assocs] => 3
  558. [delay] => 0
  559. [ignore_until] =>
  560. [ignore_until_ok] => 0
  561. [last_checked] => 1421682494
  562. [last_changed] => 1420802251
  563. [last_recovered] => 0
  564. [last_failed] => 0
  565. [has_alerted] => 0
  566. [last_message] => Checks OK
  567. [alert_status] => 1
  568. [last_alerted] => 0
  569. [state] => {"metrics":{"device_status_type":"","device_status":"1"}}
  570. [count] => 0
  571. [state_entry] => 1
  572. )
  573.  
  574. )
  575.  
  576. )
  577.  
  578. )
  579. ricohmpc4000.rbs 21 ricoh (printer)
  580.  
  581. CMD[/usr/bin/snmpget -v2c -c *** -Pu -OQUst -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'ricohmpc4000.rbs':'1995' sysObjectID.0 sysUpTime.0]
  582. EXITCODE[0]
  583. RUNTIME[0.0151s]
  584. STDOUT[
  585. sysObjectID.0 = enterprises.367.1.1
  586. sysUpTime.0 = 788384900
  587. ]
  588. SNMP_STATUS[TRUE]
  589. RRD /opt/observium/rrd/ricohmpc4000.rbs/status.rrd already exists - no need to create.
  590. RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/status.rrd N:1]
  591. stdout[OK u:0.00 s:0.00 r:0.05]
  592. stderr[]]
  593. RRD /opt/observium/rrd/ricohmpc4000.rbs/ping.rrd already exists - no need to create.
  594. RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/ping.rrd N:14.9]
  595. stdout[OK u:0.00 s:0.00 r:0.05]
  596. stderr[]]
  597. RRD /opt/observium/rrd/ricohmpc4000.rbs/ping_snmp.rrd already exists - no need to create.
  598. RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/ping_snmp.rrd N:16.67]
  599. stdout[OK u:0.00 s:0.00 r:0.05]
  600. stderr[]]
  601.  
  602. SQL[SELECT * FROM `device_graphs` WHERE `device_id` = '21']
  603.  
  604. including: includes/polling/system.inc.php
  605.  
  606. CMD[/usr/bin/snmpget -v2c -c *** -Pu -OQUs -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'ricohmpc4000.rbs':'1995' sysUpTime.0 sysLocation.0 sysContact.0 sysName.0]
  607. EXITCODE[0]
  608. RUNTIME[0.0131s]
  609. STDOUT[
  610. sysUpTime.0 = 91:5:57:29.00
  611. sysLocation.0 = M2 2BE [53.480602, -2.241049]
  612. sysContact.0 =
  613. sysName.0 = Aficio MP C4000
  614. ]
  615. SNMP_STATUS[TRUE]
  616.  
  617. CMD[/usr/bin/snmpget -v2c -c *** -Pu -Oqv -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'ricohmpc4000.rbs':'1995' sysDescr.0]
  618. EXITCODE[0]
  619. RUNTIME[0.0141s]
  620. STDOUT[
  621. RICOH Aficio MP C4000 2.00 / RICOH Network Printer C model / RICOH Network Scanner C model / RICOH Network Facsimile C model
  622. ]
  623. SNMP_STATUS[TRUE]
  624.  
  625. CMD[/usr/bin/snmpget -v2c -c *** -Pu -Oqvn -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'ricohmpc4000.rbs':'1995' sysObjectID.0]
  626. EXITCODE[0]
  627. RUNTIME[0.0136s]
  628. STDOUT[
  629. .1.3.6.1.4.1.367.1.1
  630. ]
  631. SNMP_STATUS[TRUE]
  632.  
  633. CMD[/usr/bin/snmpget -v2c -c *** -Pu -Ovqn -m SNMP-FRAMEWORK-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'ricohmpc4000.rbs':'1995' snmpEngineID.0]
  634. EXITCODE[0]
  635. RUNTIME[0.0117s]
  636. STDOUT[
  637. No Such Object available on this agent at this OID
  638. ]
  639. SNMP_STATUS[FALSE]
  640.  
  641. CMD[/usr/bin/snmpget -v2c -c *** -Pu -Oqv -m HOST-RESOURCES-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'ricohmpc4000.rbs':'1995' hrSystemUptime.0]
  642. EXITCODE[0]
  643. RUNTIME[0.0184s]
  644. STDOUT[
  645. 91:5:57:29.00
  646. ]
  647. SNMP_STATUS[TRUE]
  648. Using SNMP Agent hrSystemUptime (7883849 seconds)
  649. RRD /opt/observium/rrd/ricohmpc4000.rbs/uptime.rrd already exists - no need to create.
  650. RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/uptime.rrd N:7883849]
  651. stdout[OK u:0.00 s:0.00 r:0.13]
  652. stderr[]]
  653. Uptime: 91 days, 5h 57m 29s
  654.  
  655. SQL[SELECT `version` FROM `dbSchema`]
  656.  
  657. SQL[SELECT * FROM `devices_locations` WHERE `device_id` = '21']
  658. Module [ system ] time: 0.0824s
  659.  
  660. including: includes/polling/os.inc.php
  661.  
  662. CMD[/usr/bin/snmpget -v2c -c *** -Pu -OQv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' 1.3.6.1.4.1.367.3.2.1.1.1.1.0]
  663. EXITCODE[0]
  664. RUNTIME[0.0375s]
  665. STDOUT[
  666. "Aficio MP C4000"
  667. ]
  668. SNMP_STATUS[TRUE]
  669.  
  670. CMD[/usr/bin/snmpget -v2c -c *** -Pu -OQv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' 1.3.6.1.4.1.367.3.2.1.1.1.2.0]
  671. EXITCODE[0]
  672. RUNTIME[0.0358s]
  673. STDOUT[
  674. "2.00"
  675. ]
  676. SNMP_STATUS[TRUE]
  677.  
  678. CMD[/usr/bin/snmpget -v2c -c *** -Pu -OQv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' 1.3.6.1.4.1.367.3.2.1.2.1.4.0]
  679. EXITCODE[0]
  680. RUNTIME[0.035s]
  681. STDOUT[
  682. "V1293500878"
  683. ]
  684. SNMP_STATUS[TRUE]
  685.  
  686. Hardware: Aficio MP C4000 Version: 2.00 Features: Serial: V1293500878 Asset:
  687. Module [ os ] time: 0.1139s
  688.  
  689. including: includes/polling/toner.inc.php
  690.  
  691. SQL[SELECT * FROM `toner` WHERE `device_id` = '21']
  692. Checking toner Black Toner...
  693. CMD[/usr/bin/snmpget -v2c -c *** -Pu -OUqnv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' .1.3.6.1.2.1.43.11.1.1.9.1.1]
  694. EXITCODE[0]
  695. RUNTIME[0.0386s]
  696. STDOUT[
  697. -3
  698. ]
  699. SNMP_STATUS[TRUE]
  700. RRD /opt/observium/rrd/ricohmpc4000.rbs/toner-1.rrd already exists - no need to create.
  701. 1 %
  702. RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/toner-1.rrd N:1]
  703. stdout[OK u:0.00 s:0.00 r:0.29]
  704. stderr[]]
  705.  
  706. SQL[UPDATE `toner` set `toner_current` ='1',`toner_capacity` ='100' WHERE `toner_id` = '5']
  707.  
  708. Checking alerts
  709. Array
  710. (
  711. [toner_current] => 1
  712. )
  713. Checking toner Magenta Toner...
  714. CMD[/usr/bin/snmpget -v2c -c *** -Pu -OUqnv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' .1.3.6.1.2.1.43.11.1.1.9.1.4]
  715. EXITCODE[0]
  716. RUNTIME[0.0373s]
  717. STDOUT[
  718. -3
  719. ]
  720. SNMP_STATUS[TRUE]
  721. RRD /opt/observium/rrd/ricohmpc4000.rbs/toner-4.rrd already exists - no need to create.
  722. 1 %
  723. RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/toner-4.rrd N:1]
  724. stdout[OK u:0.00 s:0.00 r:0.39]
  725. stderr[]]
  726.  
  727. SQL[UPDATE `toner` set `toner_current` ='1',`toner_capacity` ='100' WHERE `toner_id` = '7']
  728.  
  729. Checking alerts
  730. Array
  731. (
  732. [toner_current] => 1
  733. )
  734. Checking toner Yellow Toner...
  735. CMD[/usr/bin/snmpget -v2c -c *** -Pu -OUqnv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' .1.3.6.1.2.1.43.11.1.1.9.1.5]
  736. EXITCODE[0]
  737. RUNTIME[0.0362s]
  738. STDOUT[
  739. -3
  740. ]
  741. SNMP_STATUS[TRUE]
  742. RRD /opt/observium/rrd/ricohmpc4000.rbs/toner-5.rrd already exists - no need to create.
  743. 1 %
  744. RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/toner-5.rrd N:1]
  745. stdout[OK u:0.00 s:0.00 r:0.45]
  746. stderr[]]
  747.  
  748. SQL[UPDATE `toner` set `toner_current` ='1',`toner_capacity` ='100' WHERE `toner_id` = '8']
  749.  
  750. Checking alerts
  751. Array
  752. (
  753. [toner_current] => 1
  754. )
  755.  
  756. SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'pagecount_oid']
  757. Checking page count...
  758. CMD[/usr/bin/snmpget -v2c -c *** -Pu -OUqnv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' 1.3.6.1.2.1.43.10.2.1.4.1.1]
  759. EXITCODE[0]
  760. RUNTIME[0.0384s]
  761. STDOUT[
  762. 88363
  763. ]
  764. SNMP_STATUS[TRUE]
  765. RRD /opt/observium/rrd/ricohmpc4000.rbs/pagecount.rrd already exists - no need to create.
  766.  
  767. SQL[SELECT COUNT(*) FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'pagecounter']
  768.  
  769. SQL[UPDATE `devices_attribs` set `attrib_value` ='88363' WHERE device_id='21' and attrib_type='pagecounter']
  770. RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/pagecount.rrd N:88363]
  771. stdout[OK u:0.00 s:0.00 r:0.50]
  772. stderr[]]
  773. 88363
  774.  
  775. SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'imagingdrum_oid']
  776.  
  777. SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'imagingdrum_c_oid']
  778.  
  779. SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'imagingdrum_m_oid']
  780.  
  781. SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'imagingdrum_y_oid']
  782.  
  783. SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'imagingdrum_k_oid']
  784.  
  785. SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'wastebox_oid']
  786. Checking Waste Toner Box...
  787. SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'wastebox_cap_oid']
  788.  
  789. CMD[/usr/bin/snmpget -v2c -c *** -Pu -OUqnv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' ]
  790. EXITCODE[1]
  791. RUNTIME[0.029s]
  792. STDOUT[
  793.  
  794. ]
  795. STDERR[
  796. Missing object name
  797. USAGE: snmpget [OPTIONS] AGENT OID [OID]...
  798.  
  799. Version: 5.4.3
  800. Web: http://www.net-snmp.org/
  801.  
  802. OPTIONS:
  803. -h, --help display this help message
  804. -H display configuration file directives understood
  805. -v 1|2c|3 specifies SNMP version to use
  806. -V, --version display package version number
  807. SNMP Version 1 or 2c specific
  808. -c COMMUNITY set the community string
  809. SNMP Version 3 specific
  810. -a PROTOCOL set authentication protocol (MD5|SHA)
  811. -A PASSPHRASE set authentication protocol pass phrase
  812. -e ENGINE-ID set security engine ID (e.g. 800000020109840301)
  813. -E ENGINE-ID set context engine ID (e.g. 800000020109840301)
  814. -l LEVEL set security level (noAuthNoPriv|authNoPriv|authPriv)
  815. -n CONTEXT set context name (e.g. bridge1)
  816. -u USER-NAME set security name (e.g. bert)
  817. -x PROTOCOL set privacy protocol (DES|AES)
  818. -X PASSPHRASE set privacy protocol pass phrase
  819. -Z BOOTS,TIME set destination engine boots/time
  820. General communication options
  821. -r RETRIES set the number of retries
  822. -t TIMEOUT set the request timeout (in seconds)
  823. Debugging
  824. -d dump input/output packets in hexadecimal
  825. -D TOKEN[,...] turn on debugging output for the specified TOKENs
  826. (ALL gives extremely verbose debugging output)
  827. General options
  828. -m MIB[:...] load given list of MIBs (ALL loads everything)
  829. -M DIR[:...] look in given list of directories for MIBs
  830. -P MIBOPTS Toggle various defaults controlling MIB parsing:
  831. u: disallow the use of underlines in MIB symbols
  832. c: disallow the use of "--" to terminate comments
  833. d: save the DESCRIPTIONs of the MIB objects
  834. e: disable errors when MIB symbols conflict
  835. w: enable warnings when MIB symbols conflict
  836. W: enable detailed warnings when MIB symbols conflict
  837. R: replace MIB symbols from latest module
  838. -O OUTOPTS Toggle various defaults controlling output display:
  839. 0: print leading 0 for single-digit hex characters
  840. a: print all strings in ascii format
  841. b: do not break OID indexes down
  842. e: print enums numerically
  843. E: escape quotes in string indices
  844. f: print full OIDs on output
  845. n: print OIDs numerically
  846. q: quick print for easier parsing
  847. Q: quick print with equal-signs
  848. s: print only last symbolic element of OID
  849. S: print MIB module-id plus last element
  850. t: print timeticks unparsed as numeric integers
  851. T: print human-readable text along with hex strings
  852. u: print OIDs using UCD-style prefix suppression
  853. U: don't print units
  854. v: print values only (not OID = value)
  855. x: print all strings in hex format
  856. X: extended index format
  857. -I INOPTS Toggle various defaults controlling input parsing:
  858. b: do best/regex matching to find a MIB node
  859. h: don't apply DISPLAY-HINTs
  860. r: do not check values for range/type legality
  861. R: do random access to OID labels
  862. u: top-level OIDs must have '.' prefix (UCD-style)
  863. s SUFFIX: Append all textual OIDs with SUFFIX before parsing
  864. S PREFIX: Prepend all textual OIDs with PREFIX before parsing
  865. -L LOGOPTS Toggle various defaults controlling logging:
  866. e: log to standard error
  867. o: log to standard output
  868. n: don't log at all
  869. f file: log to the specified file
  870. s facility: log to syslog (via the specified facility)
  871.  
  872. (variants)
  873. [EON] pri: log to standard error, output or /dev/null for level 'pri' and above
  874. [EON] p1-p2: log to standard error, output or /dev/null for levels 'p1' to 'p2'
  875. [FS] pri token: log to file/syslog for level 'pri' and above
  876. [FS] p1-p2 token: log to file/syslog for levels 'p1' to 'p2'
  877. -C APPOPTS Set various application specific behaviours:
  878. f: do not fix errors and retry the request
  879. ]
  880. SNMP_STATUS[FALSE]
  881.  
  882. CMD[/usr/bin/snmpget -v2c -c *** -Pu -OUqnv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' .1.3.6.1.2.1.43.11.1.1.9.1.2]
  883. EXITCODE[0]
  884. RUNTIME[0.0365s]
  885. STDOUT[
  886. -3
  887. ]
  888. SNMP_STATUS[TRUE]
  889. RRD /opt/observium/rrd/ricohmpc4000.rbs/wastebox.rrd already exists - no need to create.
  890.  
  891. SQL[SELECT COUNT(*) FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'wastebox']
  892.  
  893. SQL[UPDATE `devices_attribs` set `attrib_value` ='1' WHERE device_id='21' and attrib_type='wastebox']
  894. RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/wastebox.rrd N:1]
  895. stdout[OK u:0.00 s:0.00 r:0.57]
  896. stderr[]]
  897. 1%
  898.  
  899. SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'fuser_oid']
  900.  
  901. SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'transferroller_oid']
  902. Module [ toner ] time: 0.3291s
  903. Graphs [checked]: ping, ping_snmp, uptime, toner
  904.  
  905. Polled in 0.5774 seconds
  906. Updating ricohmpc4000.rbs - Array
  907. (
  908. [uptime] => 7883849
  909. [last_polled] => Array
  910. (
  911. [0] => NOW()
  912. )
  913.  
  914. [last_polled_timetaken] => 0.5774
  915. [device_state] => a:1:{s:15:"poller_mod_perf";a:3:{s:6:"system";s:6:"0.0824";s:2:"os";s:6:"0.1139";s:5:"toner";s:6:"0.3291";}}
  916. )
  917.  
  918.  
  919. SQL[UPDATE `devices` set `uptime` ='7883849',`last_polled` =NOW(),`last_polled_timetaken` ='0.5774',`device_state` ='a:1:{s:15:\"poller_mod_perf\";a:3:{s:6:\"system\";s:6:\"0.0824\";s:2:\"os\";s:6:\"0.1139\";s:5:\"toner\";s:6:\"0.3291\";}}' WHERE `device_id` = '21']
  920. UPDATED!
  921.  
  922. Checking alerts
  923. Array
  924. (
  925. [device_status] => 1
  926. [device_status_type] =>
  927. [device_ping] => 14.9
  928. [device_snmp] => 16.67
  929. [device_uptime] => 7883828
  930. [device_duration_poll] => 3.56
  931. )
  932. Checking alert 1 associated by 1
  933. Testing: device_status_type = snmp (value: ) OK Testing: device_status = 0 (value: 1) OK Checks OK.
  934.  
  935. SQL[UPDATE `alert_table-state` set `state` ='{\"metrics\":{\"device_status_type\":\"\",\"device_status\":\"1\"}}',`count` ='0',`alert_status` ='1',`last_message` ='Checks OK',`last_checked` ='1421682512' WHERE `alert_table_id` = '18']
  936. RRD /opt/observium/rrd/ricohmpc4000.rbs/alert-18.rrd already exists - no need to create.
  937. RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/alert-18.rrd N:1:1]
  938. stdout[OK u:0.00 s:0.00 r:0.58]
  939. stderr[]]
  940. Checking alert 2 associated by 2
  941. Testing: device_uptime < 600 (value: 7883828) OK Testing: device_uptime > 0 (value: 7883828) FAIL Checks OK.
  942.  
  943. SQL[UPDATE `alert_table-state` set `state` ='{\"metrics\":{\"device_uptime\":\"7883828\"},\"failed\":[{\"value\":\"0\",\"condition\":\">\",\"metric\":\"device_uptime\"}]}',`count` ='0',`alert_status` ='1',`last_message` ='Checks OK',`last_checked` ='1421682512' WHERE `alert_table_id` = '55']
  944. RRD /opt/observium/rrd/ricohmpc4000.rbs/alert-55.rrd already exists - no need to create.
  945. RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/alert-55.rrd N:1:1]
  946. stdout[OK u:0.00 s:0.00 r:0.59]
  947. stderr[]]
  948. Checking alert 3 associated by 3
  949. Testing: device_status_type = ping (value: ) OK Testing: device_status = 0 (value: 1) OK Checks OK.
  950.  
  951. SQL[UPDATE `alert_table-state` set `state` ='{\"metrics\":{\"device_status_type\":\"\",\"device_status\":\"1\"}}',`count` ='0',`alert_status` ='1',`last_message` ='Checks OK',`last_checked` ='1421682512' WHERE `alert_table_id` = '104']
  952. RRD /opt/observium/rrd/ricohmpc4000.rbs/alert-104.rrd already exists - no need to create.
  953. RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/alert-104.rrd N:1:1]
  954. stdout[OK u:0.00 s:0.00 r:0.59]
  955. stderr[]]
  956.  
  957. SQL[INSERT INTO `perf_times` (`type`,`doing`,`start`,`duration`,`devices`) VALUES ('poll','ricohmpc4000.rbs','1421682511.7214','0.600','1')]
  958. ./poller.php: ricohmpc4000.rbs - 1 devices polled in 0.600 secs
  959. NOTE, $config['snmp']['hide_auth'] sets as TRUE, snmp community and snmp v3 auth hidden from debug output.
  960. Memory usage: 8MB (peak: 8.25MB)
  961. MySQL: Cell[3/0s] Row[12/0s] Rows[6/0s] Column[0/0s] Update[9/0.09s] Insert[1/0.01s] Delete[0/0s]
  962. root@observium:/opt/observium#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement