monitoring

Monitoring Apache Tomcat applications in production environment

孤者浪人 提交于 2019-12-11 16:47:36
问题 How do you ensure that your applications in production are up and running? How do you alert your team of developers if something goes wrong? I'm asking this because I'm writing a bash script to check for this issue, I'd like to know if there is a smarter or more complete way to achieve this. The idea behind is this command: wget -q -O - APPLICATION_URL_HERE | grep 'ERROR 404 , I still have to check all kinds of HTTP errors, but you can get the point of what I mean. If an application is

SSL/TLS connection monitoring/analysis

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 16:21:28
问题 I want to show the client that my client/server app is using a secure connection with mutual authentication. My server app is implemented using C#, and the client is using C with OpenSSL. They can talk to each other and work fine. I'm trying do this demonstration with the two solutions below, but I'm not satisfied with the results. Monitoring the connection using SSLDump : The output is listed below, seems to be nothing wrong with it, but not sure about that. Please help me with this.

monitoring applications file access in Windows

ⅰ亾dé卋堺 提交于 2019-12-11 14:07:32
问题 I need to monitor applications File Access in win 7 operating system. I want to monitor which software read, write or create file in which place. I think, this work is imposible with File System Watcher and auditing. how can I do this work with C#? Are there any appropriate APIs? 回答1: You need a filesystem filter driver for fine-grain monitoring and tracking what applications access files. Developing a kernel-mode driver requires C programming and special knowledge. You can write a driver

Restarting ffmpeg process using monit

天大地大妈咪最大 提交于 2019-12-11 09:54:28
问题 I am trying to use monit for monitoring the ffmpeg process. For this I first created a bash script that has 3 arguments(start, stop and restart). When I run the script manually from the terminal (./thisBashScript start, ./thisBashScript stop and ./thisBashScript restart ) everything works perfectly how it was designed. The process starts, creates and saves the current procees id into a pid file. After if I want to stop the process it takes the current pid file and and kills the process with

How to monitor memory after major garbage collection via JMX or code

醉酒当歌 提交于 2019-12-11 04:37:38
问题 Many monitoring tools, like the otherwise phantastic JavaMelody, just monitor the current memory usage. If you want to check for memory leaks or impending out of memory situations, this is not particularily helpful, if you have an application that generates loads of garbage which gets collected immediately. Not perfect, but IMHO much more interesting, would it be to monitor the memory usage immediately after a major garbage collection. If that's high, a crash is looming over you. So: can you

Unable to get Azure monitoring metrics from the REST API

旧巷老猫 提交于 2019-12-11 04:37:27
问题 I retrieve metric definitions using this: https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/{resource-grp-id}/providers/microsoft.classiccompute/virtualMachines/{vm-id}/providers/microsoft.insights/metricdefinitions?api-version=2015-07-01 which returns { "id": "/subscriptions/{subscription-id}/resourceGroups/{res-group-id}/providers/microsoft.classiccompute/virtualMachines/{vm-id}/providers/microsoft.insights/metricdefinitions", "value": [ { "resourceUri": "

Automatic process monitoring/management with Python

点点圈 提交于 2019-12-11 03:57:16
问题 Right, so I have a python process which is running constantly, maybe even on Supervisor. What is the best way to achieve the following monitoring? Send an alert and restart if the process has crashed. I'd like to automatically receive a signal every time the process crashes and auto restart it. Send an alert and restart if the process has gone stale, i.e. hasn't crunched anything for say 1 minute. Restart on demand I'd like the achieve all of the above through Python. I know Supervisord will

What are some techniques to monitor multiple instances of a piece of software?

拟墨画扇 提交于 2019-12-11 02:37:48
问题 I have a piece of self-serve kiosk software that will be running at multiple sites. I'd like to monitor their status remotely. The kiosk application itself is pretty much finished. I am now in the process of creating a piece of software that will monitor all of the kiosks from a central location so that the customer can view particular details remotely (for instance, how many bills are in the acceptor's cash cartridge, what customer is currently logged in, etc.). Because I am in such an early

Adding metrics to JMX

荒凉一梦 提交于 2019-12-11 02:14:56
问题 I have 2 questions regarding JMX: What can you measure in your application using JMX? Is it possible to add metrics to JMX? For instance: seeing how much time a certain operation took. thanks 回答1: You can add whatever metrics you like, you decide what you want to monitor. For the second question, yes you can measure how much time some operation take. One easy to implement your JMX metrics is to use Spring annotations : http://docs.spring.io/spring/docs/3.2.4.RELEASE/spring-framework-reference

Inotify linux watching subdirectories

旧街凉风 提交于 2019-12-11 02:07:53
问题 is it possible to watch directories in this pattern /storage/data/usernames/Download/ -> /storage/data/*/Download/ I need to watch if changes are made in Download folder of each user. Maybe i need to create list of all paths, put it in array and with loop start inotify processes on each folder, but this may be to heavy for system. 回答1: Yes, it is easily possible. folders are created dynamically that's why i want to skip username part and watch all folders with name Download. fluffy is the