<p>What, at a minimum, should an application health-monitoring system do for you (the developer) and/or your boss (the IT Manager) and/or the operations (on-call) staff?</p>

<p>What else should it do above the minimum requirements?</p>

<p>Is monitoring the 'infrastructure' applications (ms-exchange, apache, etc.) sufficient or do individual user applications, web sites, and databases also need to be monitored?</p>

<p>if the latter, what do you need to know about them?</p>

<p>ADDENDUM: thanks for the input, i was really looking for application-level monitoring not infrastructure monitoring, but it is good to know about both</p>

[{'answer_id': 79440, 'author': 'Milan Babuškov', 'author_id': 14690, 'author_profile': 'https://Stackoverflow.com/users/14690', 'pm_score': 1, 'selected': False, 'text': "<p>Minimum: make sure it is running :)</p>\n\n<p>However, some other stuff would be very useful. For example, the CPU load, RAM usage and (in multiuser systems) which user is running what. Also, for applications that access network, a list of network connections for each app. And (if you have access to client computer(s)) it would be cool to be able to see the 'window title' of the app - maybe check each 2-3 minutes  if it changed and save it. Also, a list of files open by the application could be very useful, but it is not a must.</p>\n"}, {'answer_id': 79444, 'author': 'David Thibault', 'author_id': 5903, 'author_profile': 'https://Stackoverflow.com/users/5903', 'pm_score': 5, 'selected': True, 'text': '<ul>\n<li>Whether the application is running.</li>\n<li>Unusual cpu/memory/network usage.</li>\n<li>Report any unhandled exceptions.</li>\n<li>Status of various modules (if applicable).</li>\n<li>Status of external components (databases, webservices, fileservers, etc.)</li>\n<li>Number of pending background tasks (if applicable).</li>\n<li>Maybe track usage of the application and report statistics on most/less used functionalities so you know where optimizations are most beneficial.</li>\n</ul>\n'}, {'answer_id': 79448, 'author': 'David Medinets', 'author_id': 219658, 'author_profile': 'https://Stackoverflow.com/users/219658', 'pm_score': 2, 'selected': False, 'text': "<p>The answer is 'it depends'. Why do you need to monitor? How large is your operations staff? Do you need reporting? What is the application environment? Who cares if the application fails? Who cares if an exception happens? Are any of the errors recoverable? I could ask questions like these for a long time.</p>\n"}, {'answer_id': 79458, 'author': 'Steve M', 'author_id': 1693, 'author_profile': 'https://Stackoverflow.com/users/1693', 'pm_score': 1, 'selected': False, 'text': "<p>I think this is fairly simple - monitor so that you can be warned early enough before something goes wrong. That means monitor dependencies and the application itself.</p>\n\n<p>It's really hard to provide specifics if you're not going to give details on the application you're monitoring, so I'd say use that as a general rule.</p>\n"}, {'answer_id': 79469, 'author': 'Nathan Feger', 'author_id': 8563, 'author_profile': 'https://Stackoverflow.com/users/8563', 'pm_score': 2, 'selected': False, 'text': "<p>This is such an open ended question, but I would start with physical measurements. <br />\n1. Are all the machines I think are hosting this site pingable?<br />\n2. Are all the machines which should be serving content actually serving some content? (Ideally this would be hit from an external network.)<br />\n3. Is each expected service on each machine running?<br />\n3a. Have those services run recently?<br />\n4. Does each machine have hard drive space left? (Don't forget the db)<br />\n5. Have these machines been backed up? When was the last time?<br />\n<br />\nOnce one lays out the physical monitoring of the systems, one can address those specific to a system?  <br />\n<br />\n1. Can an automated script log in? How long did it take?<br />\n2. How many users are live?  Have there been a million fake accounts added?<br />\n...<br />\nThese sorts of questions get more nebulous, and can be very system specific.  They also usually can be derived reactively when responding to phsyical measurements. Hard drive fill up, maybe the web server logs got filled up because a bunch of agents created too many fake users. That kind of thing.  </p>\n\n<p>While plan A shouldn't necessarily be reactive, it is the way many a site setup a monitoring system.</p>\n"}, {'answer_id': 79479, 'author': 'Ryan P', 'author_id': 1539, 'author_profile': 'https://Stackoverflow.com/users/1539', 'pm_score': 1, 'selected': False, 'text': '<p>At a minimum you want to know that the system is healthy. This is subjective in what defines your system is healthy. Is it computers are up, the needed resources exist, the data is flowing through the system, the data is properly producing results, etc, etc.</p>\n\n<p>In my project we do monitoring of most of this and then some. It really comes down to what is the highest level that you can use to analyze that everything is working. In our case we need to know down to the data output. If you just need to know down to the are these machines up it saves you on trying to show an inexperienced end user what is wrong.</p>\n\n<p>There are also "off the shelf" tools that will do a lot of the hard work for you if you are just looking too hard into data results. I particularly liked <a href="http://www.nagios.org/" rel="nofollow noreferrer">Nagios</a> when I was looking around but we needed more than it could easily show so I wrote our own monitoring system. Basically we also watch for "peculiarities" in the system, memory / cpu spikes, etc...</p>\n'}, {'answer_id': 286328, 'author': 'Steven A. Lowe', 'author_id': 9345, 'author_profile': 'https://Stackoverflow.com/users/9345', 'pm_score': 1, 'selected': False, 'text': '<p>thanks everyone for the input, i was really looking for application-level monitoring not infrastructure monitoring, but it is good to know about both</p>\n\n<p>the difference is:</p>\n\n<ul>\n<li>infrastructure monitoring would be servers plus MS Exchange Server, Apache, IIS, and so forth</li>\n<li>application monitoring would be user machines and the specific programs that they use to do their jobs, and/or servers plus the data-moving/backend applications that they run to keep the data flowing</li>\n</ul>\n\n<p>sometimes it\'s hard to draw the line - an oversimplified definition might be "if your team wrote it, it\'s an application; if you bought it, it\'s infrastructure"</p>\n\n<p>i think in practice it is best to monitor both</p>\n'}, {'answer_id': 3066289, 'author': 'Albert T. Wong', 'author_id': 369819, 'author_profile': 'https://Stackoverflow.com/users/369819', 'pm_score': 1, 'selected': False, 'text': '<p>What you need to do is to break down the business process of the application and then have the software emit events at major business components.  In addition, you\'ll need to create end to end synthetic transactions (eg. emulating end users clicking on a website).    All that data would be fed into an monitoring tool.   In the past, I\'ve done JMX for applications of which flowed into Tivoli Monitoring\'s JMX Adapter and then I\'ve done scripts that implement a "fake user" and then pipe in the results into Tivoli Monitoring\'s Script Adapter.   Tivoli Monitoring takes the data and then creates application health and performance charts from that raw data.</p>\n'}, {'answer_id': 3584930, 'author': 'dzida', 'author_id': 359665, 'author_profile': 'https://Stackoverflow.com/users/359665', 'pm_score': 2, 'selected': False, 'text': '<p>Great question.</p>\n\n<p>We\'ve been looking for some application-level monitoring solution for our needs some time ago without any luck. Popular monitoring solution are mostly addressed to monitor infrastrcture and - in my opinion - they are too complicated for a requirements of most of small and mid-sized companies.</p>\n\n<p>We required (mainly) following features:</p>\n\n<ul>\n<li>alerts - we wanted to know about\nincident as fast as possible </li>\n<li>painless management - hosted service wouldbe\nthe best </li>\n<li>visualizations - it\'s good to know what is going on and take some knowledge from the data</li>\n</ul>\n\n<p>Because we didn\'t find suitable solution we started to write our own. Finally we\'ve ended with up-and-running service called <a href="http://alert-grid.com" rel="nofollow noreferrer">AlertGrid</a>. (You can check it for free of course.)</p>\n\n<p>The idea behind it is to provide an easy way to handle custom monitoring scenarios. Integration API is very simple (one function with two required parameters). At the momment we and others are using it for:</p>\n\n<ul>\n<li>monitor scheduled tasks (cron jobs)</li>\n<li>monitor entire application logic execution</li>\n<li>alert on errors in applications</li>\n<li>we are also working on examples of basic infrastructure monitoring using AlertGrid</li>\n</ul>\n'}]
['https://Stackoverflow.com/questions/79415', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/9345/']