Printers

check_print_spooler

Description:

This plugin checks print spooler on window servers for failed jobs via VBS and WMI and kills job or return printer name with failed jobs. (Set killjob Flag to False)

Current Version

1.2

Last Release Date

2016-03-01

Compatible With

  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI

Project Notes
This plugin should be located in $NSCLIENT_HOME/scripts (your nsclient path) called with nrpe via NSclient++ and supports Hostname as Argument (NSclient should be run with a domain user, to support spooler checking over multiple hosts!). To make it clear: [NAGIOS] -> check_nrpe -> [HOP HOST with NSCLIENT] -> check_print_spooler -> [PRINT SERVER (this might be the hop host itself)] Sample commands.cfg: # Argument 1 should be your hop windows host, your service must stick to host / hostgroup which you want to check define command { command_name check_windows_print_spooler command_line $USER1$/check_nrpe -H $ARG1$ -c check_print_spooler -a $HOSTADDRESS$ } Or as a "local" check define command { command_name check_windows_print_spooler command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_print_spooler -a "." } Nsclient++ Configuration (pre 0.4) [modules] ; Script to check external scripts and/or internal aliases. CheckExternalScripts.dll [External Script] ;# COMMAND ARGUMENT PROCESSING ; This option determines whether or not the NRPE daemon will allow clients to specify arguments to commands that are executed. allow_arguments=1 [External Scripts] check_print_spooler=cscript.exe //T:30 //NoLogo scriptscheck_print_spooler.vbs $ARG1$ $ARG2$
Reviews (0) Add a Review
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
0 (0)
Favorites
0
Views
40,668