Besides of course the Spooler Service, you should also monitor the Windows Event Log. <br>I've experienced a lot of driver issues on an old Windows print server which temporarily caused the affected printer(s) to appear as 'offline'. Such problems appeared in the event log as Warnings with the message content something about the driver. That was on a Windows Server 2003, but I think such driver problems are still logged to the Event Log.<br>
<br><div class="gmail_quote">On Thu, Dec 1, 2011 at 3:10 PM, Jim Avery <span dir="ltr"><<a href="mailto:jim@jimavery.me.uk">jim@jimavery.me.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 1 December 2011 12:39, James Osbourn <<a href="mailto:james.osbourn@citrix.com">james.osbourn@citrix.com</a>> wrote:<br>
> I have a Windows 7 server acting as a print server and I would like to check the status of these printers and make sure that they are still online etc.<br>
><br>
> I cannot seem to find a way of checking printers shared from a Windows machine, does anyone have any suggestions or references that I could use.<br>
><br>
> Thanks<br>
><br>
> James<br>
<br>
<br>
</div>I query the windows performance counter for number of print jobs<br>
spooling.  If a printer breaks then usually this counter starts<br>
ramping up quite rapidly as more and more print jobs get stuck in the<br>
queue.<br>
<br>
For example, the [external alias] section of your nsc.ini (assuming<br>
you use NSClient++), you can have:-<br>
<br>
alias_CheckCounter-PrintQJobs=CheckCounter "Counter:jobs=\Print<br>
Queue(_Total)\Jobs" ShowAll MaxWarn=250 MaxCrit=500<br>
<br>
Then your service definition would look something like this:-<br>
<br>
define service {<br>
        host_name                       printserver1,printserver2<br>
        service_description             PrintQJobs<br>
        use                             srv-pnp,generic-service<br>
        check_command                   check_nrpe!-c PrintQJobs<br>
        max_check_attempts              6<br>
        check_interval                  15<br>
        retry_interval                  5<br>
        contact_groups                  notify-admins<br>
        notes                           Records the number of Active<br>
Jobs on a Print Server<br>
        register                        1<br>
}<br>
<br>
And the command definition I use is just a generic one for any nrpe<br>
check like so:-<br>
<br>
define command {^M<br>
        command_name                    check_nrpe<br>
        command_line                    $USER1$/check_nrpe -H<br>
$HOSTADDRESS$ -u $ARG1$<br>
        register                        1<br>
}<br>
<br>
Our servers aren't quite as recent as Windows 7, but I guess the<br>
counter would still be the same.<br>
<br>
I hope that helps.<br>
<font color="#888888"><br>
Jim<br>
</font><div><div></div><div class="h5"><br>
------------------------------------------------------------------------------<br>
All the data continuously generated in your IT infrastructure<br>
contains a definitive record of customers, application performance,<br>
security threats, fraudulent activity, and more. Splunk takes this<br>
data and makes sense of it. IT sense. And common sense.<br>
<a href="http://p.sf.net/sfu/splunk-novd2d" target="_blank">http://p.sf.net/sfu/splunk-novd2d</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</div></div></blockquote></div><br>