multi_snmp_querier - Munin plugin to query several SNMP hosts
This plugin is meant to be called from Munin. You should at least set the 'hosts' environment variable from Munin's configuration (i.e. /etc/munin/munin.conf) to specify which hosts and how to query.
This plugin expects to receive the following environment variables:
Which SNMP OID should we query on; it defaults to 188.8.131.52.184.108.40.206.220.127.116.11.1 (total printed pages - of course, it only makes sense to query a printer on this ;-) ).
Other known and useful OIDs for printers are 18.104.22.168.22.214.171.124.126.96.36.199.1 (total number of pages printed with this toner cartridge), 188.8.131.52.184.108.40.206.220.127.116.11.1 (total projected capacity of this toner cartridge - Note that for many makers, the literal '-2' is returning, meaning more or less "I don't know"), You might also be interested in 18.104.22.168.22.214.171.124.126.96.36.199.1 (toner type this printer uses), although as it is a constant string and not indicative of any kind of value, there's no use in putting it into Munin (at least, not via this plugin).
Appropriate labels will be given when Munin requests for configuration on the above mentioned OIDs - Of course, other OIDs will get far more generic labels.
Comma-separated list of hosts to send SNMP queries to. You can specify SNMP port and community to each of the hosts by listing them as community@host:port - Community defaults to public, port defaults to 161. The following is a valid hosts declaration:
hosts='192.168.0.15, 192.168.0.18:162, firstname.lastname@example.org'
It will query host 192.168.0.15 on port 161 with the 'private' community, host 192.168.0.18 on port 162 with the 'private' community and host 192.168.0.20 on port 161 with the 'public' community.
Add a mechanism to specify the labels for unknown OIDs
Gunnar Wolf <email@example.com>
Copyright 2008 Gunnar Wolf, Instituto de Investigaciones Economicas, UNAM. This plugin is Free Software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991, or any later version (at your choice).
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.