{"id":1293,"date":"2018-10-05T10:35:25","date_gmt":"2018-10-05T08:35:25","guid":{"rendered":"http:\/\/www.ayhanarda.com\/blog\/?p=1293"},"modified":"2018-10-05T10:35:55","modified_gmt":"2018-10-05T08:35:55","slug":"var-run-icinga2-cmd-icinga2-cmd-permission-denied-hatasi","status":"publish","type":"post","link":"https:\/\/www.ayhanarda.com\/blog\/2018\/10\/var-run-icinga2-cmd-icinga2-cmd-permission-denied-hatasi\/","title":{"rendered":"&#8220;\/var\/run\/icinga2\/cmd\/icinga2.cmd&#8221;: Permission denied hatas\u0131"},"content":{"rendered":"<p>&#8220;\/var\/run\/icinga2\/cmd\/icinga2.cmd&#8221;: Permission denied hatas\u0131<\/p>\n<p>Ic\u0131nga2 de, icingaweb2 \u00fczerinden i\u015flem yapmaya \u00e7al\u0131\u015ft\u0131\u011f\u0131n\u0131zda a\u015fa\u011f\u0131daki hatay\u0131 al\u0131yor olabilirsiniz.<\/p>\n<p><a href=\"http:\/\/www.ayhanarda.com\/blog\/wp-content\/uploads\/2018\/10\/icinga2-cmd.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1294\" src=\"http:\/\/www.ayhanarda.com\/blog\/wp-content\/uploads\/2018\/10\/icinga2-cmd.png\" alt=\"\" width=\"1875\" height=\"733\" srcset=\"https:\/\/www.ayhanarda.com\/blog\/wp-content\/uploads\/2018\/10\/icinga2-cmd.png 1875w, https:\/\/www.ayhanarda.com\/blog\/wp-content\/uploads\/2018\/10\/icinga2-cmd-300x117.png 300w, https:\/\/www.ayhanarda.com\/blog\/wp-content\/uploads\/2018\/10\/icinga2-cmd-768x300.png 768w, https:\/\/www.ayhanarda.com\/blog\/wp-content\/uploads\/2018\/10\/icinga2-cmd-1024x400.png 1024w, https:\/\/www.ayhanarda.com\/blog\/wp-content\/uploads\/2018\/10\/icinga2-cmd-720x281.png 720w\" sizes=\"auto, (max-width: 1875px) 100vw, 1875px\" \/><\/a><\/p>\n<p>Icinga\\Module\\Monitoring\\Exception\\CommandTransportException in \/usr\/share\/icingaweb2\/modules\/monitoring\/library\/Monitoring\/Command\/Transport\/LocalCommandFile.php:161 with message: Can&#8217;t send external Icinga command to the local command file &#8220;\/var\/run\/icinga2\/cmd\/icinga2.cmd&#8221;: Permission denied<\/p>\n<p>\u00d6ncelikle \/var\/run\/icinga2\/cmd\/ dizininde icinga2.cmd dosyas\u0131n\u0131n olup olmad\u0131\u011f\u0131n\u0131 kontrol edelim.<\/p>\n<p>ayhanarda@icinga2:\/var\/run\/icinga2\/cmd# ls -al<br \/>\ntotal 0<br \/>\ndrwxr-s&#8212; 2 nagios www-data 60 Oct 5 11:18 .<br \/>\ndrwxrwx&#8212; 3 nagios www-data 80 Oct 5 11:18 ..<br \/>\nayhanarda@icinga2:\/var\/run\/icinga2\/cmd#<\/p>\n<p>G\u00f6z\u00fcken o ki dosyam\u0131z burada de\u011fil. O halde icinga2 mizin \u00f6zellik listesinde neler olup olmad\u0131\u011f\u0131na bir g\u00f6z atal\u0131m.<\/p>\n<p>ayhanarda@icinga2:\/var\/run\/icinga2\/cmd# <strong>icinga2 feature list<\/strong><br \/>\nDisabled features: compatlog <strong>command<\/strong> debuglog gelf graphite influxdb livestatus opentsdb perfdata statusdata syslog<br \/>\nEnabled features: api checker ido-mysql mainlog notification<\/p>\n<p>Bu icinga2.cmd dosyam\u0131z\u0131n \u00e7al\u0131\u015fmas\u0131 i\u00e7in command \u00f6zelli\u011finin disabled feature larda de\u011fil enable feature larda olmas\u0131 gerekir yani command \u00f6zelli\u011fini aktif etmeliyiz. Komutumuz a\u015fa\u011f\u0131daki gibi olmal\u0131.<\/p>\n<p>ayhanarda@icinga2:\/var\/run\/icinga2\/cmd# <strong>icinga2 feature enable command<\/strong><\/p>\n<p>\u015eimdi tekrar feature list e bakal\u0131m.<\/p>\n<p>ayhanarda@icinga2:\/var\/run\/icinga2\/cmd# icinga2 feature list<br \/>\nDisabled features: compatlog debuglog gelf graphite influxdb livestatus opentsdb perfdata statusdata syslog<br \/>\nEnabled features: api checker <strong>command<\/strong> ido-mysql mainlog notification<\/p>\n<p>G\u00f6r\u00fcld\u00fc\u011f\u00fc \u00fczere enable olmu\u015f durumda , peki dosyam\u0131z yerine gelmi\u015f mi?<\/p>\n<p>ayhanarda@icinga2:\/var\/run\/icinga2\/cmd# ls -al<br \/>\ntotal 0<br \/>\ndrwxr-s&#8212; 2 nagios www-data 60 Oct 5 11:18 .<br \/>\ndrwxrwx&#8212; 3 nagios www-data 80 Oct 5 11:18 ..<br \/>\nprw-rw&#8212;- 1 nagios www-data 0 Oct 5 11:20 <strong>icinga2.cmd<\/strong><\/p>\n<p>O halde \u015fimdi tekrar icinga2web \u00fczerinden tekrar i\u015flem yapt\u0131\u011f\u0131n\u0131zda konu ba\u015fl\u0131\u011f\u0131ndaki hatay\u0131 alm\u0131yor olacaks\u0131n\u0131z.<\/p>\n<p>Ayhan ARDA<\/p>\n<div style=\"padding-bottom:20px; padding-top:10px;\" class=\"hupso-share-buttons\"><!-- Hupso Share Buttons - https:\/\/www.hupso.com\/share\/ --><a class=\"hupso_toolbar\" href=\"https:\/\/www.hupso.com\/share\/\"><img decoding=\"async\" src=\"https:\/\/static.hupso.com\/share\/buttons\/lang\/tr\/share-medium.png\" style=\"border:0px; padding-top: 5px; float:left;\" alt=\"Share Button\"\/><\/a><script type=\"text\/javascript\">var hupso_services_t=new Array(\"Twitter\",\"Facebook\",\"Google Plus\",\"Pinterest\",\"Linkedin\");var hupso_background_t=\"#EAF4FF\";var hupso_border_t=\"#66CCFF\";var hupso_toolbar_size_t=\"medium\";var hupso_image_folder_url = \"\";var hupso_twitter_via=\"ayhanarda\";var hupso_url_t=\"\";var hupso_title_t=\"%22%2Fvar%2Frun%2Ficinga2%2Fcmd%2Ficinga2.cmd%22%3A%20Permission%20denied%20hatas%C4%B1\";<\/script><script type=\"text\/javascript\" src=\"https:\/\/static.hupso.com\/share\/js\/share_toolbar.js\"><\/script><!-- Hupso Share Buttons --><\/div>","protected":false},"excerpt":{"rendered":"&#8220;\/var\/run\/icinga2\/cmd\/icinga2.cmd&#8221;: Permission denied hatas\u0131 Ic\u0131nga2 de, icingaweb2 \u00fczerinden i\u015flem yapmaya \u00e7al\u0131\u015ft\u0131\u011f\u0131n\u0131zda a\u015fa\u011f\u0131daki hatay\u0131 al\u0131yor olabilirsiniz. Icinga\\Module\\Monitoring\\Exception\\CommandTransportException in \/usr\/share\/icingaweb2\/modules\/monitoring\/library\/Monitoring\/Command\/Transport\/LocalCommandFile.php:161 with message: Can&#8217;t send external Icinga command to the local command file &#8220;\/var\/run\/icinga2\/cmd\/icinga2.cmd&#8221;: Permission denied \u00d6ncelikle \/var\/run\/icinga2\/cmd\/ dizininde icinga2.cmd dosyas\u0131n\u0131n olup olmad\u0131\u011f\u0131n\u0131 kontrol edelim. ayhanarda@icinga2:\/var\/run\/icinga2\/cmd# ls -al total 0 drwxr-s&#8212; 2 nagios www-data 60 Oct 5 11:18 [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"categories":[747,1293],"tags":[748,763,1295,1296,1297,1294],"class_list":["post-1293","post","type-post","status-publish","format-standard","hentry","category-icinga","category-icinga2","tag-icinga","tag-icinga2","tag-icinga2-cmd","tag-icinga2-error","tag-icinga2-hata","tag-icinga2-permission-denied"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ayhanarda.com\/blog\/wp-json\/wp\/v2\/posts\/1293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ayhanarda.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ayhanarda.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ayhanarda.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ayhanarda.com\/blog\/wp-json\/wp\/v2\/comments?post=1293"}],"version-history":[{"count":1,"href":"https:\/\/www.ayhanarda.com\/blog\/wp-json\/wp\/v2\/posts\/1293\/revisions"}],"predecessor-version":[{"id":1295,"href":"https:\/\/www.ayhanarda.com\/blog\/wp-json\/wp\/v2\/posts\/1293\/revisions\/1295"}],"wp:attachment":[{"href":"https:\/\/www.ayhanarda.com\/blog\/wp-json\/wp\/v2\/media?parent=1293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ayhanarda.com\/blog\/wp-json\/wp\/v2\/categories?post=1293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ayhanarda.com\/blog\/wp-json\/wp\/v2\/tags?post=1293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}