Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@observium:/opt/observium# ./discovery.php -d -m toner -h ricohmpc4000.rbs
- DEBUG!
- Observium 0.15.1.6194
- Discovery
- SQL[SELECT `version` FROM `dbSchema`]
- SQL[SELECT count(*) FROM ports]
- SQL[SELECT count(*) FROM devices]
- SQL[SELECT count(*) FROM `sensors`]
- SQL[SELECT count(*) FROM `services`]
- SQL[SELECT count(*) FROM `applications`]
- SQL[SELECT count(*) FROM `bgpPeers`]
- SQL[SELECT count(*) FROM `ospf_ports`]
- SQL[SELECT count(*) FROM `eigrp_ports`]
- SQL[SELECT count(*) FROM `ipsec_tunnels`]
- SQL[SELECT count(*) FROM `munin_plugins`]
- SQL[SELECT count(*) FROM `pseudowires`]
- SQL[SELECT count(*) FROM `vrfs`]
- SQL[SELECT count(*) FROM `vminfo`]
- SQL[SELECT count(*) FROM `users`]
- SQL[SELECT count(*) FROM `bills`]
- SQL[SELECT count(*) FROM `alert_table`]
- SQL[SELECT count(*) FROM `alert_tests`]
- SQL[SELECT count(*) FROM `groups`]
- SQL[SELECT count(*) FROM `group_table`]
- SQL[SELECT SUM(`last_polled_timetaken`) FROM devices]
- SQL[SELECT sysObjectID, COUNT( * ) as count FROM `devices` WHERE `os` = 'generic' GROUP BY `sysObjectID`]
- SQL[SELECT COUNT(*) AS count,os from devices group by `os`]
- SQL[SELECT COUNT(*) AS `count`, `type` FROM `devices` GROUP BY `type`]
- SQL[SELECT COUNT(*) AS `count`, `app_type` FROM `applications` GROUP BY `app_type`]
- SQL[SELECT * FROM `devices` WHERE `status` = 1 AND `disabled` = 0 AND `hostname` LIKE 'ricohmpc4000.rbs' ORDER BY `last_discovered_timetaken` ASC]
- 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]
- EXITCODE[0]
- RUNTIME[0.0133s]
- STDOUT[
- sysObjectID.0 = enterprises.367.1.1
- sysUpTime.0 = 788384500
- ]
- SNMP_STATUS[TRUE]
- SQL[SELECT * FROM `devices_attribs` WHERE `device_id` = '21']
- ricohmpc4000.rbs 21 ricoh (printer)
- Toner:
- 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]
- EXITCODE[0]
- RUNTIME[0.04s]
- STDOUT[
- .1.3.6.1.2.1.43.11.1.1.3.1.1 1
- .1.3.6.1.2.1.43.11.1.1.3.1.2 2
- .1.3.6.1.2.1.43.11.1.1.3.1.3 3
- .1.3.6.1.2.1.43.11.1.1.3.1.4 4
- .1.3.6.1.2.1.43.11.1.1.3.1.5 5
- ]
- SNMP_STATUS[TRUE]
- .1.3.6.1.2.1.43.11.1.1.3.1.1 1
- .1.3.6.1.2.1.43.11.1.1.3.1.2 2
- .1.3.6.1.2.1.43.11.1.1.3.1.3 3
- .1.3.6.1.2.1.43.11.1.1.3.1.4 4
- .1.3.6.1.2.1.43.11.1.1.3.1.5 5
- Jetdirect
- 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]
- EXITCODE[0]
- RUNTIME[0.0366s]
- STDOUT[
- 3
- ]
- SNMP_STATUS[TRUE]
- 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]
- EXITCODE[0]
- RUNTIME[0.0362s]
- STDOUT[
- "Black Toner"
- ]
- SNMP_STATUS[TRUE]
- 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]
- EXITCODE[0]
- RUNTIME[0.0379s]
- STDOUT[
- -3
- ]
- SNMP_STATUS[TRUE]
- 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]
- EXITCODE[0]
- RUNTIME[0.0366s]
- STDOUT[
- -2
- ]
- SNMP_STATUS[TRUE]
- 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
- 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']
- .
- 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]
- EXITCODE[0]
- RUNTIME[0.0358s]
- STDOUT[
- 4
- ]
- SNMP_STATUS[TRUE]
- 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]
- EXITCODE[0]
- RUNTIME[0.0365s]
- STDOUT[
- "Waste Toner"
- ]
- SNMP_STATUS[TRUE]
- WasteTonerBox
- SQL[SELECT COUNT(*) FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'wastebox_oid']
- 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']
- 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]
- EXITCODE[0]
- RUNTIME[0.0378s]
- STDOUT[
- 3
- ]
- SNMP_STATUS[TRUE]
- 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]
- EXITCODE[0]
- RUNTIME[0.0355s]
- STDOUT[
- "Cyan Toner"
- ]
- SNMP_STATUS[TRUE]
- 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]
- EXITCODE[0]
- RUNTIME[0.0369s]
- STDOUT[
- -2
- ]
- SNMP_STATUS[TRUE]
- 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]
- EXITCODE[0]
- RUNTIME[0.0371s]
- STDOUT[
- -2
- ]
- SNMP_STATUS[TRUE]
- 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]
- EXITCODE[0]
- RUNTIME[0.0369s]
- STDOUT[
- 3
- ]
- SNMP_STATUS[TRUE]
- 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]
- EXITCODE[0]
- RUNTIME[0.0367s]
- STDOUT[
- "Magenta Toner"
- ]
- SNMP_STATUS[TRUE]
- 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]
- EXITCODE[0]
- RUNTIME[0.0359s]
- STDOUT[
- -3
- ]
- SNMP_STATUS[TRUE]
- 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]
- EXITCODE[0]
- RUNTIME[0.0368s]
- STDOUT[
- -2
- ]
- SNMP_STATUS[TRUE]
- 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
- 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']
- .
- 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]
- EXITCODE[0]
- RUNTIME[0.0361s]
- STDOUT[
- 3
- ]
- SNMP_STATUS[TRUE]
- 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]
- EXITCODE[0]
- RUNTIME[0.0366s]
- STDOUT[
- "Yellow Toner"
- ]
- SNMP_STATUS[TRUE]
- 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]
- EXITCODE[0]
- RUNTIME[0.0369s]
- STDOUT[
- -3
- ]
- SNMP_STATUS[TRUE]
- 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]
- EXITCODE[0]
- RUNTIME[0.0378s]
- STDOUT[
- -2
- ]
- SNMP_STATUS[TRUE]
- 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
- 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']
- .
- Checking ...
- Array
- (
- [jetdirect] => Array
- (
- [1] => 1
- [4] => 1
- [5] => 1
- )
- )
- SQL[SELECT * FROM `toner` WHERE `device_id` = '21']
- 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]
- EXITCODE[0]
- RUNTIME[0.0389s]
- STDOUT[
- 88363
- ]
- SNMP_STATUS[TRUE]
- Pagecounter
- SQL[SELECT COUNT(*) FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'pagecount_oid']
- 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']
- Module [ toner ] time: 0.7818s
- SQL[UPDATE `devices` set `last_discovered` =NOW(),`type` ='printer',`last_discovered_timetaken` ='0.781' WHERE `device_id` = '21']
- SQL[INSERT INTO `devices_perftimes` (`device_id`,`operation`,`start`,`duration`) VALUES ('21','discover','1421682508.3047','0.78193998336792')]
- Discovered in 0.781 seconds
- SQL[SELECT * FROM `alert_tests`]
- SQL[SELECT * FROM `alert_assoc`]
- SQL[SELECT count(*) FROM `devices` WHERE device_id = '21' AND `hostname` != 'router.cuttingedge']
- SQL[SELECT count(*) FROM `devices` WHERE device_id = '21']
- SQL[SELECT count(*) FROM `devices` WHERE device_id = '21' AND `hostname` != 'autocube.acs']
- SQL[SELECT count(*) FROM `devices` WHERE device_id = '21']
- SQL[SELECT count(*) FROM `devices` WHERE device_id = '21']
- SQL[SELECT * FROM `alert_table` WHERE `device_id` = '21']
- SQL[SELECT * FROM `devices` WHERE device_id = '21']
- SQL[SELECT * FROM `devices` WHERE device_id = '21']
- SQL[SELECT * FROM `devices` WHERE device_id = '21']
- SQL[SELECT * FROM `ports` WHERE device_id = '21' AND `deleted` != '1' AND `ifName` = 'ether01-EFM']
- SQL[SELECT * FROM `ports` WHERE device_id = '21' AND `deleted` != '1' AND `ifName` = 'pppoe-fttc']
- SQL[SELECT * FROM `devices` WHERE `device_id` = '21']
- SQL[INSERT INTO `perf_times` (`type`,`doing`,`start`,`duration`,`devices`) VALUES ('discover','ricohmpc4000.rbs','1421682508.1306','1.044','1')]
- ./discovery.php: ricohmpc4000.rbs - 1 devices discovered in 1.044 secs
- NOTE, $config['snmp']['hide_auth'] sets as TRUE, snmp community and snmp v3 auth hidden from debug output.
- Memory usage: 8MB (peak: 8.25MB)
- 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]
- root@observium:/opt/observium# ./poller.php -d -m toner -h ricohmpc4000.rbs
- DEBUG!
- Observium 0.15.1.6194
- Poller
- Starting polling run:
- SQL[SELECT `device_id` FROM `devices` WHERE `disabled` = 0 AND `hostname` LIKE 'ricohmpc4000.rbs' ORDER BY `device_id` ASC]
- SQL[SELECT * FROM `devices` WHERE `device_id` = '21']
- SQL[SELECT * FROM `devices_attribs` WHERE `device_id` = '21']
- SQL[SELECT * FROM `alert_tests` WHERE 1]
- Cached 5 alert rules.
- 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']
- Array
- (
- [1] => Array
- (
- [alert_test_id] => 1
- [entity_type] => device
- [alert_name] => SNMPDeviceDown
- [alert_message] => SNMP Status
- [conditions] => Array
- (
- [0] => Array
- (
- [value] => snmp
- [condition] => =
- [metric] => device_status_type
- )
- [1] => Array
- (
- [value] => 0
- [condition] => =
- [metric] => device_status
- )
- )
- [and] => 1
- [severity] => crit
- [delay] => 0
- [alerter] => default
- [enable] => 1
- [show_frontpage] => 1
- [suppress_recovery] => 0
- [ignore_until] =>
- )
- [2] => Array
- (
- [alert_test_id] => 2
- [entity_type] => device
- [alert_name] => UpTime
- [alert_message] => Up Time Less Than 10 Mins
- [conditions] => Array
- (
- [0] => Array
- (
- [value] => 600
- [condition] => <
- [metric] => device_uptime
- )
- [1] => Array
- (
- [value] => 0
- [condition] => >
- [metric] => device_uptime
- )
- )
- [and] => 1
- [severity] => crit
- [delay] => 0
- [alerter] => default
- [enable] => 1
- [show_frontpage] => 1
- [suppress_recovery] => 1
- [ignore_until] =>
- )
- [3] => Array
- (
- [alert_test_id] => 3
- [entity_type] => device
- [alert_name] => PingDeviceDown
- [alert_message] => Ping Status
- [conditions] => Array
- (
- [0] => Array
- (
- [value] => ping
- [condition] => =
- [metric] => device_status_type
- )
- [1] => Array
- (
- [value] => 0
- [condition] => =
- [metric] => device_status
- )
- )
- [and] => 1
- [severity] => crit
- [delay] => 0
- [alerter] => default
- [enable] => 1
- [show_frontpage] => 1
- [suppress_recovery] => 0
- [ignore_until] =>
- )
- [4] => Array
- (
- [alert_test_id] => 4
- [entity_type] => port
- [alert_name] => EFMBandwidth
- [alert_message] => EFM Bandwidth Above 5MB
- [conditions] => Array
- (
- [0] => Array
- (
- [value] => 625000
- [condition] => >
- [metric] => ifInOctets_rate
- )
- [1] => Array
- (
- [value] => 625000
- [condition] => >
- [metric] => ifOutOctets_rate
- )
- )
- [and] => 0
- [severity] => crit
- [delay] => 0
- [alerter] => default
- [enable] => 1
- [show_frontpage] => 1
- [suppress_recovery] => 0
- [ignore_until] =>
- )
- [5] => Array
- (
- [alert_test_id] => 5
- [entity_type] => port
- [alert_name] => FTTC-IN-Bandwidth
- [alert_message] => FTTC IN Bandwidth Above 20MB
- [conditions] => Array
- (
- [0] => Array
- (
- [value] => 2500000
- [condition] => >
- [metric] => ifInOctets_rate
- )
- )
- [and] => 1
- [severity] => crit
- [delay] => 0
- [alerter] => default
- [enable] => 1
- [show_frontpage] => 1
- [suppress_recovery] => 0
- [ignore_until] =>
- )
- )
- Array
- (
- [device] => Array
- (
- [21] => Array
- (
- [1] => Array
- (
- [alert_table_id] => 18
- [alert_test_id] => 1
- [device_id] => 21
- [entity_type] => device
- [entity_id] => 21
- [alert_assocs] => 1
- [delay] => 0
- [ignore_until] =>
- [ignore_until_ok] => 0
- [last_checked] => 1421682494
- [last_changed] => 1420802251
- [last_recovered] => 0
- [last_failed] => 0
- [has_alerted] => 0
- [last_message] => Checks OK
- [alert_status] => 1
- [last_alerted] => 0
- [state] => {"metrics":{"device_status_type":"","device_status":"1"}}
- [count] => 0
- [state_entry] => 1
- )
- [2] => Array
- (
- [alert_table_id] => 55
- [alert_test_id] => 2
- [device_id] => 21
- [entity_type] => device
- [entity_id] => 21
- [alert_assocs] => 2
- [delay] => 0
- [ignore_until] =>
- [ignore_until_ok] => 0
- [last_checked] => 1421682494
- [last_changed] => 1420802251
- [last_recovered] => 0
- [last_failed] => 0
- [has_alerted] => 0
- [last_message] => Checks OK
- [alert_status] => 1
- [last_alerted] => 0
- [state] => {"metrics":{"device_uptime":"7883792"},"failed":[{"value":"0","condition":">","metric":"device_uptime"}]}
- [count] => 0
- [state_entry] => 1
- )
- [3] => Array
- (
- [alert_table_id] => 104
- [alert_test_id] => 3
- [device_id] => 21
- [entity_type] => device
- [entity_id] => 21
- [alert_assocs] => 3
- [delay] => 0
- [ignore_until] =>
- [ignore_until_ok] => 0
- [last_checked] => 1421682494
- [last_changed] => 1420802251
- [last_recovered] => 0
- [last_failed] => 0
- [has_alerted] => 0
- [last_message] => Checks OK
- [alert_status] => 1
- [last_alerted] => 0
- [state] => {"metrics":{"device_status_type":"","device_status":"1"}}
- [count] => 0
- [state_entry] => 1
- )
- )
- )
- )
- ricohmpc4000.rbs 21 ricoh (printer)
- 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]
- EXITCODE[0]
- RUNTIME[0.0151s]
- STDOUT[
- sysObjectID.0 = enterprises.367.1.1
- sysUpTime.0 = 788384900
- ]
- SNMP_STATUS[TRUE]
- RRD /opt/observium/rrd/ricohmpc4000.rbs/status.rrd already exists - no need to create.
- RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/status.rrd N:1]
- stdout[OK u:0.00 s:0.00 r:0.05]
- stderr[]]
- RRD /opt/observium/rrd/ricohmpc4000.rbs/ping.rrd already exists - no need to create.
- RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/ping.rrd N:14.9]
- stdout[OK u:0.00 s:0.00 r:0.05]
- stderr[]]
- RRD /opt/observium/rrd/ricohmpc4000.rbs/ping_snmp.rrd already exists - no need to create.
- RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/ping_snmp.rrd N:16.67]
- stdout[OK u:0.00 s:0.00 r:0.05]
- stderr[]]
- SQL[SELECT * FROM `device_graphs` WHERE `device_id` = '21']
- including: includes/polling/system.inc.php
- 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]
- EXITCODE[0]
- RUNTIME[0.0131s]
- STDOUT[
- sysUpTime.0 = 91:5:57:29.00
- sysLocation.0 = M2 2BE [53.480602, -2.241049]
- sysContact.0 =
- sysName.0 = Aficio MP C4000
- ]
- SNMP_STATUS[TRUE]
- 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]
- EXITCODE[0]
- RUNTIME[0.0141s]
- STDOUT[
- RICOH Aficio MP C4000 2.00 / RICOH Network Printer C model / RICOH Network Scanner C model / RICOH Network Facsimile C model
- ]
- SNMP_STATUS[TRUE]
- 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]
- EXITCODE[0]
- RUNTIME[0.0136s]
- STDOUT[
- .1.3.6.1.4.1.367.1.1
- ]
- SNMP_STATUS[TRUE]
- 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]
- EXITCODE[0]
- RUNTIME[0.0117s]
- STDOUT[
- No Such Object available on this agent at this OID
- ]
- SNMP_STATUS[FALSE]
- 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]
- EXITCODE[0]
- RUNTIME[0.0184s]
- STDOUT[
- 91:5:57:29.00
- ]
- SNMP_STATUS[TRUE]
- Using SNMP Agent hrSystemUptime (7883849 seconds)
- RRD /opt/observium/rrd/ricohmpc4000.rbs/uptime.rrd already exists - no need to create.
- RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/uptime.rrd N:7883849]
- stdout[OK u:0.00 s:0.00 r:0.13]
- stderr[]]
- Uptime: 91 days, 5h 57m 29s
- SQL[SELECT `version` FROM `dbSchema`]
- SQL[SELECT * FROM `devices_locations` WHERE `device_id` = '21']
- Module [ system ] time: 0.0824s
- including: includes/polling/os.inc.php
- 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]
- EXITCODE[0]
- RUNTIME[0.0375s]
- STDOUT[
- "Aficio MP C4000"
- ]
- SNMP_STATUS[TRUE]
- 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]
- EXITCODE[0]
- RUNTIME[0.0358s]
- STDOUT[
- "2.00"
- ]
- SNMP_STATUS[TRUE]
- 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]
- EXITCODE[0]
- RUNTIME[0.035s]
- STDOUT[
- "V1293500878"
- ]
- SNMP_STATUS[TRUE]
- Hardware: Aficio MP C4000 Version: 2.00 Features: Serial: V1293500878 Asset:
- Module [ os ] time: 0.1139s
- including: includes/polling/toner.inc.php
- SQL[SELECT * FROM `toner` WHERE `device_id` = '21']
- Checking toner Black Toner...
- 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]
- EXITCODE[0]
- RUNTIME[0.0386s]
- STDOUT[
- -3
- ]
- SNMP_STATUS[TRUE]
- RRD /opt/observium/rrd/ricohmpc4000.rbs/toner-1.rrd already exists - no need to create.
- 1 %
- RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/toner-1.rrd N:1]
- stdout[OK u:0.00 s:0.00 r:0.29]
- stderr[]]
- SQL[UPDATE `toner` set `toner_current` ='1',`toner_capacity` ='100' WHERE `toner_id` = '5']
- Checking alerts
- Array
- (
- [toner_current] => 1
- )
- Checking toner Magenta Toner...
- 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]
- EXITCODE[0]
- RUNTIME[0.0373s]
- STDOUT[
- -3
- ]
- SNMP_STATUS[TRUE]
- RRD /opt/observium/rrd/ricohmpc4000.rbs/toner-4.rrd already exists - no need to create.
- 1 %
- RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/toner-4.rrd N:1]
- stdout[OK u:0.00 s:0.00 r:0.39]
- stderr[]]
- SQL[UPDATE `toner` set `toner_current` ='1',`toner_capacity` ='100' WHERE `toner_id` = '7']
- Checking alerts
- Array
- (
- [toner_current] => 1
- )
- Checking toner Yellow Toner...
- 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]
- EXITCODE[0]
- RUNTIME[0.0362s]
- STDOUT[
- -3
- ]
- SNMP_STATUS[TRUE]
- RRD /opt/observium/rrd/ricohmpc4000.rbs/toner-5.rrd already exists - no need to create.
- 1 %
- RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/toner-5.rrd N:1]
- stdout[OK u:0.00 s:0.00 r:0.45]
- stderr[]]
- SQL[UPDATE `toner` set `toner_current` ='1',`toner_capacity` ='100' WHERE `toner_id` = '8']
- Checking alerts
- Array
- (
- [toner_current] => 1
- )
- SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'pagecount_oid']
- Checking page count...
- 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]
- EXITCODE[0]
- RUNTIME[0.0384s]
- STDOUT[
- 88363
- ]
- SNMP_STATUS[TRUE]
- RRD /opt/observium/rrd/ricohmpc4000.rbs/pagecount.rrd already exists - no need to create.
- SQL[SELECT COUNT(*) FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'pagecounter']
- SQL[UPDATE `devices_attribs` set `attrib_value` ='88363' WHERE device_id='21' and attrib_type='pagecounter']
- RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/pagecount.rrd N:88363]
- stdout[OK u:0.00 s:0.00 r:0.50]
- stderr[]]
- 88363
- SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'imagingdrum_oid']
- SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'imagingdrum_c_oid']
- SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'imagingdrum_m_oid']
- SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'imagingdrum_y_oid']
- SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'imagingdrum_k_oid']
- SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'wastebox_oid']
- Checking Waste Toner Box...
- SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'wastebox_cap_oid']
- CMD[/usr/bin/snmpget -v2c -c *** -Pu -OUqnv -M /opt/observium/mibs 'udp':'ricohmpc4000.rbs':'1995' ]
- EXITCODE[1]
- RUNTIME[0.029s]
- STDOUT[
- ]
- STDERR[
- Missing object name
- USAGE: snmpget [OPTIONS] AGENT OID [OID]...
- Version: 5.4.3
- Web: http://www.net-snmp.org/
- Email: [email protected]
- OPTIONS:
- -h, --help display this help message
- -H display configuration file directives understood
- -v 1|2c|3 specifies SNMP version to use
- -V, --version display package version number
- SNMP Version 1 or 2c specific
- -c COMMUNITY set the community string
- SNMP Version 3 specific
- -a PROTOCOL set authentication protocol (MD5|SHA)
- -A PASSPHRASE set authentication protocol pass phrase
- -e ENGINE-ID set security engine ID (e.g. 800000020109840301)
- -E ENGINE-ID set context engine ID (e.g. 800000020109840301)
- -l LEVEL set security level (noAuthNoPriv|authNoPriv|authPriv)
- -n CONTEXT set context name (e.g. bridge1)
- -u USER-NAME set security name (e.g. bert)
- -x PROTOCOL set privacy protocol (DES|AES)
- -X PASSPHRASE set privacy protocol pass phrase
- -Z BOOTS,TIME set destination engine boots/time
- General communication options
- -r RETRIES set the number of retries
- -t TIMEOUT set the request timeout (in seconds)
- Debugging
- -d dump input/output packets in hexadecimal
- -D TOKEN[,...] turn on debugging output for the specified TOKENs
- (ALL gives extremely verbose debugging output)
- General options
- -m MIB[:...] load given list of MIBs (ALL loads everything)
- -M DIR[:...] look in given list of directories for MIBs
- -P MIBOPTS Toggle various defaults controlling MIB parsing:
- u: disallow the use of underlines in MIB symbols
- c: disallow the use of "--" to terminate comments
- d: save the DESCRIPTIONs of the MIB objects
- e: disable errors when MIB symbols conflict
- w: enable warnings when MIB symbols conflict
- W: enable detailed warnings when MIB symbols conflict
- R: replace MIB symbols from latest module
- -O OUTOPTS Toggle various defaults controlling output display:
- 0: print leading 0 for single-digit hex characters
- a: print all strings in ascii format
- b: do not break OID indexes down
- e: print enums numerically
- E: escape quotes in string indices
- f: print full OIDs on output
- n: print OIDs numerically
- q: quick print for easier parsing
- Q: quick print with equal-signs
- s: print only last symbolic element of OID
- S: print MIB module-id plus last element
- t: print timeticks unparsed as numeric integers
- T: print human-readable text along with hex strings
- u: print OIDs using UCD-style prefix suppression
- U: don't print units
- v: print values only (not OID = value)
- x: print all strings in hex format
- X: extended index format
- -I INOPTS Toggle various defaults controlling input parsing:
- b: do best/regex matching to find a MIB node
- h: don't apply DISPLAY-HINTs
- r: do not check values for range/type legality
- R: do random access to OID labels
- u: top-level OIDs must have '.' prefix (UCD-style)
- s SUFFIX: Append all textual OIDs with SUFFIX before parsing
- S PREFIX: Prepend all textual OIDs with PREFIX before parsing
- -L LOGOPTS Toggle various defaults controlling logging:
- e: log to standard error
- o: log to standard output
- n: don't log at all
- f file: log to the specified file
- s facility: log to syslog (via the specified facility)
- (variants)
- [EON] pri: log to standard error, output or /dev/null for level 'pri' and above
- [EON] p1-p2: log to standard error, output or /dev/null for levels 'p1' to 'p2'
- [FS] pri token: log to file/syslog for level 'pri' and above
- [FS] p1-p2 token: log to file/syslog for levels 'p1' to 'p2'
- -C APPOPTS Set various application specific behaviours:
- f: do not fix errors and retry the request
- ]
- SNMP_STATUS[FALSE]
- 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]
- EXITCODE[0]
- RUNTIME[0.0365s]
- STDOUT[
- -3
- ]
- SNMP_STATUS[TRUE]
- RRD /opt/observium/rrd/ricohmpc4000.rbs/wastebox.rrd already exists - no need to create.
- SQL[SELECT COUNT(*) FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'wastebox']
- SQL[UPDATE `devices_attribs` set `attrib_value` ='1' WHERE device_id='21' and attrib_type='wastebox']
- RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/wastebox.rrd N:1]
- stdout[OK u:0.00 s:0.00 r:0.57]
- stderr[]]
- 1%
- SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'fuser_oid']
- SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '21' AND `attrib_type` = 'transferroller_oid']
- Module [ toner ] time: 0.3291s
- Graphs [checked]: ping, ping_snmp, uptime, toner
- Polled in 0.5774 seconds
- Updating ricohmpc4000.rbs - Array
- (
- [uptime] => 7883849
- [last_polled] => Array
- (
- [0] => 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";}}
- )
- 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']
- UPDATED!
- Checking alerts
- Array
- (
- [device_status] => 1
- [device_status_type] =>
- [device_ping] => 14.9
- [device_snmp] => 16.67
- [device_uptime] => 7883828
- [device_duration_poll] => 3.56
- )
- Checking alert 1 associated by 1
- Testing: device_status_type = snmp (value: ) OK Testing: device_status = 0 (value: 1) OK Checks OK.
- 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']
- RRD /opt/observium/rrd/ricohmpc4000.rbs/alert-18.rrd already exists - no need to create.
- RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/alert-18.rrd N:1:1]
- stdout[OK u:0.00 s:0.00 r:0.58]
- stderr[]]
- Checking alert 2 associated by 2
- Testing: device_uptime < 600 (value: 7883828) OK Testing: device_uptime > 0 (value: 7883828) FAIL Checks OK.
- 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']
- RRD /opt/observium/rrd/ricohmpc4000.rbs/alert-55.rrd already exists - no need to create.
- RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/alert-55.rrd N:1:1]
- stdout[OK u:0.00 s:0.00 r:0.59]
- stderr[]]
- Checking alert 3 associated by 3
- Testing: device_status_type = ping (value: ) OK Testing: device_status = 0 (value: 1) OK Checks OK.
- 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']
- RRD /opt/observium/rrd/ricohmpc4000.rbs/alert-104.rrd already exists - no need to create.
- RRD[cmd[update /opt/observium/rrd/ricohmpc4000.rbs/alert-104.rrd N:1:1]
- stdout[OK u:0.00 s:0.00 r:0.59]
- stderr[]]
- SQL[INSERT INTO `perf_times` (`type`,`doing`,`start`,`duration`,`devices`) VALUES ('poll','ricohmpc4000.rbs','1421682511.7214','0.600','1')]
- ./poller.php: ricohmpc4000.rbs - 1 devices polled in 0.600 secs
- NOTE, $config['snmp']['hide_auth'] sets as TRUE, snmp community and snmp v3 auth hidden from debug output.
- Memory usage: 8MB (peak: 8.25MB)
- MySQL: Cell[3/0s] Row[12/0s] Rows[6/0s] Column[0/0s] Update[9/0.09s] Insert[1/0.01s] Delete[0/0s]
- root@observium:/opt/observium#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement