I'm tryng to configure a smb-share monitoring using nagios-plugins.
I use many of this check commands and they work fine.
But this time I must check an _hide_ windows share, such as \\myhost
\fax$
# 'check_share' command definition
define command{
command_name check_share
command_line /data/nagios-plugins/libexec/check_disk_smb -H
$ARG1$ -s $ARG2$ -u $ARG3$ -p $ARG4$ -W $ARG5$ -w 99 -c 100
}
when i launch command manually, it works fine:
# /data/nagios-plugins/libexec/check_disk_smb -H myhost -s fax$ -u
myuser -p mypwd -W mydomain -w 99 -c 100
Domain=[mydomain] OS=[Windows Server 2003 3790 Service Pack 2]
Server=[Windows Server 2003 5.2]
Disk ok - 26.74G (38%) free on \\myhost\fax$
but if i configure the check on services configuration file
check_share!myhostl!fax$!myuser!mypwd!mydomain
the result is "Invalid share name \\sfaxcl\fax"
i tried in many ways, like
check_share!myhostl!fax\$!myuser!mypwd!mydomain
check_share!myhostl!'fax$'!myuser!mypwd!mydomain
check_share!myhostl!fax'$'!myuser!mypwd!mydomain
but result is always quite the same.
any suggestion to escape $?
really thank you!
Manuela