при вводе
/usr/lib/nagios/plugins/check_nt -H 192.168.1.86 -p 12489 -s 12345 -v USEDDISKSPACE -l c -w 80 -c 90
Получаю ответ
c:\ - total: 127,38 Gb - used: 30,57 Gb (24%) - free 96,80 Gb (76%) | 'c:\ Used Space'=30,57Gb;101,90;114,64;0.00;127,38
Я так понимаю отрабатывает нормально.
Пользователь решил продолжить мысль 25 Сентября 2013, 11:21:26:
Косяк оказался в /etc/nagios-plugins/config/nt.cfg
не так
# If you are confused about this command definition, cause you was
# reading other suggestions, please have a look into
# /usr/share/doc/nagios-plugins/README.Debian
# 'check_nt' command definition
define command {
command_name check_nt
command_line /usr/lib/nagios/plugins/check_nt -H '$HOSTADDRESS$' -p 12489 -s 12345 -v '$ARG1$' '$ARG2$' '$ARG3$' '$ARG4$'
}
# 'check_nscp' command definition
define command {
command_name check_nscp
command_line /usr/lib/nagios/plugins/check_nt -H '$HOSTADDRESS$' -p 12489 -v '$ARG1$'
а так
# If you are confused about this command definition, cause you was
# reading other suggestions, please have a look into
# /usr/share/doc/nagios-plugins/README.Debian
# 'check_nt' command definition
define command {
command_name check_nt
command_line /usr/lib/nagios/plugins/check_nt -H $HOSTADDRESS$ -p 12489 -s 12345 -v $ARG1$ $ARG2$
}
# 'check_nscp' command definition
define command {
command_name check_nscp
command_line /usr/lib/nagios/plugins/check_nt -H $HOSTADDRESS$ -p 12489 -s 12345 -v $ARG1$ $ARG2$