The key information is present in the IOException message: "connection 
refused". It's not possible to be more specific from the client point of view, 
as the problem could be some network issue, firewall, Monit not running or 
incorrectly configured.

Martin



On 02 May 2014, at 22:49, Jason Levitt <[email protected]> wrote:

> I guess I wasn't paying close attention to all the default
> script details in the monitrc file.  Still, the IOException message
> contains very little useful information.  Things are working now.
> 
> J
> 
> 
> On Fri, May 2, 2014 at 11:00 AM, <[email protected]> wrote:
> 
> Today's Topics:
> 
>    1. IOexception from m/monit (Jason Levitt)
>    2. Re: IOexception from m/monit (Geoff Winans)
>    3. Re: IOexception from m/monit (Martin Pala)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Thu, 1 May 2014 17:15:17 -0500
> From: Jason Levitt <[email protected]>
> To: [email protected]
> Subject: IOexception from m/monit
> Message-ID:
>         <cakc1-io0lcccoq3tbz8pbcvjrxkhy1hs-3aphgi1s3xgs-t...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> I'm just testing out m/monit and when I try to get it to
> monitor two processes that are currently "No monitored",
> I get an IOException.
> 
> See this screen capture for details:
> 
> http://imgur.com/W5QE2Xm
> 
> Both of these services had a bit of a rocky start (i put the
> incorrect path to the pid at first) but are now ok.
> 
> Is there something I need to reset on monit or M/monit to
> get them monitored?
> 
> J
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <http://lists.nongnu.org/archive/html/monit-general/attachments/20140501/2bce2678/attachment.html>
> 
> ------------------------------
> 
> Message: 2
> Date: Thu, 1 May 2014 15:27:24 -0700
> From: Geoff Winans <[email protected]>
> To: This is the general mailing list for monit
>         <[email protected]>
> Subject: Re: IOexception from m/monit
> Message-ID:
>         <CAG+haYw55h20=t1NJewKKHOWoKEMxE9uuRPqFUnZWFw=pkc...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> I don't use M/Monit, but I do use monit. Drop to the console and do this:
> 
> monit monitor apache
> 
> 
> On Thu, May 1, 2014 at 3:15 PM, Jason Levitt <[email protected]> wrote:
> 
> > I'm just testing out m/monit and when I try to get it to
> > monitor two processes that are currently "No monitored",
> > I get an IOException.
> >
> > See this screen capture for details:
> >
> > http://imgur.com/W5QE2Xm
> >
> > Both of these services had a bit of a rocky start (i put the
> > incorrect path to the pid at first) but are now ok.
> >
> > Is there something I need to reset on monit or M/monit to
> > get them monitored?
> >
> > J
> >
> > --
> > To unsubscribe:
> > https://lists.nongnu.org/mailman/listinfo/monit-general
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <http://lists.nongnu.org/archive/html/monit-general/attachments/20140501/84a182f9/attachment.html>
> 
> ------------------------------
> 
> Message: 3
> Date: Fri, 2 May 2014 01:18:45 +0200
> From: Martin Pala <[email protected]>
> To: This is the general mailing list for monit
>         <[email protected]>
> Subject: Re: IOexception from m/monit
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=us-ascii
> 
> Hello Jason,
> 
> when you do some service action in M/Monit, it needs to be able to connect to 
> Monit to handle the action.
> 
> In your case it's not possible to establish connection to Monit => please 
> check the "set httpd" statement settings in Monit configuration file:
> 
> 1.) If you use "address" option, it must bind to network interface, which 
> will be reachable from M/Monit host (for "address localhost" will bind only 
> to loopback interface and no other host will be able to connect to Monit HTTP 
> interface ... the simplest solution is to remove the "address" option - Monit 
> will listen on any interface then.
> 
> 2.) Another possible problem could be the "allow" settings ... if you use IP 
> or network addresses ACL, make sure the M/Monit host is allowed.
> 
> 3.) If the "set httpd" options are correct, then please check the host 
> settings in M/Monit's Host Admin page. You can find more details in M/Monit 
> manual: http://www.mmonit.com/documentation/mmonit_manual.pdf
> 
> 
> Regards,
> Martin
> 
> 
> On 02 May 2014, at 00:15, Jason Levitt <[email protected]> wrote:
> 
> > I'm just testing out m/monit and when I try to get it to
> > monitor two processes that are currently "No monitored",
> > I get an IOException.
> >
> > See this screen capture for details:
> >
> > http://imgur.com/W5QE2Xm
> >
> > Both of these services had a bit of a rocky start (i put the
> > incorrect path to the pid at first) but are now ok.
> >
> > Is there something I need to reset on monit or M/monit to
> > get them monitored?
> >
> > J
> > --
> > To unsubscribe:
> > https://lists.nongnu.org/mailman/listinfo/monit-general
> 
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> monit-general mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/monit-general
> 
> 
> End of monit-general Digest, Vol 136, Issue 1
> *********************************************
> 
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general

--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to