{"id":1355,"date":"2020-10-15T16:35:23","date_gmt":"2020-10-15T03:35:23","guid":{"rendered":"https:\/\/www.ronella.xyz\/?p=1355"},"modified":"2020-10-15T16:35:23","modified_gmt":"2020-10-15T03:35:23","slug":"downloading-the-nagios-check_url-pl-plugin-in-ubuntu","status":"publish","type":"post","link":"https:\/\/www.ronella.xyz\/?p=1355","title":{"rendered":"Downloading the Nagios check_url.pl Plugin in Ubuntu"},"content":{"rendered":"<h1>Downloading the check_url.pl plugin<\/h1>\n<ol>\n<li>Change to the nagios plugin directory:\n<pre style=\"white-space: pre;\">cd \/usr\/local\/nagios\/libexec\/<\/pre>\n<\/li>\n<li>Download the <strong>check_url.pl plugin<\/strong>:\n<pre style=\"white-space: pre;\">sudo wget -O check_url.pl \"https:\/\/exchange.nagios.org\/components\/com_mtree\/attachment.php?link_id=1395&amp;cf_id=24\"<\/pre>\n<\/li>\n<li>Make the plugin executable:\n<pre style=\"white-space: pre;\">sudo chmod 755 check_url.pl<\/pre>\n<\/li>\n<li>Update the file check_url.pl to replace all <strong>tmp_<\/strong> with <strong>\/tmp\/tmp_<\/strong> text <em>(i.e. if you are using <strong>vi<\/strong> for editing using the following:)<\/em>\n<pre style=\"white-space: pre;\">%s#tmp_#\/tmp\/tmp_#g<\/pre>\n<\/li>\n<\/ol>\n<h1>Testing The Plugin<\/h1>\n<pre style=\"white-space: pre;\">\/usr\/local\/nagios\/libexec\/check_url.pl https:\/\/www.google.com<\/pre>\n<p>Expect to see the following output:<\/p>\n<pre style=\"white-space: pre;\">OK: 200  OK<\/pre>\n<h1>Displaying the Help<\/h1>\n<pre style=\"white-space: pre;\">\/usr\/local\/nagios\/libexec\/check_url.pl -h<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Downloading the check_url.pl plugin Change to the nagios plugin directory: cd \/usr\/local\/nagios\/libexec\/ Download the check_url.pl plugin: sudo wget -O check_url.pl &#8220;https:\/\/exchange.nagios.org\/components\/com_mtree\/attachment.php?link_id=1395&amp;cf_id=24&#8221; Make the plugin executable: sudo chmod 755 check_url.pl Update the file check_url.pl to replace all tmp_ with \/tmp\/tmp_ text (i.e. if you are using vi for editing using the following:) %s#tmp_#\/tmp\/tmp_#g Testing The Plugin [&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\/1355"}],"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=1355"}],"version-history":[{"count":1,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/1355\/revisions"}],"predecessor-version":[{"id":1356,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/1355\/revisions\/1356"}],"wp:attachment":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}