Make sure nagios is installed before trying to setup htpasswd using the nagios user.