{"id":11324,"date":"2008-08-03T23:04:18","date_gmt":"2008-08-03T20:04:18","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/?p=11324"},"modified":"2008-08-03T23:04:18","modified_gmt":"2008-08-03T20:04:18","slug":"monitoring-dynamic-processes-with-nagios","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2008\/08\/03\/monitoring-dynamic-processes-with-nagios\/","title":{"rendered":"Monitoring dynamic processes with Nagios"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p>We spent a couple of weeks now at work, setting up our <a href=\"http:\/\/www.nagios.org\/\">Nagios<\/a> installation.\u00a0 This is one of those things that one can never finish.\u00a0 Monitoring is like security &#8211; no matter how good it is, it can always be better.<\/p>\n<p>One thing that I particularly enjoyed figuring out was how to monitor dynamic stuff.\u00a0 Hosts and services are the easy part &#8211; they are always there and should be there.\u00a0 If they aren&#8217;t &#8211; let me know.\u00a0 But how to monitor dynamic values, that change based on the time of day or day of week?\u00a0 How to configure the monitoring so that we don&#8217;t need to update the limits every other week?<\/p>\n<p>For example, consider the number of the user registrations through a web form.\u00a0 If we are to measure this number over any sensible (monitoring-wise) period of time, such as one hour, we&#8217;d see that it fluctuates a lot during the day.\u00a0 Furthermore, this number fluctuates differently depending on the day of the week.\u00a0 We have three separate pick hours during the day, and we have a great decrease in numbers over the weekend.\u00a0 Plus the amount of user registrations is linked to all the advertising that company does, so this week might different from the last week and from the next week.\u00a0 How can we measure it so that a notiification is sent when the number is abnormal?\u00a0 What is abnormal?<\/p>\n<p>The solution turned out to be much simpler than I originally thought it would.\u00a0 It is sufficient to get a few samples of the data in same hour last week and a week before.\u00a0 <strong>If current value is more than twice the maximum or less than twice the minimum from the sample data, then we should be notified.<\/strong> This, in fact, works pretty well.\u00a0 The only time when we get a lot of false positives is when the values in the sample data are small.\u00a0 With values under 10, it&#8217;s very easy to jump over or under the limit.\u00a0 When the sample values are higher, there is more space between the boundaries and the system works as expected.<\/p>\n<p>We&#8217;ll get some more sample data now and we&#8217;ll be adjusting the formulat accordingly.\u00a0 But as I said, even as it is, it&#8217;s pretty good.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>We spent a couple of weeks now at work, setting up our Nagios installation.\u00a0 This is one of those things that one can never finish.\u00a0 Monitoring is like security &#8211; no matter how good it is, it can always be better. One thing that I particularly enjoyed figuring out was how to monitor dynamic stuff.\u00a0 &hellip; <a href=\"https:\/\/mamchenkov.net\/wordpress\/2008\/08\/03\/monitoring-dynamic-processes-with-nagios\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Monitoring dynamic processes with Nagios<\/span><\/a><\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,133],"tags":[127],"keyring_services":[],"class_list":["post-11324","post","type-post","status-publish","format-standard","hentry","category-general","category-sysadmin","tag-monitoring"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":12162,"url":"https:\/\/mamchenkov.net\/wordpress\/2010\/02\/18\/web-site-monitoring\/","url_meta":{"origin":11324,"position":0},"title":"Web site monitoring","author":"Leonid Mamchenkov","date":"February 18, 2010","format":false,"excerpt":"Devlounge lists three web site monitoring services : Montastic, Mon.itor.us, and LinkPatch. \u00a0These services check your web sites regularly and notify you when something goes down. \u00a0They also provide additional services, like checking for broken links and such. While I personally prefer a full featured monitoring tool such as Nagios\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":18528,"url":"https:\/\/mamchenkov.net\/wordpress\/2013\/07\/30\/looking-into-pros-and-cons-of-nagios-vs-zabbix-vs\/","url_meta":{"origin":11324,"position":1},"title":"Looking into pros and cons of Nagios vs. Zabbix vs&#8230;","author":"Leonid Mamchenkov","date":"July 30, 2013","format":"status","excerpt":"Looking into pros and cons of Nagios vs. Zabbix vs. Zenoss vs. whatever else. \u00a0If you have something to say, say it now or forever hold your silence.","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10761,"url":"https:\/\/mamchenkov.net\/wordpress\/2007\/07\/25\/daily-tweets\/","url_meta":{"origin":11324,"position":2},"title":"Daily tweets","author":"Leonid Mamchenkov","date":"July 25, 2007","format":false,"excerpt":"now that I need to test our Nagios Twitter integration, the bloody network works like a clock... # hosts health 100%, services health 100% .. damnit! I should probably add twitter.com to our monitoring to get some notifications #","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":25032,"url":"https:\/\/mamchenkov.net\/wordpress\/2015\/12\/11\/cpu-steal-time\/","url_meta":{"origin":11324,"position":3},"title":"CPU Steal Time","author":"Leonid Mamchenkov","date":"December 11, 2015","format":false,"excerpt":"Here's something that happens once in a blue moon - you get a server that seems overloaded while doing nothing. \u00a0There are several reasons for why that can happen, but today I'm only going to look at one of them. \u00a0As it happened to me very recently. Firstly, if you\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"web1","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2015\/12\/web1-500x292.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":25167,"url":"https:\/\/mamchenkov.net\/wordpress\/2016\/02\/10\/what-is-chatops-a-guide-to-its-evolution-adoption-significance\/","url_meta":{"origin":11324,"position":4},"title":"What is ChatOps? A guide to its evolution, adoption &#038; significance","author":"Leonid Mamchenkov","date":"February 10, 2016","format":false,"excerpt":"HipChat blog runs a rather lengthy post on what ChatOps are - \"What is ChatOps? A guide to its evolution, adoption & significance\", which provides some insight into how the new generation of teams communicate. At Qobo, we are at Stage 3 - Gimini, with a whole lot of dedicated\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":27442,"url":"https:\/\/mamchenkov.net\/wordpress\/2017\/03\/20\/how-to-monitor-your-linux-servers-with-nmon\/","url_meta":{"origin":11324,"position":5},"title":"How to monitor your Linux servers with nmon","author":"Leonid Mamchenkov","date":"March 20, 2017","format":false,"excerpt":"\"How to monitor your Linux servers with nmon\" article provides some details on how to use the comprehensive server monitoring tool \"nmon\" (Nigel's Monitor) to keep an eye on your server or two. \u00a0If you have more than a handful of servers, you'd probably opt out for a full blown\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2017\/03\/nmon16f-500x357.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/11324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=11324"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/11324\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=11324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=11324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=11324"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=11324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}