Home Directory Plugins Hardware Printers check_print_spooler

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_print_spooler

Current Version
1.2
Last Release Date
2016-03-01
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
Owner
Hits
40130
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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)
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$