{"id":4651,"date":"2014-04-28T09:11:06","date_gmt":"2014-04-28T07:11:06","guid":{"rendered":"http:\/\/blog.zhaw.ch\/icclab\/?p=4651"},"modified":"2014-05-05T14:17:45","modified_gmt":"2014-05-05T12:17:45","slug":"nagios-ceilometer-integration-new-plugin-available","status":"publish","type":"post","link":"https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/","title":{"rendered":"Nagios \/ Ceilometer integration: new plugin available"},"content":{"rendered":"<p>The famous Nagios open source monitoring system has become a de facto standard in recent years. Unlike commercial monitoring solutions Nagios does not come as a one-size-fits-all monitoring system with thousands of monitoring agents and monitoring functions. Nagios is rather a small, lightweight monitoring system reduced to the bare essential of monitoring: an event management and notification engine. Nagios is very lightweight and flexible, but it must be extended in order to become a solution which is valuable for your organization. Plugins are a very important part in setting up a Nagios environment. Though Nagios is extremely customizable, there are no plugins that capture OpenStack specific metrics like number of floating IPs or network packets entering a virtual machine (even if there are some <a href=\"https:\/\/launchpad.net\/ubuntu\/+source\/nagios-plugins-openstack\">Nagios plugins<\/a> to check that OpenStack services are up and running).<\/p>\n<p>Ceilometer is the OpenStack component that captures these metrics. OpenStack measures typical performance indices like CPU utilization, Memory allocation, disk space used etc. for all VM instances within OpenStack. When an OpenStack environment has to be metered and monitored, Ceilometer is the right tool to do the job. Though Ceilometer is a quite powerful and flexible metering tool for OpenStack, it lacks capabilities to visualize the collected data.<\/p>\n<p>It can easily be seen that Nagios and Ceilometer are complementary products which can be used in an integrated solution. There are no Nagios plugins to integrate the Ceilometer API (though <a title=\"Enovance\" href=\"https:\/\/github.com\/enovance\/openstack-monitoring.git\" target=\"_blank\">Enovance<\/a> has developed plugins to check that OpenStack components alive) with the Nagios monitoring environment and therefore allow Nagios to monitor not only the OpenStack components, but also all the hosted VMs and other services.<\/p>\n<p>The ICCLab has developed a Nagios plugin which can be used to capture metrics through the Ceilometer API. The plugin is available <a title=\"download on Github\" href=\"https:\/\/github.com\/kobe6661\/nagios_ceilometer_plugin.git\" target=\"_blank\">download on Github<\/a>. The Ceilometer call plugin can be used to capture a Ceilometer metric and define thresholds for employing the nagios alerting system.<\/p>\n<p>In order to use the plugin simply copy it into your Nagios plugins folder (e. g. \/usr\/lib\/nagios\/plugins\/) and define a Nagios command in your commands.cfg file (in \/etc\/nagios\/objects\/commands.cfg). Don&#8217;t forget to make your Nagios plugin executable to the Nagios API (chmod u+x).<\/p>\n<p>A command to monitor the CPU utilization could look like this:<\/p>\n<pre><code>define command {\r\ncommand_name\u00a0\u00a0\u00a0 check_ceilometer-cpu-util\r\ncommand_line\u00a0\u00a0\u00a0 \/usr\/lib\/nagios\/plugins\/ceilometer-call -s \"cpu_util\" -t 50.0 -T 80.0\r\n}<\/code><\/pre>\n<p>Then you have to define a service that uses this command.<\/p>\n<pre><code>define service {\r\ncheck_command check_ceilometer-cpu-util\r\nhost_name\r\nnormal_check_interval 1\r\nservice_description OpenStack instances CPU utilization\r\nuse generic-service\r\n}<\/code><\/pre>\n<p>Now Nagios can employ Ceilometer API to monitor VMs inside OpenStack.<\/p>\n<div class=\"pt-sm\">Schlagw\u00f6rter: <a href=\"https:\/\/blog.zhaw.ch\/icclab\/tag\/ceilometer\/\">Ceilometer<\/a>, <a href=\"https:\/\/blog.zhaw.ch\/icclab\/tag\/monitoring\/\">monitoring<\/a>, <a href=\"https:\/\/blog.zhaw.ch\/icclab\/tag\/nagios\/\">nagios<\/a>, <a href=\"https:\/\/blog.zhaw.ch\/icclab\/tag\/plugin\/\">plugin<\/a><br><\/div>","protected":false},"excerpt":{"rendered":"<p>The famous Nagios open source monitoring system has become a de facto standard in recent years. Unlike commercial monitoring solutions Nagios does not come as a one-size-fits-all monitoring system with thousands of monitoring agents and monitoring functions. Nagios is rather a small, lightweight monitoring system reduced to the bare essential of monitoring: an event management [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[5,15,20,21],"tags":[65,225,409,410],"features":[],"class_list":["post-4651","post","type-post","status-publish","format-standard","hentry","category-articles","category-howtos","category-open-source","category-openstack-2","tag-ceilometer","tag-monitoring","tag-nagios","tag-plugin"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Nagios \/ Ceilometer integration: new plugin available - Service Engineering (ICCLab &amp; SPLab)<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Nagios \/ Ceilometer integration: new plugin available\" \/>\n<meta property=\"og:description\" content=\"The famous Nagios open source monitoring system has become a de facto standard in recent years. Unlike commercial monitoring solutions Nagios does not come as a one-size-fits-all monitoring system with thousands of monitoring agents and monitoring functions. Nagios is rather a small, lightweight monitoring system reduced to the bare essential of monitoring: an event management [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/\" \/>\n<meta property=\"og:site_name\" content=\"Service Engineering (ICCLab &amp; SPLab)\" \/>\n<meta property=\"article:published_time\" content=\"2014-04-28T07:11:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-05-05T12:17:45+00:00\" \/>\n<meta name=\"author\" content=\"benn\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"benn\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/\"},\"author\":{\"name\":\"benn\",\"@id\":\"https:\/\/blog.zhaw.ch\/icclab\/#\/schema\/person\/7f2dc402a572b3fc950027b8b809c0d6\"},\"headline\":\"Nagios \/ Ceilometer integration: new plugin available\",\"datePublished\":\"2014-04-28T07:11:06+00:00\",\"dateModified\":\"2014-05-05T12:17:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/\"},\"wordCount\":406,\"commentCount\":5,\"keywords\":[\"Ceilometer\",\"monitoring\",\"nagios\",\"plugin\"],\"articleSection\":[\"Articles\",\"HowTos\",\"Open Source\",\"OpenStack\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/\",\"url\":\"https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/\",\"name\":\"Nagios \/ Ceilometer integration: new plugin available - Service Engineering (ICCLab &amp; SPLab)\",\"isPartOf\":{\"@id\":\"https:\/\/blog.zhaw.ch\/icclab\/#website\"},\"datePublished\":\"2014-04-28T07:11:06+00:00\",\"dateModified\":\"2014-05-05T12:17:45+00:00\",\"author\":{\"@id\":\"https:\/\/blog.zhaw.ch\/icclab\/#\/schema\/person\/7f2dc402a572b3fc950027b8b809c0d6\"},\"breadcrumb\":{\"@id\":\"https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\/\/blog.zhaw.ch\/icclab\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Nagios \/ Ceilometer integration: new plugin available\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.zhaw.ch\/icclab\/#website\",\"url\":\"https:\/\/blog.zhaw.ch\/icclab\/\",\"name\":\"Service Engineering (ICCLab &amp; SPLab)\",\"description\":\"A Blog of the ZHAW Zurich University of Applied Sciences\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.zhaw.ch\/icclab\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/blog.zhaw.ch\/icclab\/#\/schema\/person\/7f2dc402a572b3fc950027b8b809c0d6\",\"name\":\"benn\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/432dd9c93af6d79a7b97feaee8c4bb7b88d9a3106b571ecc81ea2e7fecb0caf1?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/432dd9c93af6d79a7b97feaee8c4bb7b88d9a3106b571ecc81ea2e7fecb0caf1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/432dd9c93af6d79a7b97feaee8c4bb7b88d9a3106b571ecc81ea2e7fecb0caf1?s=96&d=mm&r=g\",\"caption\":\"benn\"},\"sameAs\":[\"http:\/\/blog.zhaw.ch\/icclab\"],\"url\":\"https:\/\/blog.zhaw.ch\/icclab\/author\/benn\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Nagios \/ Ceilometer integration: new plugin available - Service Engineering (ICCLab &amp; SPLab)","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/","og_locale":"en_US","og_type":"article","og_title":"Nagios \/ Ceilometer integration: new plugin available","og_description":"The famous Nagios open source monitoring system has become a de facto standard in recent years. Unlike commercial monitoring solutions Nagios does not come as a one-size-fits-all monitoring system with thousands of monitoring agents and monitoring functions. Nagios is rather a small, lightweight monitoring system reduced to the bare essential of monitoring: an event management [&hellip;]","og_url":"https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/","og_site_name":"Service Engineering (ICCLab &amp; SPLab)","article_published_time":"2014-04-28T07:11:06+00:00","article_modified_time":"2014-05-05T12:17:45+00:00","author":"benn","twitter_card":"summary_large_image","twitter_misc":{"Written by":"benn","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/#article","isPartOf":{"@id":"https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/"},"author":{"name":"benn","@id":"https:\/\/blog.zhaw.ch\/icclab\/#\/schema\/person\/7f2dc402a572b3fc950027b8b809c0d6"},"headline":"Nagios \/ Ceilometer integration: new plugin available","datePublished":"2014-04-28T07:11:06+00:00","dateModified":"2014-05-05T12:17:45+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/"},"wordCount":406,"commentCount":5,"keywords":["Ceilometer","monitoring","nagios","plugin"],"articleSection":["Articles","HowTos","Open Source","OpenStack"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/","url":"https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/","name":"Nagios \/ Ceilometer integration: new plugin available - Service Engineering (ICCLab &amp; SPLab)","isPartOf":{"@id":"https:\/\/blog.zhaw.ch\/icclab\/#website"},"datePublished":"2014-04-28T07:11:06+00:00","dateModified":"2014-05-05T12:17:45+00:00","author":{"@id":"https:\/\/blog.zhaw.ch\/icclab\/#\/schema\/person\/7f2dc402a572b3fc950027b8b809c0d6"},"breadcrumb":{"@id":"https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.zhaw.ch\/icclab\/nagios-ceilometer-integration-new-plugin-available\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/blog.zhaw.ch\/icclab\/"},{"@type":"ListItem","position":2,"name":"Nagios \/ Ceilometer integration: new plugin available"}]},{"@type":"WebSite","@id":"https:\/\/blog.zhaw.ch\/icclab\/#website","url":"https:\/\/blog.zhaw.ch\/icclab\/","name":"Service Engineering (ICCLab &amp; SPLab)","description":"A Blog of the ZHAW Zurich University of Applied Sciences","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.zhaw.ch\/icclab\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/blog.zhaw.ch\/icclab\/#\/schema\/person\/7f2dc402a572b3fc950027b8b809c0d6","name":"benn","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/432dd9c93af6d79a7b97feaee8c4bb7b88d9a3106b571ecc81ea2e7fecb0caf1?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/432dd9c93af6d79a7b97feaee8c4bb7b88d9a3106b571ecc81ea2e7fecb0caf1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/432dd9c93af6d79a7b97feaee8c4bb7b88d9a3106b571ecc81ea2e7fecb0caf1?s=96&d=mm&r=g","caption":"benn"},"sameAs":["http:\/\/blog.zhaw.ch\/icclab"],"url":"https:\/\/blog.zhaw.ch\/icclab\/author\/benn\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.zhaw.ch\/icclab\/wp-json\/wp\/v2\/posts\/4651","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zhaw.ch\/icclab\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zhaw.ch\/icclab\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zhaw.ch\/icclab\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zhaw.ch\/icclab\/wp-json\/wp\/v2\/comments?post=4651"}],"version-history":[{"count":9,"href":"https:\/\/blog.zhaw.ch\/icclab\/wp-json\/wp\/v2\/posts\/4651\/revisions"}],"predecessor-version":[{"id":4933,"href":"https:\/\/blog.zhaw.ch\/icclab\/wp-json\/wp\/v2\/posts\/4651\/revisions\/4933"}],"wp:attachment":[{"href":"https:\/\/blog.zhaw.ch\/icclab\/wp-json\/wp\/v2\/media?parent=4651"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zhaw.ch\/icclab\/wp-json\/wp\/v2\/categories?post=4651"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zhaw.ch\/icclab\/wp-json\/wp\/v2\/tags?post=4651"},{"taxonomy":"features","embeddable":true,"href":"https:\/\/blog.zhaw.ch\/icclab\/wp-json\/wp\/v2\/features?post=4651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}