Re: M/Monit Network Settings
Okay, I will try this. Thanks all! On Wed, Jul 5, 2017 at 2:38 AM, Jan-Henrik Haukeland wrote: > > > On 4 Jul 2017, at 22:28, Saagar Deshpande wrote: > > > > When I set the address as: www.foobar.com/monit > > I see the error as "Host not specified in the URL" and the connection > fails. > > Address should be the DNS name of the host or its IP-address. You are > using an URL-path. If you cannot setup Monit on the host on a specific > port, but have to go through a proxy you will need to use a sub-domain for > monit. That is, monit.foobar.com and setup proxy accordingly. > > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general > -- Saagar Deshpande Senior Software Engineer 973-454-4815 saa...@edo.com -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
Re: M/Monit Network Settings
> On 4 Jul 2017, at 22:28, Saagar Deshpande wrote: > > When I set the address as: www.foobar.com/monit > I see the error as "Host not specified in the URL" and the connection fails. Address should be the DNS name of the host or its IP-address. You are using an URL-path. If you cannot setup Monit on the host on a specific port, but have to go through a proxy you will need to use a sub-domain for monit. That is, monit.foobar.com and setup proxy accordingly. -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
Re: M/Monit Network Settings
In the port field try 80 or 443, as relevant? From: monit-general on behalf of Saagar Deshpande Sent: Wednesday, July 5, 2017 1:58:51 AM To: This is the general mailing list for monit Subject: Re: M/Monit Network Settings Guillaume, Indeed, the data collection is working properly. My question is centered around overriding the network settings. Below is an example of what I see. When I set the address as: www.foobar.com/monit<http://www.foobar.com/monit> I see the error as "Host not specified in the URL" and the connection fails. My monit instances are set up being nginx via subpath, but as you can see in the screenshot, m/monit is simply appending the port onto the end of the URL. Do I need to use sub-domain instead? [Inline image 1] Best, Saagar On Tue, Jul 4, 2017 at 3:05 AM, Guillaume François mailto:guillaume.francoi...@gmail.com>> wrote: Hello Saagar, I saw the misunderstanding. The Monit network setting comes from the configuration of the "remote" Monit agent. From my understanding, it is use by M/Monit to send "commands" to the remote Monit agent. In the case it cannot successfully connect, commands issued from M/Monit are not executed on the remote Monit agent. This is only mandatory if you want to perform remote actions from M/Monit console. It doesn't block the collection of data. If you want to change the connection information, you are able to override it for some data (see screenshot) [cid:ii_j4pel5bz0_15d0d0ae1aea523c] Does it answer your need ? Best Regards. 2017-07-04 11:12 GMT+02:00 Mehul Ved mailto:mehul@nexsales.com>>: I have the same kind of setup. Here's what I have done: - Left the connector as it is -START server.xml- -END server.xml- - In apache.conf I have proxied it as follows -START APACHE CONFIG- ProxyPass /mmonit http://10.0.0.3:8090 nocanon ProxyPassReverse /mmonit http://10.0.0.3:8090 ProxyRequests Off AllowEncodedSlashes NoDecode # Local reverse proxy authorization override # Most unix distribution deny proxy by default (ie /etc/apache2/mods-enabled/proxy.conf in Ubuntu) http://10.0.0.3:8090/*> Order deny,allow Allow from all -END APACHE CONFIG- For nginx, it is even simpler -START NGINX CONFIG- location /mmonit/ { proxy_pass https://10.0.0.3:8090/; } -END NGINX CONFIG- From: monit-general mailto:nexsales@nongnu.org>> on behalf of Saagar Deshpande mailto:saa...@edo.com>> Sent: Tuesday, July 4, 2017 1:56:30 PM To: monit-general@nongnu.org<mailto:monit-general@nongnu.org> Subject: Re: M/Monit Network Settings Guillaume - I took a look at the documentation, and if I understand correctly, this is providing instruction on setting up the connector for m/monit itself. However, my issue is as follows: I would like to configure the Monit Network Settings for a host in m/monit such that the address is something like foobar.com/monit<http://foobar.com/monit> and the port is left null. Essentially, I would like m/monit to understand that I am using a sub-path without a port so that it can connect to the monit instances (and then be able to run start/stop operations via the m/monit web interface). Whenever I put in a network address such as "foobar.com/monit<http://foobar.com/monit>", m/monit is unable to resolve this into an address. I hope this clarifies what I'm trying to accomplish. - Saagar On Tue, Jul 4, 2017 at 1:13 AM, Saagar Deshpande mailto:saa...@edo.com>> wrote: Thanks Guillaume, I'll give that a look! On Mon, Jul 3, 2017 at 8:52 AM, Saagar Deshpande mailto:saa...@edo.com>> wrote: Dear monit-general, I am setting up m/monit and have configured m/monit and monit behind nginx via proxy_pass. nginx is providing SSL to our other applications and also prevents unnecessary exposure to the ports that m/monit and monit are listening on. When the proxy_pass is enabled, all traffic to https://www.foobar.com/monit is directed to monit and all traffic to https://www.foobar.com/mmonit is directed to m/monit . As such, I would like to understand how exactly to configure the network settings for m/monit so that a port is not required. Is this possible? The UI seems to append the port number to the end of the URL in all situations. Best, Saagar -- Saagar Deshpande Senior Software Engineer 973-454-4815 saa...@edo.com<mailto:saa...@edo.com> -- Saagar Deshpande Senior Software Engineer 973-454-4815 saa...@edo.com<mailto:saa...@edo.com> -- Saagar Deshpande Senior Software Engineer 973-454-4815 saa...@edo.com<mailto:saa...@edo.com> -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general -- -BEGIN GEEK CODE BLOCK- Version: 3.1 GCS/IT d(+) s++:- a C++$ ULC(+)>+++$ !P--- L+>$ !E---? W++
Re: M/Monit Network Settings
Guillaume, Indeed, the data collection is working properly. My question is centered around overriding the network settings. Below is an example of what I see. When I set the address as: www.foobar.com/monit I see the error as "Host not specified in the URL" and the connection fails. My monit instances are set up being nginx via subpath, but as you can see in the screenshot, m/monit is simply appending the port onto the end of the URL. Do I need to use sub-domain instead? [image: Inline image 1] Best, Saagar On Tue, Jul 4, 2017 at 3:05 AM, Guillaume François < guillaume.francoi...@gmail.com> wrote: > Hello Saagar, > > I saw the misunderstanding. > > The *Monit network setting* comes from the configuration of the "remote" > Monit agent. > > From my understanding, it is use by M/Monit to send "commands" to the > remote Monit agent. In the case it cannot successfully connect, commands > issued from M/Monit are not executed on the remote Monit agent. > This is only mandatory if you want to perform remote actions from M/Monit > console. It doesn't block the collection of data. > > If you want to change the connection information, you are able to override > it for some data (see screenshot) > > > > Does it answer your need ? > > Best Regards. > > > 2017-07-04 11:12 GMT+02:00 Mehul Ved : > >> I have the same kind of setup. Here's what I have done: >> - Left the connector as it is >> -START server.xml- >> > /> >> -END server.xml- >> >> - In apache.conf I have proxied it as follows >> -START APACHE CONFIG- >> ProxyPass /mmonit http://10.0.0.3:8090 nocanon >> ProxyPassReverse /mmonit http://10.0.0.3:8090 >> ProxyRequests Off >> AllowEncodedSlashes NoDecode >> >> # Local reverse proxy authorization override >> # Most unix distribution deny proxy by default (ie >> /etc/apache2/mods-enabled/proxy.conf in Ubuntu) >> http://10.0.0.3:8090/*> >> Order deny,allow >> Allow from all >> >> -END APACHE CONFIG- >> >> For nginx, it is even simpler >> -START NGINX CONFIG- >> location /mmonit/ { >> proxy_pass https://10.0.0.3:8090/; >> } >> -END NGINX CONFIG- >> -- >> *From:* monit-general > nexsales@nongnu.org> on behalf of Saagar Deshpande >> *Sent:* Tuesday, July 4, 2017 1:56:30 PM >> *To:* monit-general@nongnu.org >> *Subject:* Re: M/Monit Network Settings >> >> Guillaume - >> >> I took a look at the documentation, and if I understand correctly, this >> is providing instruction on setting up the connector for m/monit itself. >> However, my issue is as follows: I would like to configure the Monit >> Network Settings for a host in m/monit such that the address is something >> like foobar.com/monit and the port is left null. Essentially, I would >> like m/monit to understand that I am using a sub-path without a port so >> that it can connect to the monit instances (and then be able to run >> start/stop operations via the m/monit web interface). Whenever I put in a >> network address such as "foobar.com/monit", m/monit is unable to resolve >> this into an address. >> >> I hope this clarifies what I'm trying to accomplish. >> >> - Saagar >> >> On Tue, Jul 4, 2017 at 1:13 AM, Saagar Deshpande wrote: >> >>> Thanks Guillaume, I'll give that a look! >>> >>> On Mon, Jul 3, 2017 at 8:52 AM, Saagar Deshpande wrote: >>> >>>> Dear monit-general, >>>> >>>> I am setting up m/monit and have configured m/monit and monit behind >>>> nginx via proxy_pass. nginx is providing SSL to our other applications and >>>> also prevents unnecessary exposure to the ports that m/monit and monit are >>>> listening on. >>>> >>>> When the proxy_pass is enabled, all traffic to >>>> https://www.foobar.com/monit is directed to monit and all traffic to >>>> https://www.foobar.com/mmonit is directed to m/monit . As such, I >>>> would like to understand how exactly to configure the network settings for >>>> m/monit so that a port is not required. Is this possible? The UI seems to >>>> append the port number to the end of the URL in all situations. >>>> >>>> Best, >>>> Saagar >>>> >>>> -- >>>> Saagar Deshpande >>>> Senior Software Engineer >>>> 973-454-4815 <(973)%20454-4815>
Re: M/Monit Network Settings
Hello Saagar, I saw the misunderstanding. The *Monit network setting* comes from the configuration of the "remote" Monit agent. >From my understanding, it is use by M/Monit to send "commands" to the remote Monit agent. In the case it cannot successfully connect, commands issued from M/Monit are not executed on the remote Monit agent. This is only mandatory if you want to perform remote actions from M/Monit console. It doesn't block the collection of data. If you want to change the connection information, you are able to override it for some data (see screenshot) Does it answer your need ? Best Regards. 2017-07-04 11:12 GMT+02:00 Mehul Ved : > I have the same kind of setup. Here's what I have done: > - Left the connector as it is > -START server.xml- > > -END server.xml- > > - In apache.conf I have proxied it as follows > -START APACHE CONFIG- > ProxyPass /mmonit http://10.0.0.3:8090 nocanon > ProxyPassReverse /mmonit http://10.0.0.3:8090 > ProxyRequests Off > AllowEncodedSlashes NoDecode > > # Local reverse proxy authorization override > # Most unix distribution deny proxy by default (ie > /etc/apache2/mods-enabled/proxy.conf in Ubuntu) > http://10.0.0.3:8090/*> > Order deny,allow > Allow from all > > -END APACHE CONFIG- > > For nginx, it is even simpler > -START NGINX CONFIG- > location /mmonit/ { > proxy_pass https://10.0.0.3:8090/; > } > -END NGINX CONFIG- > -- > *From:* monit-general nexsales@nongnu.org> on behalf of Saagar Deshpande > *Sent:* Tuesday, July 4, 2017 1:56:30 PM > *To:* monit-general@nongnu.org > *Subject:* Re: M/Monit Network Settings > > Guillaume - > > I took a look at the documentation, and if I understand correctly, this is > providing instruction on setting up the connector for m/monit itself. > However, my issue is as follows: I would like to configure the Monit > Network Settings for a host in m/monit such that the address is something > like foobar.com/monit and the port is left null. Essentially, I would > like m/monit to understand that I am using a sub-path without a port so > that it can connect to the monit instances (and then be able to run > start/stop operations via the m/monit web interface). Whenever I put in a > network address such as "foobar.com/monit", m/monit is unable to resolve > this into an address. > > I hope this clarifies what I'm trying to accomplish. > > - Saagar > > On Tue, Jul 4, 2017 at 1:13 AM, Saagar Deshpande wrote: > >> Thanks Guillaume, I'll give that a look! >> >> On Mon, Jul 3, 2017 at 8:52 AM, Saagar Deshpande wrote: >> >>> Dear monit-general, >>> >>> I am setting up m/monit and have configured m/monit and monit behind >>> nginx via proxy_pass. nginx is providing SSL to our other applications and >>> also prevents unnecessary exposure to the ports that m/monit and monit are >>> listening on. >>> >>> When the proxy_pass is enabled, all traffic to >>> https://www.foobar.com/monit is directed to monit and all traffic to >>> https://www.foobar.com/mmonit is directed to m/monit . As such, I would >>> like to understand how exactly to configure the network settings for >>> m/monit so that a port is not required. Is this possible? The UI seems to >>> append the port number to the end of the URL in all situations. >>> >>> Best, >>> Saagar >>> >>> -- >>> Saagar Deshpande >>> Senior Software Engineer >>> 973-454-4815 <(973)%20454-4815> >>> saa...@edo.com >>> >> >> >> >> -- >> Saagar Deshpande >> Senior Software Engineer >> 973-454-4815 <(973)%20454-4815> >> saa...@edo.com >> > > > > -- > Saagar Deshpande > Senior Software Engineer > 973-454-4815 <(973)%20454-4815> > saa...@edo.com > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general > -- -BEGIN GEEK CODE BLOCK- Version: 3.1 GCS/IT d(+) s++:- a C++$ ULC(+)>+++$ !P--- L+>$ !E---? W+++$ !N* !o-- K--? w(+) !O---? !M- !V--? PS+? !PE Y+ PGP++>+++ !t-- !5 !X- R(+)>++* tv-? b(-) DI !D- G(+)>+ e+++ h--() r->$ y?* --END GEEK CODE BLOCK-- -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
Re: M/Monit Network Settings
I have the same kind of setup. Here's what I have done: - Left the connector as it is -START server.xml- -END server.xml- - In apache.conf I have proxied it as follows -START APACHE CONFIG- ProxyPass /mmonit http://10.0.0.3:8090 nocanon ProxyPassReverse /mmonit http://10.0.0.3:8090 ProxyRequests Off AllowEncodedSlashes NoDecode # Local reverse proxy authorization override # Most unix distribution deny proxy by default (ie /etc/apache2/mods-enabled/proxy.conf in Ubuntu) http://10.0.0.3:8090/*> Order deny,allow Allow from all -END APACHE CONFIG- For nginx, it is even simpler -START NGINX CONFIG- location /mmonit/ { proxy_pass https://10.0.0.3:8090/; } -END NGINX CONFIG- From: monit-general on behalf of Saagar Deshpande Sent: Tuesday, July 4, 2017 1:56:30 PM To: monit-general@nongnu.org Subject: Re: M/Monit Network Settings Guillaume - I took a look at the documentation, and if I understand correctly, this is providing instruction on setting up the connector for m/monit itself. However, my issue is as follows: I would like to configure the Monit Network Settings for a host in m/monit such that the address is something like foobar.com/monit<http://foobar.com/monit> and the port is left null. Essentially, I would like m/monit to understand that I am using a sub-path without a port so that it can connect to the monit instances (and then be able to run start/stop operations via the m/monit web interface). Whenever I put in a network address such as "foobar.com/monit<http://foobar.com/monit>", m/monit is unable to resolve this into an address. I hope this clarifies what I'm trying to accomplish. - Saagar On Tue, Jul 4, 2017 at 1:13 AM, Saagar Deshpande mailto:saa...@edo.com>> wrote: Thanks Guillaume, I'll give that a look! On Mon, Jul 3, 2017 at 8:52 AM, Saagar Deshpande mailto:saa...@edo.com>> wrote: Dear monit-general, I am setting up m/monit and have configured m/monit and monit behind nginx via proxy_pass. nginx is providing SSL to our other applications and also prevents unnecessary exposure to the ports that m/monit and monit are listening on. When the proxy_pass is enabled, all traffic to https://www.foobar.com/monit is directed to monit and all traffic to https://www.foobar.com/mmonit is directed to m/monit . As such, I would like to understand how exactly to configure the network settings for m/monit so that a port is not required. Is this possible? The UI seems to append the port number to the end of the URL in all situations. Best, Saagar -- Saagar Deshpande Senior Software Engineer 973-454-4815 saa...@edo.com<mailto:saa...@edo.com> -- Saagar Deshpande Senior Software Engineer 973-454-4815 saa...@edo.com<mailto:saa...@edo.com> -- Saagar Deshpande Senior Software Engineer 973-454-4815 saa...@edo.com<mailto:saa...@edo.com> -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
Re: M/Monit Network Settings
Guillaume - I took a look at the documentation, and if I understand correctly, this is providing instruction on setting up the connector for m/monit itself. However, my issue is as follows: I would like to configure the Monit Network Settings for a host in m/monit such that the address is something like foobar.com/monit and the port is left null. Essentially, I would like m/monit to understand that I am using a sub-path without a port so that it can connect to the monit instances (and then be able to run start/stop operations via the m/monit web interface). Whenever I put in a network address such as "foobar.com/monit", m/monit is unable to resolve this into an address. I hope this clarifies what I'm trying to accomplish. - Saagar On Tue, Jul 4, 2017 at 1:13 AM, Saagar Deshpande wrote: > Thanks Guillaume, I'll give that a look! > > On Mon, Jul 3, 2017 at 8:52 AM, Saagar Deshpande wrote: > >> Dear monit-general, >> >> I am setting up m/monit and have configured m/monit and monit behind >> nginx via proxy_pass. nginx is providing SSL to our other applications and >> also prevents unnecessary exposure to the ports that m/monit and monit are >> listening on. >> >> When the proxy_pass is enabled, all traffic to >> https://www.foobar.com/monit is directed to monit and all traffic to >> https://www.foobar.com/mmonit is directed to m/monit . As such, I would >> like to understand how exactly to configure the network settings for >> m/monit so that a port is not required. Is this possible? The UI seems to >> append the port number to the end of the URL in all situations. >> >> Best, >> Saagar >> >> -- >> Saagar Deshpande >> Senior Software Engineer >> 973-454-4815 <(973)%20454-4815> >> saa...@edo.com >> > > > > -- > Saagar Deshpande > Senior Software Engineer > 973-454-4815 <(973)%20454-4815> > saa...@edo.com > -- Saagar Deshpande Senior Software Engineer 973-454-4815 saa...@edo.com -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
Re: M/Monit Network Settings
Thanks Guillaume, I'll give that a look! On Mon, Jul 3, 2017 at 8:52 AM, Saagar Deshpande wrote: > Dear monit-general, > > I am setting up m/monit and have configured m/monit and monit behind nginx > via proxy_pass. nginx is providing SSL to our other applications and also > prevents unnecessary exposure to the ports that m/monit and monit are > listening on. > > When the proxy_pass is enabled, all traffic to > https://www.foobar.com/monit is directed to monit and all traffic to > https://www.foobar.com/mmonit is directed to m/monit . As such, I would > like to understand how exactly to configure the network settings for > m/monit so that a port is not required. Is this possible? The UI seems to > append the port number to the end of the URL in all situations. > > Best, > Saagar > > -- > Saagar Deshpande > Senior Software Engineer > 973-454-4815 <(973)%20454-4815> > saa...@edo.com > -- Saagar Deshpande Senior Software Engineer 973-454-4815 saa...@edo.com -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
Re: M/Monit Network Settings
Hello, Did you follow the documentation located at https://mmonit.com/documentation/mmonit_manual.pdf page 83+ ? Mostly you forgot to configure the connector at least : Hope this help. 2017-07-03 17:52 GMT+02:00 Saagar Deshpande : > Dear monit-general, > > I am setting up m/monit and have configured m/monit and monit behind nginx > via proxy_pass. nginx is providing SSL to our other applications and also > prevents unnecessary exposure to the ports that m/monit and monit are > listening on. > > When the proxy_pass is enabled, all traffic to > https://www.foobar.com/monit is directed to monit and all traffic to > https://www.foobar.com/mmonit is directed to m/monit . As such, I would > like to understand how exactly to configure the network settings for > m/monit so that a port is not required. Is this possible? The UI seems to > append the port number to the end of the URL in all situations. > > Best, > Saagar > > -- > Saagar Deshpande > Senior Software Engineer > 973-454-4815 <(973)%20454-4815> > saa...@edo.com > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general > -- -BEGIN GEEK CODE BLOCK- Version: 3.1 GCS/IT d(+) s++:- a C++$ ULC(+)>+++$ !P--- L+>$ !E---? W+++$ !N* !o-- K--? w(+) !O---? !M- !V--? PS+? !PE Y+ PGP++>+++ !t-- !5 !X- R(+)>++* tv-? b(-) DI !D- G(+)>+ e+++ h--() r->$ y?* --END GEEK CODE BLOCK-- -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
M/Monit Network Settings
Dear monit-general, I am setting up m/monit and have configured m/monit and monit behind nginx via proxy_pass. nginx is providing SSL to our other applications and also prevents unnecessary exposure to the ports that m/monit and monit are listening on. When the proxy_pass is enabled, all traffic to https://www.foobar.com/monit is directed to monit and all traffic to https://www.foobar.com/mmonit is directed to m/monit . As such, I would like to understand how exactly to configure the network settings for m/monit so that a port is not required. Is this possible? The UI seems to append the port number to the end of the URL in all situations. Best, Saagar -- Saagar Deshpande Senior Software Engineer 973-454-4815 saa...@edo.com -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general