Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_print_spooler
1.2
2016-03-01
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios XI
40657
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
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$
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)
Be the first to review this listing!