()
| 697 | Monit.init(); |
| 698 | |
| 699 | function launchMonitor() { |
| 700 | that.Client.executeRemote('getMonitorData', {}, function(err, list) { |
| 701 | if (err) { |
| 702 | console.error('Error retrieving process list: ' + err); |
| 703 | that.exitCli(conf.ERROR_EXIT); |
| 704 | } |
| 705 | |
| 706 | Monit.refresh(list); |
| 707 | |
| 708 | setTimeout(function() { |
| 709 | launchMonitor(); |
| 710 | }, 400); |
| 711 | }); |
| 712 | } |
| 713 | |
| 714 | launchMonitor(); |
| 715 | }; |