{"id":1350,"date":"2020-10-15T16:04:07","date_gmt":"2020-10-15T03:04:07","guid":{"rendered":"https:\/\/www.ronella.xyz\/?p=1350"},"modified":"2020-10-15T16:32:07","modified_gmt":"2020-10-15T03:32:07","slug":"downloading-the-nagios-check_jmx-plugin-in-ubuntu","status":"publish","type":"post","link":"https:\/\/www.ronella.xyz\/?p=1350","title":{"rendered":"Downloading the Nagios check_jmx Plugin in Ubuntu"},"content":{"rendered":"<h1>Downloading the check_jmx plugin<\/h1>\n<ol>\n<li>Change the directory to your home directory:\n<pre style=\"white-space: pre;\">cd ~<\/pre>\n<\/li>\n<li>Download the <strong>check_jmx plugin<\/strong>:\n<pre style=\"white-space: pre;\">wget -O check_jmx.tgz \"https:\/\/exchange.nagios.org\/components\/com_mtree\/attachment.php?link_id=1274&amp;cf_id=24\"<\/pre>\n<\/li>\n<li>Extract the downloaded plugin:\n<pre style=\"white-space: pre;\">tar xvf check_jmx.tgz<\/pre>\n<\/li>\n<li>Move the plugin to <strong>\/usr\/local\/nagios\/libexec\/<\/strong> directory:\n<pre style=\"white-space: pre;\">sudo mv check_jmx \/usr\/local\/nagios\/libexec\/<\/pre>\n<\/li>\n<li>Update the file <strong>\/usr\/local\/nagios\/libexec\/check_jmx\/nagios\/plugin\/check_jmx<\/strong> to enclose the <strong>$@<\/strong> with double quotation marks:\n<pre style=\"white-space: pre;\">\"$@\"<\/pre>\n<blockquote><p>Thus the whole java line will become:<\/p>\n<pre style=\"white-space: pre;\">java -cp $RDIR\/jmxquery.jar org.nagios.JMXQuery \"$@\"<\/pre>\n<p>The use of the double quote is to handle space character properly<\/p><\/blockquote>\n<\/li>\n<\/ol>\n<h1>Displaying the Help<\/h1>\n<pre style=\"white-space: pre;\">\/usr\/local\/nagios\/libexec\/check_jmx\/nagios\/plugin\/check_jmx -help<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Downloading the check_jmx plugin Change the directory to your home directory: cd ~ Download the check_jmx plugin: wget -O check_jmx.tgz &#8220;https:\/\/exchange.nagios.org\/components\/com_mtree\/attachment.php?link_id=1274&amp;cf_id=24&#8221; Extract the downloaded plugin: tar xvf check_jmx.tgz Move the plugin to \/usr\/local\/nagios\/libexec\/ directory: sudo mv check_jmx \/usr\/local\/nagios\/libexec\/ Update the file \/usr\/local\/nagios\/libexec\/check_jmx\/nagios\/plugin\/check_jmx to enclose the $@ with double quotation marks: &#8220;$@&#8221; Thus the whole java [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[65,12],"tags":[],"_links":{"self":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/1350"}],"collection":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1350"}],"version-history":[{"count":4,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/1350\/revisions"}],"predecessor-version":[{"id":1354,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/1350\/revisions\/1354"}],"wp:attachment":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}