add logging of serverStatus errors

The current code does not check if db.serverStatus() returns an error (e.g. insufficient privileges). If that is the case, no message is logged anywhere, so user has no clue why metrics are not being posted. I propose to log a warning with the error message.
Merge pull request #1065 from igroenewold/patch-1

add logging of serverStatus errors