Skip to content

Conversation

@M1ch43LN
Copy link

Changed and improved the functionality (see comment in code).

M1ch43LN added 3 commits July 10, 2020 09:52
* Added check types "MODEL" and "SERIAL" for parameter "-t"
* Added parameter "-n" for using SNMPGETNEXT instead of SNMPGET
* Changed french variable names to english
* Printer is tested by a single ping before firing the snmp commands. Just to ensure the device is accessable. If the printer is not responding (turned off) the state defined in $STATE_NOTRESPONDING is returned. By default this is "OK" to avoid warnings for devices that are not running 24x7.
* Changed the way consumables are interpreted. Now the REMAINING value is returned. Seemed more intuitive to me.
* Used OIDs can be overwritten by parameters -X (OID_1), -Y (OID_2) and -Z (OID_3) if the default OIDs in this plugin are not suitable for your specific device. Use -X for check types PAGE, MODEL and SERIAL. Use -X, -Y and -Z for check type CONSUMABLE. OID_1 replaces OID_NAME, OID_2 replaces OID_TOTAL, OID_3 replaces OID_STATUS.
Added new parameters -n, -X, -Y and -Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant