AWS health check problems

2021-03-01 Thread Jake Orel
Hi All,
I'm working on deploying tomcat through aws with the use of an elastic load
balancer connected to an auto scaling group. I'm running into an issue
where the health checks associated with the target group are being sent to
my server via IP address and therefore the host isn't seeing it so it can't
connect to my appbase resulting in 404 health checks. Since I will be
utilizing auto scaling I won't always know what ip address will be used to
make the request with and if a health check fails auto scaling will
terminate my instance. What I'm looking to do is: if a request comes in
from a non listed host (A.E an ip address) I want tomcat to use a
default host to respond with. If anyone has any ideas as to where I could
find some documentation or if they have already faced this problem any
information would be very helpful.


Re: Tomcat and CLoudWatch

2020-08-21 Thread Jake Orel
Hey Chris,
I've been working with Jerry on this. What I had found was to use Collectd
with the java and genericJMX plugins to gather the Mbeans i wanted to send.
After that there was the options of either using a cloudwatchPlugin
 for collectd or using the
AWS Cloudwatch agent to collect the metrics from collectd and send those to
cloudwatch. I've been able to get basic ec2 metrics (memory-free,
memory-percent-used, disk-used) from both of those angles but neither one
has let me send the JMX to cloudwatch. I don't seem to be getting any error
messages from either of them and they both tell me they're running.


On Fri, Aug 21, 2020 at 11:34 AM Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Jerry,
>
> On 8/19/20 13:19, Jerry Malcolm wrote:
> > Is anyone successfully monitoring Tomcat JMX beans on Amazon
> > CloudWatch?  This shouldn't be that difficult.  But we are hitting
> > a brick wall.  Can't get anything to work that is recommended on
> > forums.
>
> What have you tried so far?
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl8/94QACgkQHPApP6U8
> pFjVehAAn+nx3559O2VQDmnCaCU2vyfsamiqFlGiAUP6oNlVLEyrao/5aW0uAVDa
> G2uWg6umIT0AjCsezRPlSaD61M0MwZThxAt2uXX+Vbz2bw5izH7nnvOwmKxuasdz
> erF0xeCvUXpAkJfRdnOIZ0ZWTm3s2mKPp3eCczG0xr2oArKn3TfY8SHWHgdZSXRv
> ujADmPyTvbonU85ZhW7O5NMV1mMI78R+RKz7E61CSBG9Kv7iW1gA5qfVqs/U65IM
> 6bEeD4ilrh2bOcjlFexCA9pi63r4VeXBcFKd23/w/vjFgzIcgkb0DLdd4HRks2AR
> L3FIMXDl0MJ3nO/Z3a0O2yEhQ3DitmBnYovtaIhxkwypSn9n8tHSXW64u3M7WL90
> mxEo9go0XKOUeUItVqzx3qWWCJry9RvNOCvSodQ68lrXZbSBLUQ3amxiigR6qDq2
> n3xTWJOt3S029bLLWqI0QejvHNlqQYb1bcSuDTH+rL+jCVHSF0MSOufvIWnrGDax
> Jqj9CdYB12liak84HCIYVP/wW5tQVJ7cRuPVm4Kcob5jSWufMwVrsf00Xe1ccfWP
> QigD/G/Jv76o3dNUeyUgSm1YVs+dJh0NYVneQDN+5k7B4lx8LYaGoanXnbSdMrd+
> zBJpIKFn8DfD/K2yFHZbguLvvAV1pYSR/7IKzjo/Y4ou/TwuKg8=
> =NwO/
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


rewritevalve

2020-07-10 Thread Jake Orel
Hi all, My name is Jake. I'm a newbie to tomcat and I'm working on setting
up the rewrite valve. I've configured it host specific rather than global.
I have put my rewrite.config file inside of my Catalina base for the host
name and I know I'm reading the file at the very least because if i fill it
with gunk it crashes tomcat. my first rule is just trying to rewrite from
an empty forward slash: "RewriteRule ^/$ /path/to/jsp"  (quoted for email
purposes) If I enter the jsp
path in the browser it will take me there but I'm not getting my rewrite if
i just leave the /. Any help would be appreciated and thank you in advance!
- Jake Orel