Hari Sekhon wrote: > I have some awful printers/print server at work. It is shared out via a > Windows 2000 workstation to all other printers on the network. Is it > possible to watch for the availability of the printers via the print server? > > This would be nice. It's a generic windows print sharing service so > should be quite standard. On another windows workstation it shows in the > Printers folder when the printers are unavailable. > > Thanks
(I must state that I am pretty new to Nagios, and there certainly is smarter ways to solve this - this is a simple way to check the printer status :) I would believe that the print server reads the printers status from the printer via SNMP (?). You will by this example be able to monitor the printers directly - not via the the print server as you asked. One simple way to do this is using check_snmp to check the printers hrDeviceStatus. In this query it checks for the return of two statuses Running (2) and Warning (3). This states are considered OK to Nagios. Warning is normally issued if the printer nags for a refill of toner (replacement not necessary yet) or for some printers when they need to change the waste tray. 10.10.10.10 is the ip of the printer. check_snmp -H 10.10.10.10 -C public -o hrDeviceStatus.1 -r "2|3" $USER1$/check_snmp -H $HOSTADDRESS$ -l STATUS -C public -o $ARG1$ -r $ARG2$ It's not necessary but I also ping the printers - it makes it easier for me to determine quickly if printer is shut off for some reason. Just my 2 cents - hope it helped :) If someone have a good hint on how to monitor replacement of toners on printers (mostly Canon an HP) I would be very happy - Is this printer specific? Do I have to check for each instance (one for black, cyan, magneta and yellow etc.) on each printer with different OIDs :O ? Thanks. Regards, Frode E. Nyboe ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
