Hello, even if your printers doesn't support SNMP, there is still a (tricky)
way to monitor printers, it is by WMI.
I mean that you can monitor the printers by the WMI of the windows print server
they are related with. to return the list of printers connected to a windows
server, the WQL request is "select * from Win32_printer" and you'll get
instances of the class Win32_printer which have attributes like the
availability, the errorstate, the number of pages printed, etc... (see the MSDN
website for a complete though messy documentation about the WMI classes).
You can take as example the zenwin source in Products/Zenwin, as zenoss monitor
the winServices by this way ("select * from Win32_services"). The problem is
you have to extend the model with a new class printer and it is actually quite
messy to do so(see ticket #1841 and thread "poweredge Zenpack" in zenoss-dev
for guidelines), I am currently at this stage. If you're interested, once I
make this work (it may not be too soon, though...), i'll make a Zenpack for
it. I hope these tips will help you.
------------------------
Florent Gibert
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=9177#9177
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users