Node.js Ubuntu and Monit -
i'm working on getting node server upstart , monit instead of using cron job run script check on things. i've built admin dashboard server uses node os module things os.loadavg() , os.totalmem(), etc...
the problem is, when monit running, os.loadavg() returns [0, 0, 0]. has else encountered problem? monit create lock or not allow node read property?
thanks in advance help!
monit script
check process flinch pidfile "/var/run/flinch.pid" start program = "/sbin/start flinch" stop program = "/sbin/stop flinch" if loadavg (1min) > 4 alert if loadavg (5min) > 2 alert if memory usage > 0% alert
to give question closure, removed monit system check , wrote custom bash script checks process , runs on during cron job every minute. monit seems put lock on system stats when in use.
Comments
Post a Comment