mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-03 18:49:29 -05:00
Fix some problems regarding the way check_disk_smb passes command line arguments to smbclient(1). | It runs: | | $res = qx/$smbclient "\/\/$host\/$share" $pass -W $workgroup \ | -U $user $smbclientoptions -I $address -c ls/; | | [...] | | The documentation says that if the password is not passed, it | defaults to "". That is not true above, as $pass expands to | nothing which leaves no argument at all (instead of an empty | argument) so is different from providing with an empty password | or with the -N option. | | Also, if the password starts with "-", you're in trouble, that's | why -U $user%$pass may be prefered. | | Also, the doc says that if $user is not provided, then it | defaults to "guest" but the problem is that if it is provided | but empty, it is changed to "guest" as well, which prevents us | from querying hosts that don't do user authentication. [ http://bugs.debian.org/478942 ] (Fixed by Stephane Chazelas, forwarded by Jan Wagner.) |
||
|---|---|---|
| .. | ||
| t | ||
| check_breeze.pl | ||
| check_disk_smb.pl | ||
| check_file_age.pl | ||
| check_flexlm.pl | ||
| check_ifoperstatus.pl | ||
| check_ifstatus.pl | ||
| check_ircd.pl | ||
| check_log.sh | ||
| check_mailq.pl | ||
| check_mssql.pl | ||
| check_netdns.pl | ||
| check_ntp.pl | ||
| check_oracle.sh | ||
| check_rpc.pl | ||
| check_sensors.sh | ||
| check_wave.pl | ||
| Makefile.am | ||
| subst.in | ||
| utils.pm.in | ||
| utils.sh.in | ||