crontab, , , /etc/cron.hourly, crontab , , ,
/etc/cron.hourly monitor.sh, script
chmod +x /etc/cron.hourly/monitor.sh
script , mongoscript.js:
use yourdb
db.my_docs.count()
script -
#!/bin/bash
mongo mongoscript.js > output.js
curl http://countersrv.com/ID -d value=@output.js