Possible fix for CRITICAL SMB anon access

If you’re using Server 2008R2, it appears that it doesn’t like check_smb using $HOSTADDRESS$. Use $HOSTNAME$ instead, and it should work.

http://blogs.cae.tntech.edu/mwr/2010/06/17/nagios-check_smb-and-windows-server-2008r2/