{"id":1020,"date":"2012-09-24T11:07:28","date_gmt":"2012-09-24T16:07:28","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=1020"},"modified":"2012-09-24T11:07:28","modified_gmt":"2012-09-24T16:07:28","slug":"nagios-monitor-confluence-jira","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2012\/09\/nagios-monitor-confluence-jira\/","title":{"rendered":"Nagios Monitor Confluence Jira"},"content":{"rendered":"<p>Recently had to start monitoring a confluence installation on a virtual server using Nagios.  Nagios&#8217;s built-in check_http looked like it could solve my woes.  Unfortunately this was a slight pain due to the fact that confluence uses a non-standard port.  So I had to relearn the commands.<\/p>\n<p>I edited the service check first<br \/>\n<code>nano \/usr\/local\/nagios\/etc\/objects\/commands.cfg<\/code><br \/>\nI copied the check_http command into a new one:<\/p>\n<blockquote><p>define command {<br \/>\n        command_name    check_http_port<br \/>\n        command_line    $USER1$\/check_http -I $ARG1$ -u $ARG2$ -p $ARG3$ -s $ARG4$<br \/>\n}<\/p><\/blockquote>\n<p>So the command would be .\/check_http -I (IP\/Hostname) -u (URL Full Address) -p (Port) -s (String to look for).  Technically this will already warn if there is a 400 or 500 error, but I also wanted to verify that the string could be found.<\/p>\n<p>Now we edit the configuration of the system itself<br \/>\n<code>nano \/usr\/local\/nagios\/etc\/objects\/confluence.cfg<\/code><\/p>\n<blockquote><p>define host{<br \/>\n        use             linux-server<br \/>\n        host_name       confluence<br \/>\n        alias           confluence<br \/>\n        address         10.555.555.555<br \/>\n        parents         parent1, switch1, mfer1<br \/>\n        hostgroups      linux-production-servers, datacenter2<br \/>\n        }<\/p>\n<p>define service{<br \/>\n        use                     generic-service<br \/>\n        host_name               confluence<br \/>\n        service_description     HTTP<br \/>\n        check_command           check_http_port!confluence!http:\/\/confluence:8090\/login.action?os_destination=%2Fhomepage.action!8090!&#8221;Remember me&#8221;<br \/>\n        }\n<\/p><\/blockquote>\n<p>Using the above check_command, you&#8217;re able to connect to the server and port listed above and check for the familiar login &#8220;remember me&#8221; string.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently had to start monitoring a confluence installation on a virtual server using Nagios. Nagios&#8217;s built-in check_http looked like it could solve my woes. Unfortunately this was a slight pain due to the fact that confluence uses a non-standard port. So I had to relearn the commands. I edited the service check first nano \/usr\/local\/nagios\/etc\/objects\/commands.cfg &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2012\/09\/nagios-monitor-confluence-jira\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Nagios Monitor Confluence Jira<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1020","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1020","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=1020"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1020\/revisions"}],"predecessor-version":[{"id":1021,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1020\/revisions\/1021"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=1020"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=1020"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=1020"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}