This is the error message when you call `monit start`, the answer to your question is in the message. The syntax is `monit start all` or `monit start servicename`. You cannot start monit with `monit start`.
RTM http://mmonit.com/monit/documentation/monit.html On Fri, 2012-10-05 at 15:19 +0800, Charles Pino wrote: > monit: please specify the configured service name or 'all' after start > > > how do i fix that? > > > --------------------------------------------------------------------------------------------- > > > cat /etc/monitrc > ############## Mail Server Setup > set mailserver smtp.gmail.com port 587 > username "[email protected]" password "readmylips" > using tlsv1 > > > ############## Mail Alert Format > set mail-format { from: monit@$HOST subject: monit alert -- $EVENT > $SERVICE message: $EVENT Service $SERVICE Date: $DATE Action: $ACTION > Host: $HOST > Description: $DESCRIPTION Sent from $HOST > } > > > ############## Alert Recipient > set alert [email protected] > > > ############## Web Server Setup > set httpd port 2812 and > allow admin:monit # require user 'admin' with password 'monit' > allow @monit # allow users of group 'monit' to connect (rw) > allow @users readonly # allow users of group 'users' to connect > readonly > > > > > ############## Log File Name and Location > set logfile /var/log/monit.log > > > ############## Monitoring Parameters > set daemon 60 with start delay 240 > > > > > > > check filesystem rootfs with path / > if space usage > 80% then alert > > > check process freeswitch with > pidfile /usr/local/freeswitch/run/freeswitch.pid > start program = "/usr/local/freeswitch/bin/freeswitch -nc" > stop program = "/usr/local/freeswitch/bin/freeswitch -stop" > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
