I am setting up an icinga server for monitoring printer status via SNMP (toner levels, errors, that kind of thing). All of the printers are accessible via a shared windows print server (Printer is added to client machines via \SERVER\Printer_Share). While I am able to query the printers by IP directly via SNMP that tells me nothing about what their name. Is it possible to query the Windows print server from Linux to produce an output similar to:
Shared Printer 1 -> IP_1 Shared Printer 2 -> IP_2 Shared Printer 3 -> IP_3 Shared Printer 4 -> IP_4
With this info I can then write a script to create icinga config files. There are hundreds of printers so I am not doing this manually. I'm not asking anyone to write a script for me but rather point me in the right direction.