Hi Martin,
              In my version I did this

## Monit has an embedded web server which can be used to view status of
## services monitored and manage services from a web interface. See the
## Monit Wiki if you want to enable SSL for the web server.
#
 set httpd port 2812 and
     use address localhost  # only accept connection from localhost
     allow localhost        # allow localhost to connect to the server 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
#
must I do any other configuration for port 2812 ? Cause I get this error
Cannot create socket to [localhost]:2812 -- Connection refused
In my case my centos is bare minimal with got gnome nothing ?



On Mon, Nov 9, 2015 at 11:39 PM, Martin Pala <mart...@tildeslash.com> wrote:

> You need to add it to the monit configuration file ... it is part of
> default configuration file, snip:
>
> --8<--
> ## Monit has an embedded HTTP interface which can be used to view status of
> ## services monitored and manage services from a web interface. The HTTP
> ## interface is also required if you want to issue Monit commands from the
> ## command line, such as 'monit status' or 'monit restart service' The
> reason
> ## for this is that the Monit client uses the HTTP interface to send these
> ## commands to a running Monit daemon. See the Monit Wiki if you want to
> ## enable SSL for the HTTP interface.
> #
> set httpd port 2812 and
>     use address localhost  # only accept connection from localhost
>     allow localhost        # allow localhost to connect to the server and
>     allow admin:monit      # require user 'admin' with password 'monit'
> --8<--
>
> See monit manual for details.
>
>
> > On 09 Nov 2015, at 16:30, frwa onto <frwao...@gmail.com> wrote:
> >
> > Hi Martin
> >              I got this error now when I did this monit start service1 ?
> Where to add the 'set httpd statement"?
> >
> > Action start not possible - monit http interface is not enabled, please
> add the 'set httpd' statement ? Should I start using monit start command or
> can I use the existing method to start it? Which the correct one?
> >
> > On Mon, Nov 9, 2015 at 11:27 PM, Martin Pala <mart...@tildeslash.com>
> wrote:
> > Hi,
> >
> > correct syntax is:
> >
> >         monit start service1
> >
> > Regards,
> > Martin
> >
> >
> > > On 09 Nov 2015, at 16:23, frwa onto <frwao...@gmail.com> wrote:
> > >
> > > Hi,
> > >     I have set below in my monit.conf.
> > >
> > > check process service1 with pidfile /var/run/wrapper.service1.pid
> > >               start program = "/etc/rc.d/init.d/service1 start" with
> timeout 60 seconds
> > >               stop program = "/etc/rc.d/init.d/service1 stop"
> > >
> > > I tried to start the service in this manner
> > > monit service1 start
> > > Invalid argument -- service1 (-h will show valid arguments)
> > >
> > > So should I start using my existing method where I get into my wrapper
> folder /usr/local/wra1/bin/ then key in ./startDaemon.sh? I would like to
> know if I am doing the right thing?
> > >
> > > Thank  you.
> > >
> > > --
> > > To unsubscribe:
> > > https://lists.nongnu.org/mailman/listinfo/monit-general
> >
> >
> > --
> > To unsubscribe:
> > https://lists.nongnu.org/mailman/listinfo/monit-general
> >
> > --
> > To unsubscribe:
> > https://lists.nongnu.org/mailman/listinfo/monit-general
>
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
>
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to