[Nagiosplug-help] How to pass parameters to Check_wins.pl
Pulyankote, Gopinath
Gopinath_Pulyankote at affymetrix.com
Thu Oct 17 11:49:03 CEST 2002
Hi,
How do I pass multiple CONTROLLERS parameter ( -C $ARG2$) with the
check_wins.pl plug in?
When I add more than one in the check_commad line, it fails with the
following error. I am able to run them with just one at a time
10-17-2002 11:18:06] SERVICE ALERT: msdc00;WINS
Service;CRITICAL;HARD;3;Failed. WINS "msdc00" failed to resolve
"MSDC01,MSDC00", the domain controller(s) of "MYDOMAIN". Got "name_query
failed to find name MSDC01,MSDC03#20"
Also I noticed that from the command line it just checks the first value &
ignores all others.
We have multiple domains, hence don't want to change the MYDCS values from
the default.
Thanks in advance.
Here's my config files:
Services.cfg:-
-----------------------
define service {
host_name msdc00,msdc01
service_description WINS Service
check_command check_wins!MYDOMAIN!MSDC01,MSDC00
use generic-service
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
check_period 24x7
notification_interval 240
notification_period 24x7
notification_options c,r
contact_groups nt-admins
}
----------------------
checkcommands.cfg
---------------------
# 'check_wins.pl' command definition
define command{
command_name check_wins
command_line $USER1$/check_wins.pl -W $HOSTADDRESS$ -D $ARG1$ -C
$ARG2$
}
---------------------------------
More information about the Help
mailing list