{"id":1357,"date":"2020-10-15T17:01:15","date_gmt":"2020-10-15T04:01:15","guid":{"rendered":"https:\/\/www.ronella.xyz\/?p=1357"},"modified":"2020-10-16T13:20:08","modified_gmt":"2020-10-16T00:20:08","slug":"monitoring-artifactory-service-with-nagios","status":"publish","type":"post","link":"https:\/\/www.ronella.xyz\/?p=1357","title":{"rendered":"Monitoring Artifactory Service with Nagios"},"content":{"rendered":"<h1>Requirement<\/h1>\n<ul>\n<li>check_jmx plugin<\/li>\n<\/ul>\n<h1>Enable JMX on Artifactory<\/h1>\n<ol>\n<li>Update the <strong>\/var\/opt\/jfrog\/artifactory\/etc\/default file<\/strong> to add the following:\n<pre style=\"white-space: pre;\">export JAVA_OPTIONS=\"$JAVA_OPTIONS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=5000 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false\"<\/pre>\n<blockquote><p>If you wanted to connect remotely (e.g. jconsole) add the following argument:<\/p>\n<pre style=\"white-space: pre;\">-Djava.rmi.server.hostname=&lt;IP_ADDRESS&gt;<\/pre>\n<\/blockquote>\n<\/li>\n<li>Restart the <strong>artifactory service<\/strong>:\n<pre style=\"white-space: pre;\">sudo systemctl restart artifactory.service<\/pre>\n<\/li>\n<\/ol>\n<h1>Testing with check_jmx plugin<\/h1>\n<pre style=\"white-space: pre;\">\/usr\/local\/nagios\/libexec\/check_jmx\/nagios\/plugin\/check_jmx -U service:jmx:rmi:\/\/\/jndi\/rmi:\/\/localhost:5000\/jmxrmi -O \"org.jfrog.artifactory:instance=Artifactory, type=Storage,prop=Binary Storage\" -A Size<\/pre>\n<p>Expect to see something similar to the following output:<\/p>\n<pre style=\"white-space: pre;\">JMX OK Size=377653571<\/pre>\n<p><em><strong>Related Post<\/strong><\/em><br \/>\n<em><a href=\"https:\/\/www.ronella.xyz\/?p=1350\" target=\"_blank\" rel=\"noopener noreferrer\">Downloading the Nagios check_jmx Plugin in Ubuntu<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Requirement check_jmx plugin Enable JMX on Artifactory Update the \/var\/opt\/jfrog\/artifactory\/etc\/default file to add the following: export JAVA_OPTIONS=&#8221;$JAVA_OPTIONS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=5000 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false&#8221; If you wanted to connect remotely (e.g. jconsole) add the following argument: -Djava.rmi.server.hostname=&lt;IP_ADDRESS&gt; Restart the artifactory service: sudo systemctl restart artifactory.service Testing with check_jmx plugin \/usr\/local\/nagios\/libexec\/check_jmx\/nagios\/plugin\/check_jmx -U service:jmx:rmi:\/\/\/jndi\/rmi:\/\/localhost:5000\/jmxrmi -O &#8220;org.jfrog.artifactory:instance=Artifactory, type=Storage,prop=Binary Storage&#8221; -A [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[55,65,13,28,12],"tags":[],"_links":{"self":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/1357"}],"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=1357"}],"version-history":[{"count":2,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/1357\/revisions"}],"predecessor-version":[{"id":1359,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/1357\/revisions\/1359"}],"wp:attachment":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}