Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
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
Owner
Oliver Skibbe
Website
http://oskibbe.blogspot.com
Download URL
https://github.com/riskersen/Monitoring/blob/master/Printer/check_print_spooler.vbs
Compatible With
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$
You must be logged in to submit a review.
To:
From: