Using check_smb_share from the Exchange.
I tested from the command line:
Code: Select all
libexec]$ ./check_smb_share -H aus05nptpdfsr01.prod.****.com -s content -u "prod\svc_*********" -p "YmYU%gFv3zXj;@"
OK SMB Sharename: content Disk Content Share
Code: Select all
$USER1$/check_smb_share -H $HOSTADDRESS$ -s $ARG1$ -u "$ARG2$" -p "$ARG3$"Testing here works good (notice that the CCM is escaping out the whack and semicolon:
Code: Select all
COMMAND: /usr/local/nagios/libexec/check_smb_share -H AUS05NPTPDFSR01.prod.****.com -s content -u prod\\svc_******** -p YmYU%gFv3zXj\;@
OUTPUT: OK SMB Sharename: content Disk Content ShareCode: Select all
CRITICAL SMB Sharename: content WARNING: The "idmap uid" option is deprecatedIn the main ui, if I go to "Reconfigure this service" I show:
Code: Select all
check_smb_share!content!prod\******!YmYU%gFv3zXj;@!!!!!I've read through the wiki on problems with service checks and the PDF on Managing Plugins. I seem to be following the book, can't understand why the check doesn't work past the CCM/command line...