wiki:PluginPortrait/snmp__pages

snmppages

Monitor the number of pages printed

LanguagePerl
RequirementsPerl Net::SNMP
Supported platformsMost SNMP enabled printers
Written byRune Nordbøe Skillingstad - rune.skillingstad@…

Configuration

No special munin configuration needed. Supports general SNMP configuration.

  • timeout - defaults to 30 seconds
  • host - hostname to get values from (defaults to filename style)
  • port - defaults to port 161
  • community - default to public

Copy snmp_ _pages to /usr/share/munin/plugins and run munin-node-configure-snmp myprinter.domain.tld (cut and paste the suggested ln commands you like)

# munin-node-configure-snmp myprinter.domain·tld
ln -s /usr/share/munin/plugins/snmp__pages /etc/munin/plugins/snmp_myprinter.domain.tld_pages
[snmp*pages]
   env.timeout 30
   env.host myprinter.domain.tld
   env.port 161
   env.community public

Collated printer graph

This is an example on how to make a graph of multiple printers:

Place something like this in your /etc/munin/munin.conf

[Printere;Pages]
    update no
    pages.graph_title Pages for all printers
    pages.graph_total Total
    pages.graph_vlabel Printed pages pr minute
    pages.graph_order \
      printer1=printer1.domain.tld:snmp_printer1_domain_tld_pages.pages \
      printer2=printer2.domain.tld:snmp_printer2_domain_tld_pages.pages
    pages.printer1.draw LINE2
    pages.printer1.label Printer1
    pages.printer1.cdef printer1,60,*
    pages.printer1.info Printer in office 1
    pages.printer2.draw LINE2
    pages.printer2.label Printer2
    pages.printer2.cdef printer2,60,*
    pages.printer2.info Printer in office 2
Last modified at 2016-10-16T01:27:50+02:00 Last modified on 2016-10-16T01:27:50+02:00

Attachments (2)

Download all attachments as: .zip