monit func and mongodb