mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 10:58:42 +00:00
e00eba327d
* Re-implement Printer as a class based module * Rename toner table * wip * wip * Rename to printersupplies * Fixes * Rename * wip * wip
505 lines
20 KiB
JSON
505 lines
20 KiB
JSON
{
|
|
"os": {
|
|
"discovery": {
|
|
"devices": [
|
|
{
|
|
"sysName": "<private>",
|
|
"sysObjectID": ".1.3.6.1.4.1.18334.1.1.1.2.1.10008.1.1",
|
|
"sysDescr": "Konica Minolta bizhub 25e",
|
|
"sysContact": "<private>",
|
|
"version": null,
|
|
"hardware": null,
|
|
"features": null,
|
|
"os": "konica",
|
|
"type": "printer",
|
|
"serial": null,
|
|
"icon": "konica.svg",
|
|
"location": "<private>"
|
|
}
|
|
]
|
|
},
|
|
"poller": "matches discovery"
|
|
},
|
|
"ports": {
|
|
"discovery": {
|
|
"ports": [
|
|
{
|
|
"port_descr_type": null,
|
|
"port_descr_descr": null,
|
|
"port_descr_circuit": null,
|
|
"port_descr_speed": null,
|
|
"port_descr_notes": null,
|
|
"ifDescr": "DC2350",
|
|
"ifName": "DC2350",
|
|
"portName": null,
|
|
"ifIndex": 1,
|
|
"ifSpeed": null,
|
|
"ifSpeed_prev": null,
|
|
"ifConnectorPresent": null,
|
|
"ifPromiscuousMode": null,
|
|
"ifHighSpeed": null,
|
|
"ifHighSpeed_prev": null,
|
|
"ifOperStatus": "up",
|
|
"ifOperStatus_prev": null,
|
|
"ifAdminStatus": null,
|
|
"ifAdminStatus_prev": null,
|
|
"ifDuplex": null,
|
|
"ifMtu": null,
|
|
"ifType": "ethernetCsmacd",
|
|
"ifAlias": "DC2350",
|
|
"ifPhysAddress": null,
|
|
"ifHardType": null,
|
|
"ifLastChange": 0,
|
|
"ifVlan": "",
|
|
"ifTrunk": null,
|
|
"counter_in": null,
|
|
"counter_out": null,
|
|
"ignore": 0,
|
|
"disabled": 0,
|
|
"detailed": 0,
|
|
"deleted": 0,
|
|
"pagpOperationMode": null,
|
|
"pagpPortState": null,
|
|
"pagpPartnerDeviceId": null,
|
|
"pagpPartnerLearnMethod": null,
|
|
"pagpPartnerIfIndex": null,
|
|
"pagpPartnerGroupIfIndex": null,
|
|
"pagpPartnerDeviceName": null,
|
|
"pagpEthcOperationMode": null,
|
|
"pagpDeviceId": null,
|
|
"pagpGroupIfIndex": null,
|
|
"ifInUcastPkts": null,
|
|
"ifInUcastPkts_prev": null,
|
|
"ifInUcastPkts_delta": null,
|
|
"ifInUcastPkts_rate": null,
|
|
"ifOutUcastPkts": null,
|
|
"ifOutUcastPkts_prev": null,
|
|
"ifOutUcastPkts_delta": null,
|
|
"ifOutUcastPkts_rate": null,
|
|
"ifInErrors": null,
|
|
"ifInErrors_prev": null,
|
|
"ifInErrors_delta": null,
|
|
"ifInErrors_rate": null,
|
|
"ifOutErrors": null,
|
|
"ifOutErrors_prev": null,
|
|
"ifOutErrors_delta": null,
|
|
"ifOutErrors_rate": null,
|
|
"ifInOctets": null,
|
|
"ifInOctets_prev": null,
|
|
"ifInOctets_delta": null,
|
|
"ifInOctets_rate": null,
|
|
"ifOutOctets": null,
|
|
"ifOutOctets_prev": null,
|
|
"ifOutOctets_delta": null,
|
|
"ifOutOctets_rate": null,
|
|
"poll_prev": null,
|
|
"ifInNUcastPkts": null,
|
|
"ifInNUcastPkts_prev": null,
|
|
"ifInNUcastPkts_delta": null,
|
|
"ifInNUcastPkts_rate": null,
|
|
"ifOutNUcastPkts": null,
|
|
"ifOutNUcastPkts_prev": null,
|
|
"ifOutNUcastPkts_delta": null,
|
|
"ifOutNUcastPkts_rate": null,
|
|
"ifInDiscards": null,
|
|
"ifInDiscards_prev": null,
|
|
"ifInDiscards_delta": null,
|
|
"ifInDiscards_rate": null,
|
|
"ifOutDiscards": null,
|
|
"ifOutDiscards_prev": null,
|
|
"ifOutDiscards_delta": null,
|
|
"ifOutDiscards_rate": null,
|
|
"ifInUnknownProtos": null,
|
|
"ifInUnknownProtos_prev": null,
|
|
"ifInUnknownProtos_delta": null,
|
|
"ifInUnknownProtos_rate": null,
|
|
"ifInBroadcastPkts": null,
|
|
"ifInBroadcastPkts_prev": null,
|
|
"ifInBroadcastPkts_delta": null,
|
|
"ifInBroadcastPkts_rate": null,
|
|
"ifOutBroadcastPkts": null,
|
|
"ifOutBroadcastPkts_prev": null,
|
|
"ifOutBroadcastPkts_delta": null,
|
|
"ifOutBroadcastPkts_rate": null,
|
|
"ifInMulticastPkts": null,
|
|
"ifInMulticastPkts_prev": null,
|
|
"ifInMulticastPkts_delta": null,
|
|
"ifInMulticastPkts_rate": null,
|
|
"ifOutMulticastPkts": null,
|
|
"ifOutMulticastPkts_prev": null,
|
|
"ifOutMulticastPkts_delta": null,
|
|
"ifOutMulticastPkts_rate": null
|
|
}
|
|
]
|
|
},
|
|
"poller": {
|
|
"ports": [
|
|
{
|
|
"port_descr_type": null,
|
|
"port_descr_descr": null,
|
|
"port_descr_circuit": null,
|
|
"port_descr_speed": null,
|
|
"port_descr_notes": null,
|
|
"ifDescr": "DC2350",
|
|
"ifName": "DC2350",
|
|
"portName": null,
|
|
"ifIndex": 1,
|
|
"ifSpeed": 1,
|
|
"ifSpeed_prev": null,
|
|
"ifConnectorPresent": null,
|
|
"ifPromiscuousMode": null,
|
|
"ifHighSpeed": null,
|
|
"ifHighSpeed_prev": null,
|
|
"ifOperStatus": "up",
|
|
"ifOperStatus_prev": "up",
|
|
"ifAdminStatus": "up",
|
|
"ifAdminStatus_prev": null,
|
|
"ifDuplex": null,
|
|
"ifMtu": 1438,
|
|
"ifType": "ethernetCsmacd",
|
|
"ifAlias": "DC2350",
|
|
"ifPhysAddress": "005081418b3e",
|
|
"ifHardType": null,
|
|
"ifLastChange": 0,
|
|
"ifVlan": "",
|
|
"ifTrunk": null,
|
|
"counter_in": null,
|
|
"counter_out": null,
|
|
"ignore": 0,
|
|
"disabled": 0,
|
|
"detailed": 0,
|
|
"deleted": 0,
|
|
"pagpOperationMode": null,
|
|
"pagpPortState": null,
|
|
"pagpPartnerDeviceId": null,
|
|
"pagpPartnerLearnMethod": null,
|
|
"pagpPartnerIfIndex": null,
|
|
"pagpPartnerGroupIfIndex": null,
|
|
"pagpPartnerDeviceName": null,
|
|
"pagpEthcOperationMode": null,
|
|
"pagpDeviceId": null,
|
|
"pagpGroupIfIndex": null,
|
|
"ifInUcastPkts": 0,
|
|
"ifInUcastPkts_prev": 0,
|
|
"ifInUcastPkts_delta": null,
|
|
"ifInUcastPkts_rate": null,
|
|
"ifOutUcastPkts": 0,
|
|
"ifOutUcastPkts_prev": 0,
|
|
"ifOutUcastPkts_delta": null,
|
|
"ifOutUcastPkts_rate": null,
|
|
"ifInErrors": 0,
|
|
"ifInErrors_prev": 0,
|
|
"ifInErrors_delta": null,
|
|
"ifInErrors_rate": null,
|
|
"ifOutErrors": 0,
|
|
"ifOutErrors_prev": 0,
|
|
"ifOutErrors_delta": null,
|
|
"ifOutErrors_rate": null,
|
|
"ifInOctets": 0,
|
|
"ifInOctets_prev": 0,
|
|
"ifInOctets_delta": null,
|
|
"ifInOctets_rate": null,
|
|
"ifOutOctets": 0,
|
|
"ifOutOctets_prev": 0,
|
|
"ifOutOctets_delta": null,
|
|
"ifOutOctets_rate": null,
|
|
"poll_prev": null,
|
|
"ifInNUcastPkts": 0,
|
|
"ifInNUcastPkts_prev": 0,
|
|
"ifInNUcastPkts_delta": null,
|
|
"ifInNUcastPkts_rate": null,
|
|
"ifOutNUcastPkts": 0,
|
|
"ifOutNUcastPkts_prev": 0,
|
|
"ifOutNUcastPkts_delta": null,
|
|
"ifOutNUcastPkts_rate": null,
|
|
"ifInDiscards": 0,
|
|
"ifInDiscards_prev": 0,
|
|
"ifInDiscards_delta": null,
|
|
"ifInDiscards_rate": null,
|
|
"ifOutDiscards": 0,
|
|
"ifOutDiscards_prev": 0,
|
|
"ifOutDiscards_delta": null,
|
|
"ifOutDiscards_rate": null,
|
|
"ifInUnknownProtos": 0,
|
|
"ifInUnknownProtos_prev": 0,
|
|
"ifInUnknownProtos_delta": null,
|
|
"ifInUnknownProtos_rate": null,
|
|
"ifInBroadcastPkts": 0,
|
|
"ifInBroadcastPkts_prev": 0,
|
|
"ifInBroadcastPkts_delta": null,
|
|
"ifInBroadcastPkts_rate": null,
|
|
"ifOutBroadcastPkts": 0,
|
|
"ifOutBroadcastPkts_prev": 0,
|
|
"ifOutBroadcastPkts_delta": null,
|
|
"ifOutBroadcastPkts_rate": null,
|
|
"ifInMulticastPkts": 0,
|
|
"ifInMulticastPkts_prev": 0,
|
|
"ifInMulticastPkts_delta": null,
|
|
"ifInMulticastPkts_rate": null,
|
|
"ifOutMulticastPkts": 0,
|
|
"ifOutMulticastPkts_prev": 0,
|
|
"ifOutMulticastPkts_delta": null,
|
|
"ifOutMulticastPkts_rate": null
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"mempools": {
|
|
"discovery": {
|
|
"mempools": [
|
|
{
|
|
"mempool_index": "1",
|
|
"entPhysicalIndex": null,
|
|
"mempool_type": "hrstorage",
|
|
"mempool_class": "system",
|
|
"mempool_precision": 1048576,
|
|
"mempool_descr": "RAM",
|
|
"mempool_perc": 100,
|
|
"mempool_perc_oid": null,
|
|
"mempool_used": 536870912,
|
|
"mempool_used_oid": ".1.3.6.1.2.1.25.2.3.1.6.1",
|
|
"mempool_free": 0,
|
|
"mempool_free_oid": null,
|
|
"mempool_total": 536870912,
|
|
"mempool_total_oid": null,
|
|
"mempool_largestfree": null,
|
|
"mempool_lowestfree": null,
|
|
"mempool_deleted": 0,
|
|
"mempool_perc_warn": 90
|
|
}
|
|
]
|
|
},
|
|
"poller": "matches discovery"
|
|
},
|
|
"sensors": {
|
|
"discovery": {
|
|
"sensors": [
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.2.1.25.3.2.1.5.1",
|
|
"sensor_index": "0",
|
|
"sensor_type": "hrDeviceStatus",
|
|
"sensor_descr": "Printer Device Status",
|
|
"group": null,
|
|
"sensor_divisor": 1,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 2,
|
|
"sensor_limit": null,
|
|
"sensor_limit_warn": null,
|
|
"sensor_limit_low": null,
|
|
"sensor_limit_low_warn": null,
|
|
"sensor_alert": 1,
|
|
"sensor_custom": "No",
|
|
"entPhysicalIndex": "0",
|
|
"entPhysicalIndex_measured": null,
|
|
"sensor_prev": null,
|
|
"user_func": null,
|
|
"state_name": "hrDeviceStatus"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.2.1.25.3.5.1.2.1",
|
|
"sensor_index": "0",
|
|
"sensor_type": "hrPrinterDetectedErrorState",
|
|
"sensor_descr": "Printer Error Status",
|
|
"group": null,
|
|
"sensor_divisor": 1,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 0,
|
|
"sensor_limit": null,
|
|
"sensor_limit_warn": null,
|
|
"sensor_limit_low": null,
|
|
"sensor_limit_low_warn": null,
|
|
"sensor_alert": 1,
|
|
"sensor_custom": "No",
|
|
"entPhysicalIndex": "0",
|
|
"entPhysicalIndex_measured": null,
|
|
"sensor_prev": null,
|
|
"user_func": null,
|
|
"state_name": "hrPrinterDetectedErrorState"
|
|
}
|
|
],
|
|
"state_indexes": [
|
|
{
|
|
"state_name": "hrDeviceStatus",
|
|
"state_descr": "Unknown",
|
|
"state_draw_graph": 0,
|
|
"state_value": 1,
|
|
"state_generic_value": 3
|
|
},
|
|
{
|
|
"state_name": "hrDeviceStatus",
|
|
"state_descr": "Running",
|
|
"state_draw_graph": 0,
|
|
"state_value": 2,
|
|
"state_generic_value": 0
|
|
},
|
|
{
|
|
"state_name": "hrDeviceStatus",
|
|
"state_descr": "Warning",
|
|
"state_draw_graph": 0,
|
|
"state_value": 3,
|
|
"state_generic_value": 1
|
|
},
|
|
{
|
|
"state_name": "hrDeviceStatus",
|
|
"state_descr": "Testing",
|
|
"state_draw_graph": 0,
|
|
"state_value": 4,
|
|
"state_generic_value": 0
|
|
},
|
|
{
|
|
"state_name": "hrDeviceStatus",
|
|
"state_descr": "Down",
|
|
"state_draw_graph": 0,
|
|
"state_value": 5,
|
|
"state_generic_value": 2
|
|
},
|
|
{
|
|
"state_name": "hrPrinterDetectedErrorState",
|
|
"state_descr": "Normal",
|
|
"state_draw_graph": 0,
|
|
"state_value": 0,
|
|
"state_generic_value": 0
|
|
},
|
|
{
|
|
"state_name": "hrPrinterDetectedErrorState",
|
|
"state_descr": "Paper Low",
|
|
"state_draw_graph": 0,
|
|
"state_value": 1,
|
|
"state_generic_value": 1
|
|
},
|
|
{
|
|
"state_name": "hrPrinterDetectedErrorState",
|
|
"state_descr": "No Paper",
|
|
"state_draw_graph": 0,
|
|
"state_value": 2,
|
|
"state_generic_value": 2
|
|
},
|
|
{
|
|
"state_name": "hrPrinterDetectedErrorState",
|
|
"state_descr": "Toner Low",
|
|
"state_draw_graph": 0,
|
|
"state_value": 3,
|
|
"state_generic_value": 1
|
|
},
|
|
{
|
|
"state_name": "hrPrinterDetectedErrorState",
|
|
"state_descr": "No Toner",
|
|
"state_draw_graph": 0,
|
|
"state_value": 4,
|
|
"state_generic_value": 2
|
|
},
|
|
{
|
|
"state_name": "hrPrinterDetectedErrorState",
|
|
"state_descr": "Door Open",
|
|
"state_draw_graph": 0,
|
|
"state_value": 5,
|
|
"state_generic_value": 2
|
|
},
|
|
{
|
|
"state_name": "hrPrinterDetectedErrorState",
|
|
"state_descr": "Jammed",
|
|
"state_draw_graph": 0,
|
|
"state_value": 6,
|
|
"state_generic_value": 2
|
|
},
|
|
{
|
|
"state_name": "hrPrinterDetectedErrorState",
|
|
"state_descr": "Offline",
|
|
"state_draw_graph": 0,
|
|
"state_value": 7,
|
|
"state_generic_value": 2
|
|
},
|
|
{
|
|
"state_name": "hrPrinterDetectedErrorState",
|
|
"state_descr": "Service Needed",
|
|
"state_draw_graph": 0,
|
|
"state_value": 8,
|
|
"state_generic_value": 2
|
|
},
|
|
{
|
|
"state_name": "hrPrinterDetectedErrorState",
|
|
"state_descr": "Warning, multiple issues",
|
|
"state_draw_graph": 0,
|
|
"state_value": 9,
|
|
"state_generic_value": 1
|
|
},
|
|
{
|
|
"state_name": "hrPrinterDetectedErrorState",
|
|
"state_descr": "Critical, multiple issues",
|
|
"state_draw_graph": 0,
|
|
"state_value": 10,
|
|
"state_generic_value": 2
|
|
}
|
|
]
|
|
},
|
|
"poller": "matches discovery"
|
|
},
|
|
"printer-supplies": {
|
|
"discovery": {
|
|
"printer_supplies": [
|
|
{
|
|
"supply_index": 1,
|
|
"supply_type": "toner",
|
|
"supply_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.1",
|
|
"supply_descr": "Black Toner",
|
|
"supply_capacity": 100,
|
|
"supply_current": 8,
|
|
"supply_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.1"
|
|
},
|
|
{
|
|
"supply_index": 2,
|
|
"supply_type": "opc",
|
|
"supply_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.2",
|
|
"supply_descr": "Drum",
|
|
"supply_capacity": 100,
|
|
"supply_current": 99,
|
|
"supply_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.2"
|
|
},
|
|
{
|
|
"supply_index": 3,
|
|
"supply_type": "fuser",
|
|
"supply_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.3",
|
|
"supply_descr": "Fuser",
|
|
"supply_capacity": 100,
|
|
"supply_current": 58,
|
|
"supply_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.3"
|
|
},
|
|
{
|
|
"supply_index": 4,
|
|
"supply_type": "transferUnit",
|
|
"supply_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.4",
|
|
"supply_descr": "Transfer Roller",
|
|
"supply_capacity": 100,
|
|
"supply_current": 58,
|
|
"supply_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.4"
|
|
},
|
|
{
|
|
"supply_index": 1,
|
|
"supply_type": "input",
|
|
"supply_oid": ".1.3.6.1.2.1.43.8.2.1.10.1.1",
|
|
"supply_descr": "1st Cassette",
|
|
"supply_capacity": 500,
|
|
"supply_current": 50,
|
|
"supply_capacity_oid": ".1.3.6.1.2.1.43.8.2.1.9.1.1"
|
|
},
|
|
{
|
|
"supply_index": 2,
|
|
"supply_type": "input",
|
|
"supply_oid": ".1.3.6.1.2.1.43.8.2.1.10.1.2",
|
|
"supply_descr": "Bypass",
|
|
"supply_capacity": 100,
|
|
"supply_current": 0,
|
|
"supply_capacity_oid": ".1.3.6.1.2.1.43.8.2.1.9.1.2"
|
|
}
|
|
]
|
|
},
|
|
"poller": "matches discovery"
|
|
}
|
|
}
|