mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added support for Canon printer model TM TX series (#12667)
* Update canonprinter.yaml ADD support printer model TM TX series * Create canonprinter_tm.snmprec upload test file * Update canonprinter_tm.snmprec * Create canonprinter_tm.json Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
This commit is contained in:
@@ -11,9 +11,12 @@ discovery:
|
||||
- Canon MF
|
||||
- Canon iR
|
||||
- Canon iP
|
||||
- Canon TM
|
||||
- Canon TX
|
||||
-
|
||||
sysObjectID:
|
||||
- .1.3.6.1.4.1.1602.4.2
|
||||
- .1.3.6.1.4.1.1602.4.3
|
||||
- .1.3.6.1.4.1.1602.4.7
|
||||
discovery_modules:
|
||||
printer-supplies: true
|
||||
|
845
tests/data/canonprinter_tm.json
Normal file
845
tests/data/canonprinter_tm.json
Normal file
@@ -0,0 +1,845 @@
|
||||
{
|
||||
"os": {
|
||||
"discovery": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "<private>",
|
||||
"sysObjectID": ".1.3.6.1.4.1.1602.4.3",
|
||||
"sysDescr": "Canon TM-5300 /P",
|
||||
"sysContact": "<private>",
|
||||
"version": "01.21",
|
||||
"hardware": "TM-5300",
|
||||
"features": null,
|
||||
"os": "canonprinter",
|
||||
"type": "printer",
|
||||
"serial": null,
|
||||
"icon": "canon.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": "Canon NB-20GB 1.0",
|
||||
"ifName": "Canon NB-20GB 1.0",
|
||||
"portName": null,
|
||||
"ifIndex": 1,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": null,
|
||||
"ifPromiscuousMode": null,
|
||||
"ifHighSpeed": null,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": null,
|
||||
"ifOperStatus_prev": null,
|
||||
"ifAdminStatus": null,
|
||||
"ifAdminStatus_prev": null,
|
||||
"ifDuplex": null,
|
||||
"ifMtu": null,
|
||||
"ifType": "ethernetCsmacd",
|
||||
"ifAlias": "Canon NB-20GB 1.0",
|
||||
"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
|
||||
},
|
||||
{
|
||||
"port_descr_type": null,
|
||||
"port_descr_descr": null,
|
||||
"port_descr_circuit": null,
|
||||
"port_descr_speed": null,
|
||||
"port_descr_notes": null,
|
||||
"ifDescr": "Canon NB-20GB 1.0",
|
||||
"ifName": "Canon NB-20GB 1.0",
|
||||
"portName": null,
|
||||
"ifIndex": 2,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": null,
|
||||
"ifPromiscuousMode": null,
|
||||
"ifHighSpeed": null,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": null,
|
||||
"ifOperStatus_prev": null,
|
||||
"ifAdminStatus": null,
|
||||
"ifAdminStatus_prev": null,
|
||||
"ifDuplex": null,
|
||||
"ifMtu": null,
|
||||
"ifType": "ethernetCsmacd",
|
||||
"ifAlias": "Canon NB-20GB 1.0",
|
||||
"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": "Canon NB-20GB 1.0",
|
||||
"ifName": "Canon NB-20GB 1.0",
|
||||
"portName": null,
|
||||
"ifIndex": 1,
|
||||
"ifSpeed": 1000000000,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": null,
|
||||
"ifPromiscuousMode": null,
|
||||
"ifHighSpeed": null,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": null,
|
||||
"ifOperStatus_prev": null,
|
||||
"ifAdminStatus": null,
|
||||
"ifAdminStatus_prev": null,
|
||||
"ifDuplex": null,
|
||||
"ifMtu": null,
|
||||
"ifType": "ethernetCsmacd",
|
||||
"ifAlias": "Canon NB-20GB 1.0",
|
||||
"ifPhysAddress": "74bfc0da4a3d",
|
||||
"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
|
||||
},
|
||||
{
|
||||
"port_descr_type": null,
|
||||
"port_descr_descr": null,
|
||||
"port_descr_circuit": null,
|
||||
"port_descr_speed": null,
|
||||
"port_descr_notes": null,
|
||||
"ifDescr": "Canon NB-20GB 1.0",
|
||||
"ifName": "Canon NB-20GB 1.0",
|
||||
"portName": null,
|
||||
"ifIndex": 2,
|
||||
"ifSpeed": 0,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": null,
|
||||
"ifPromiscuousMode": null,
|
||||
"ifHighSpeed": null,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": null,
|
||||
"ifOperStatus_prev": null,
|
||||
"ifAdminStatus": null,
|
||||
"ifAdminStatus_prev": null,
|
||||
"ifDuplex": null,
|
||||
"ifMtu": null,
|
||||
"ifType": "ethernetCsmacd",
|
||||
"ifAlias": "Canon NB-20GB 1.0",
|
||||
"ifPhysAddress": "7438b719794d",
|
||||
"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
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"sensors": {
|
||||
"discovery": {
|
||||
"sensors": [
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "count",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.2.1.43.10.2.1.4.1.1",
|
||||
"sensor_index": "prtMarkerLifeCount",
|
||||
"sensor_type": "canonprinter",
|
||||
"sensor_descr": "Life time sheets",
|
||||
"group": null,
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 21588,
|
||||
"sensor_limit": null,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": null,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_prev": null,
|
||||
"user_func": null,
|
||||
"state_name": null
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "count",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.2.1.43.10.2.1.5.1.1",
|
||||
"sensor_index": "prtMarkerPowerOnCount",
|
||||
"sensor_type": "canonprinter",
|
||||
"sensor_descr": "Sheets since powered on",
|
||||
"group": null,
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 54,
|
||||
"sensor_limit": null,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": null,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_prev": null,
|
||||
"user_func": null,
|
||||
"state_name": null
|
||||
},
|
||||
{
|
||||
"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"
|
||||
},
|
||||
"storage": {
|
||||
"discovery": {
|
||||
"storage": [
|
||||
{
|
||||
"storage_mib": "hrstorage",
|
||||
"storage_index": "1",
|
||||
"storage_type": null,
|
||||
"storage_descr": "FIRMROM",
|
||||
"storage_size": 33554432,
|
||||
"storage_units": 1,
|
||||
"storage_used": 0,
|
||||
"storage_free": 0,
|
||||
"storage_perc": 0,
|
||||
"storage_perc_warn": 60,
|
||||
"storage_deleted": 0
|
||||
},
|
||||
{
|
||||
"storage_mib": "hrstorage",
|
||||
"storage_index": "2",
|
||||
"storage_type": null,
|
||||
"storage_descr": "RAM",
|
||||
"storage_size": 268435456,
|
||||
"storage_units": 1,
|
||||
"storage_used": 0,
|
||||
"storage_free": 0,
|
||||
"storage_perc": 0,
|
||||
"storage_perc_warn": 60,
|
||||
"storage_deleted": 0
|
||||
},
|
||||
{
|
||||
"storage_mib": "hrstorage",
|
||||
"storage_index": "3",
|
||||
"storage_type": null,
|
||||
"storage_descr": "NVRAM",
|
||||
"storage_size": 65536,
|
||||
"storage_units": 1,
|
||||
"storage_used": 0,
|
||||
"storage_free": 0,
|
||||
"storage_perc": 0,
|
||||
"storage_perc_warn": 60,
|
||||
"storage_deleted": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": {
|
||||
"storage": [
|
||||
{
|
||||
"storage_mib": "hrstorage",
|
||||
"storage_index": "1",
|
||||
"storage_type": null,
|
||||
"storage_descr": "FIRMROM",
|
||||
"storage_size": 33554432,
|
||||
"storage_units": 1,
|
||||
"storage_used": 0,
|
||||
"storage_free": 33554432,
|
||||
"storage_perc": 0,
|
||||
"storage_perc_warn": 60,
|
||||
"storage_deleted": 0
|
||||
},
|
||||
{
|
||||
"storage_mib": "hrstorage",
|
||||
"storage_index": "2",
|
||||
"storage_type": null,
|
||||
"storage_descr": "RAM",
|
||||
"storage_size": 268435456,
|
||||
"storage_units": 1,
|
||||
"storage_used": 0,
|
||||
"storage_free": 268435456,
|
||||
"storage_perc": 0,
|
||||
"storage_perc_warn": 60,
|
||||
"storage_deleted": 0
|
||||
},
|
||||
{
|
||||
"storage_mib": "hrstorage",
|
||||
"storage_index": "3",
|
||||
"storage_type": null,
|
||||
"storage_descr": "NVRAM",
|
||||
"storage_size": 65536,
|
||||
"storage_units": 1,
|
||||
"storage_used": 0,
|
||||
"storage_free": 65536,
|
||||
"storage_perc": 0,
|
||||
"storage_perc_warn": 60,
|
||||
"storage_deleted": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"printer-supplies": {
|
||||
"discovery": {
|
||||
"printer_supplies": [
|
||||
{
|
||||
"supply_index": 1,
|
||||
"supply_type": "inkCartridge",
|
||||
"supply_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.1",
|
||||
"supply_descr": "CANON Matte Black Ink Tank",
|
||||
"supply_capacity": 3000,
|
||||
"supply_current": 80,
|
||||
"supply_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.1"
|
||||
},
|
||||
{
|
||||
"supply_index": 2,
|
||||
"supply_type": "inkCartridge",
|
||||
"supply_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.2",
|
||||
"supply_descr": "CANON Black Ink Tank",
|
||||
"supply_capacity": 3000,
|
||||
"supply_current": 100,
|
||||
"supply_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.2"
|
||||
},
|
||||
{
|
||||
"supply_index": 3,
|
||||
"supply_type": "inkCartridge",
|
||||
"supply_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.3",
|
||||
"supply_descr": "CANON Yellow Ink Tank",
|
||||
"supply_capacity": 3000,
|
||||
"supply_current": 60,
|
||||
"supply_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.3"
|
||||
},
|
||||
{
|
||||
"supply_index": 4,
|
||||
"supply_type": "inkCartridge",
|
||||
"supply_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.4",
|
||||
"supply_descr": "CANON Magenta Ink Tank",
|
||||
"supply_capacity": 3000,
|
||||
"supply_current": 80,
|
||||
"supply_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.4"
|
||||
},
|
||||
{
|
||||
"supply_index": 5,
|
||||
"supply_type": "inkCartridge",
|
||||
"supply_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.5",
|
||||
"supply_descr": "CANON Cyan Ink Tank",
|
||||
"supply_capacity": 3000,
|
||||
"supply_current": 70,
|
||||
"supply_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.5"
|
||||
},
|
||||
{
|
||||
"supply_index": 6,
|
||||
"supply_type": "wasteInk",
|
||||
"supply_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.6",
|
||||
"supply_descr": "CANON Waste Ink Tank",
|
||||
"supply_capacity": 6700,
|
||||
"supply_current": 90,
|
||||
"supply_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.6"
|
||||
},
|
||||
{
|
||||
"supply_index": 1,
|
||||
"supply_type": "input",
|
||||
"supply_oid": ".1.3.6.1.2.1.43.8.2.1.10.1.1",
|
||||
"supply_descr": "Multi-Purpose Tray",
|
||||
"supply_capacity": 1,
|
||||
"supply_current": 0,
|
||||
"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": "Roll Unit 1",
|
||||
"supply_capacity": 200000000,
|
||||
"supply_current": 50,
|
||||
"supply_capacity_oid": ".1.3.6.1.2.1.43.8.2.1.9.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
}
|
||||
}
|
79
tests/snmpsim/canonprinter_tm.snmprec
Normal file
79
tests/snmpsim/canonprinter_tm.snmprec
Normal file
@@ -0,0 +1,79 @@
|
||||
1.3.6.1.2.1.1.1.0|4|Canon TM-5300 /P
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.1602.4.3
|
||||
1.3.6.1.2.1.1.3.0|67|17669600
|
||||
1.3.6.1.2.1.1.4.0|4|<private>
|
||||
1.3.6.1.2.1.1.5.0|4|<private>
|
||||
1.3.6.1.2.1.1.6.0|4|<private>
|
||||
1.3.6.1.2.1.2.2.1.1.1|2|1
|
||||
1.3.6.1.2.1.2.2.1.1.2|2|2
|
||||
1.3.6.1.2.1.2.2.1.2.1|4|Canon NB-20GB 1.0
|
||||
1.3.6.1.2.1.2.2.1.2.2|4|Canon NB-20GB 1.0
|
||||
1.3.6.1.2.1.2.2.1.3.1|2|6
|
||||
1.3.6.1.2.1.2.2.1.3.2|2|6
|
||||
1.3.6.1.2.1.2.2.1.5.1|66|1000000000
|
||||
1.3.6.1.2.1.2.2.1.5.2|66|0
|
||||
1.3.6.1.2.1.2.2.1.6.1|4x|74BFC0DA4A3D
|
||||
1.3.6.1.2.1.2.2.1.6.2|4x|7438B719794D
|
||||
1.3.6.1.2.1.4.20.1.1.192.168.0.55|64|192.168.0.55
|
||||
1.3.6.1.2.1.11.1.0|65|52824
|
||||
1.3.6.1.2.1.11.2.0|65|52790
|
||||
1.3.6.1.2.1.11.4.0|65|0
|
||||
1.3.6.1.2.1.11.5.0|65|0
|
||||
1.3.6.1.2.1.11.15.0|65|23974
|
||||
1.3.6.1.2.1.11.16.0|65|28821
|
||||
1.3.6.1.2.1.11.17.0|65|0
|
||||
1.3.6.1.2.1.11.29.0|65|0
|
||||
1.3.6.1.2.1.25.2.2.0|2|2097152
|
||||
1.3.6.1.2.1.25.2.3.1.1.1|2|1
|
||||
1.3.6.1.2.1.25.2.3.1.1.2|2|2
|
||||
1.3.6.1.2.1.25.2.3.1.1.3|2|3
|
||||
1.3.6.1.2.1.25.2.3.1.3.1|4|FIRMROM
|
||||
1.3.6.1.2.1.25.2.3.1.3.2|4|RAM
|
||||
1.3.6.1.2.1.25.2.3.1.3.3|4|NVRAM
|
||||
1.3.6.1.2.1.25.2.3.1.4.1|2|1
|
||||
1.3.6.1.2.1.25.2.3.1.4.2|2|1
|
||||
1.3.6.1.2.1.25.2.3.1.4.3|2|1
|
||||
1.3.6.1.2.1.25.2.3.1.5.1|2|33554432
|
||||
1.3.6.1.2.1.25.2.3.1.5.2|2|268435456
|
||||
1.3.6.1.2.1.25.2.3.1.5.3|2|65536
|
||||
1.3.6.1.2.1.25.3.2.1.1.1|2|1
|
||||
1.3.6.1.2.1.25.3.2.1.2.1|6|1.3.6.1.2.1.25.3.1.5
|
||||
1.3.6.1.2.1.25.3.2.1.3.1|4|Canon TM-5300
|
||||
1.3.6.1.2.1.25.3.2.1.4.1|6|1.3.6.1.4.1.1602.4.3
|
||||
1.3.6.1.2.1.25.3.2.1.5.1|2|2
|
||||
1.3.6.1.2.1.25.3.5.1.2.1|4x|00
|
||||
1.3.6.1.2.1.43.8.2.1.9.1.1|2|1
|
||||
1.3.6.1.2.1.43.8.2.1.9.1.2|2|200000000
|
||||
1.3.6.1.2.1.43.8.2.1.10.1.1|2|0
|
||||
1.3.6.1.2.1.43.8.2.1.10.1.2|2|-3
|
||||
1.3.6.1.2.1.43.8.2.1.13.1.1|4|Multi-Purpose Tray
|
||||
1.3.6.1.2.1.43.8.2.1.13.1.2|4|Roll Unit 1
|
||||
1.3.6.1.2.1.43.10.2.1.3.1.1|2|8
|
||||
1.3.6.1.2.1.43.10.2.1.4.1.1|65|21588
|
||||
1.3.6.1.2.1.43.10.2.1.5.1.1|65|54
|
||||
1.3.6.1.2.1.43.11.1.1.5.1.1|2|6
|
||||
1.3.6.1.2.1.43.11.1.1.5.1.2|2|6
|
||||
1.3.6.1.2.1.43.11.1.1.5.1.3|2|6
|
||||
1.3.6.1.2.1.43.11.1.1.5.1.4|2|6
|
||||
1.3.6.1.2.1.43.11.1.1.5.1.5|2|6
|
||||
1.3.6.1.2.1.43.11.1.1.5.1.6|2|8
|
||||
1.3.6.1.2.1.43.11.1.1.6.1.1|4|CANON Matte Black Ink Tank
|
||||
1.3.6.1.2.1.43.11.1.1.6.1.2|4|CANON Black Ink Tank
|
||||
1.3.6.1.2.1.43.11.1.1.6.1.3|4|CANON Yellow Ink Tank
|
||||
1.3.6.1.2.1.43.11.1.1.6.1.4|4|CANON Magenta Ink Tank
|
||||
1.3.6.1.2.1.43.11.1.1.6.1.5|4|CANON Cyan Ink Tank
|
||||
1.3.6.1.2.1.43.11.1.1.6.1.6|4|CANON Waste Ink Tank
|
||||
1.3.6.1.2.1.43.11.1.1.8.1.1|2|3000
|
||||
1.3.6.1.2.1.43.11.1.1.8.1.2|2|3000
|
||||
1.3.6.1.2.1.43.11.1.1.8.1.3|2|3000
|
||||
1.3.6.1.2.1.43.11.1.1.8.1.4|2|3000
|
||||
1.3.6.1.2.1.43.11.1.1.8.1.5|2|3000
|
||||
1.3.6.1.2.1.43.11.1.1.8.1.6|2|6700
|
||||
1.3.6.1.2.1.43.11.1.1.9.1.1|2|2400
|
||||
1.3.6.1.2.1.43.11.1.1.9.1.2|2|3000
|
||||
1.3.6.1.2.1.43.11.1.1.9.1.3|2|1800
|
||||
1.3.6.1.2.1.43.11.1.1.9.1.4|2|2400
|
||||
1.3.6.1.2.1.43.11.1.1.9.1.5|2|2100
|
||||
1.3.6.1.2.1.43.11.1.1.9.1.6|2|6030
|
||||
1.3.6.1.4.1.1602.1.1.1.1.0|4|TM-5300
|
||||
1.3.6.1.4.1.1602.1.1.1.4.0|4|01.21
|
Reference in New Issue
Block a user