{"id":56,"date":"2011-08-09T10:58:24","date_gmt":"2011-08-09T10:58:24","guid":{"rendered":"http:\/\/devopsny.com\/blog\/?p=56"},"modified":"2013-03-04T21:14:55","modified_gmt":"2013-03-04T21:14:55","slug":"check-disk-io-nagios","status":"publish","type":"post","link":"https:\/\/devopsny.com\/blog\/2011\/08\/09\/check-disk-io-nagios\/","title":{"rendered":"Check Disk IO &#8211; Nagios"},"content":{"rendered":"<div>\n<div>\n<div>\n<div>\n<p>Quick steps to start checking disk i\/o with nagios.<\/p>\n<div>\n<ol>\n<li>wget\u00a0 &#8211;no-check-certificate <a href=\"https:\/\/trac.id.ethz.ch\/projects\/nagios_plugins\/downloads\/check_diskio-3.2.3.tar.gz\">https:\/\/trac.id.ethz.ch\/projects\/nagios_plugins\/downloads\/check_diskio-3.2.3.tar.gz<\/a><\/li>\n<li>tar -xzvf check_diskio-3.2.3.tar.gz<\/li>\n<li>cd check_diskio-3.2.3<\/li>\n<li>vi check_diskio\n<ol>\n<li>change line 1 to #!\/usr\/bin\/perl, save and exit.<\/li>\n<\/ol>\n<\/li>\n<li>apt-get install libnagios-plugin-perl libarray-unique-perl libfile-slurp-perl liblist-moreutils-perl libnumber-format-perl libreadonly-perl<\/li>\n<li>cp check_diskio \/usr\/local\/icinga\/libexec\/check_diskio.pl<\/li>\n<li>vi \/usr\/local\/icinga\/etc\/nrpe.cfg\n<ol>\n<li>add the following line: command[check_diskio]=\/usr\/local\/icinga\/libexec\/check_diskio.pl -d \/dev\/dm-0 -w 200 -c 300<\/li>\n<li>killall nrpe<\/li>\n<li>\/usr\/local\/icinga\/bin\/nrpe -n -c \/usr\/local\/icinga\/etc\/nrpe.cfg -d to restart nrpe daemon.<\/li>\n<\/ol>\n<\/li>\n<li>modify config accordingly on the server and restart icinga.<\/li>\n<\/ol>\n<\/div>\n<p>Test:<\/p>\n<p>.\/check_diskio -d \/ -w 200 -c 300<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Quick steps to start checking disk i\/o with nagios. wget\u00a0 &#8211;no-check-certificate https:\/\/trac.id.ethz.ch\/projects\/nagios_plugins\/downloads\/check_diskio-3.2.3.tar.gz tar -xzvf check_diskio-3.2.3.tar.gz cd check_diskio-3.2.3 vi check_diskio change line 1 to #!\/usr\/bin\/perl, save and exit. apt-get install libnagios-plugin-perl libarray-unique-perl libfile-slurp-perl liblist-moreutils-perl libnumber-format-perl libreadonly-perl cp check_diskio \/usr\/local\/icinga\/libexec\/check_diskio.pl vi \/usr\/local\/icinga\/etc\/nrpe.cfg add the following line: command[check_diskio]=\/usr\/local\/icinga\/libexec\/check_diskio.pl -d \/dev\/dm-0 -w 200 -c 300 killall nrpe \/usr\/local\/icinga\/bin\/nrpe -n [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[16,17],"tags":[21,22],"class_list":["post-56","post","type-post","status-publish","format-standard","hentry","category-linux","category-nagios","tag-linux-2","tag-nagios-2"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3fcrv-U","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/comments?post=56"}],"version-history":[{"count":2,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts\/56\/revisions"}],"predecessor-version":[{"id":58,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts\/56\/revisions\/58"}],"wp:attachment":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/media?parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/categories?post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/tags?post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}