Problem with the check_snmp_printer

I am New to Icinga, after adding the hosts i installed check_snmp_printer plugin from the community to use it as a service: check_snmp_printer :: Icinga Exchange
i got an error which is this:
Plugin Output
Only use one of messages|model|consum|trays|pagecount|firmware options
/usr/lib/nagios/plugins/check_snmp_printer v2.0.1 (monitoring-plugins 2.3.2)
The Monitoring Plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

Check a printer through SNMP.

check_snmp_printer -H host [-C snmp_community] [-v snmp_version] [-t timeout]
check_snmp_printer --version
check_snmp_printer --help

Required Arguments:
-H, --host=HOST
The name or address of the host running SNMP.
Print the messages of the printer
Prints the model of the printer
Prints the number of pages printed
Checks trays for paper status.
Checks consumables for status.
Checks current firmware revision and date of printer.

  • Icinga 2 version : r2.14.2-1
  • Operating System and version: ubuntu 23
  • Webserver: apache2
    PHP versions: 8.1

Your executed command is missing the required option what you actually want to check. Messages, Model, etc…
Besides that… “-r 3” seems not to be a valid option.

can you please guide me on how to do it exactly? this is the first plugin i am deploying, i checked some decomentations and played around a bit, but sadly i didn’t succeed to make it works.

It seems you are working with director? First you need to define the command for check_snmp_printer. Put all your arguments into “Arguments” (like argument name “-C”, value “public” or “-H” “$host.address$”, “–consum” “empty value” ) and all variables that you want to change in the service into “Fields”. Then you can define the Service or the template for your check.

I don’t know where that command line comes from exactly, to help you with debugging it.

Thanks So much that solved my problem.