Difference between revisions of "Monitor Printer status via SNMP"
Jump to navigation
Jump to search
(No difference)
|
Latest revision as of 16:06, 29 December 2010
this is all you need for basic printer monitoring
- login to web interface of printer and set "snmp read only comunitiy" to public or someting else you like
- then ensure that snmp is working from nagios host
snmpwalk -v1 -c public printer_name_or_ip host.hrDevice.hrDeviceTable.hrDeviceEntry.hrDeviceDescr.1
- on nagios host
vi /etc/nagios-plugins/config/custom.cfg
---
define command{
command_name check_snmp_printer
command_line /usr/lib/nagios/plugins/check_snmp_printer '$HOSTADDRESS$' '$ARG1$' '$ARG2$' '$ARG3$'
}
---
vi /etc/nagios3/conf.d/printers.cfg
---
define host {
host_name moses
alias Test Printer
address 192.168.1.141
use generic-host
}
define service{
use generic-service
host_name moses
service_description Printer Model
check_command check_snmp_printer!public!MODEL
}
define service{
use generic-service
host_name moses
service_description Printer Status
check_command check_snmp_printer!public!MESSAGES
}
---
- download and install check_snmp_printer from
- http://exchange.nagios.org/directory/Plugins/Hardware/Printers/check_snmp_printer/details
- to /usr/lib/nagios/plugins/check_snmp_printer
- and make it executable
/etc/init.d/nagios3 restart