monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error when starting monit


From: Callum Macdonald
Subject: Re: error when starting monit
Date: Fri, 05 Oct 2012 11:17:39 +0200

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 "address@hidden" password "readmylips"
>     using tlsv1
> 
> 
> ############## Mail Alert Format
> set mail-format { from: address@hidden subject: monit alert -- $EVENT
> $SERVICE message: $EVENT Service $SERVICE Date: $DATE Action: $ACTION
> Host: $HOST
> Description: $DESCRIPTION Sent from $HOST
> }
> 
> 
> ############## Alert Recipient
> set alert address@hidden
> 
> 
> ############## 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]