Guides‎ > ‎Common Checks‎ > ‎

Printers

Printer Queue - Jobs In The Queue

Check the number of jobs in the "Microsoft XPS Document Writer" Printer Queue. Warning alert at 5 jobs and critical alert at 15 jobs.

NSClient++ 0.3.9 & 0.4.1
No additional configuration is required.
Command:
check_nrpe -H win2008r2-01 -c CheckCounter -a 'Counter=\Print Queue(Microsoft XPS Document Writer)\Jobs' MaxWarn=5 MaxCrit=15 ShowAll

Output:
OK: \Print Queue(Microsoft XPS Document Writer)\Jobs: 0|'\Print Queue(Microsoft XPS Document Writer)\Jobs'=0;5;15

You can also change the output to something more friendly, to do this, you simply add the label Counter<:here>= (before the equal sign, starting with a column). Example:

Command:
check_nrpe -H win2008r2-01 -c CheckCounter -a 'Counter:XPS Document Writer=\Print Queue(Microsoft XPS Document Writer)\Jobs' MaxWarn=5 MaxCrit=15 ShowAll

Output:
OK: XPS Document Writer: 0|'XPS Document Writer'=0;5;15