下载地址:https://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/Check-Iostat-Updated/details 服务器上需先装有sysstat软件 对脚本进行修改(默认为$12,12为w_await值,14为%util值,Ubuntu 18.04改为16,20.04为21,可以通过iostat -x 1 > aa.txt,然后cat aa.txt | head -n 20 | tail -n ...
BEGIN failed--compilation aborted at ./check_iostat line 25. 解决办法: yum install -y perl-Params-Validate perl-Math-Calc-Units perl-Regexp-Commonperl-Class-Accessor perl-Config-Tiny perl-Nagios-Plugin.noarch 然后: Can't locate Regexp/Common.pm 报什么错就安装什么包 wget http://search.cpan...
command[check_diskio]=/usr/lib/nagios/plugins/check_iostat -w 180 -c 190 -u sdb1 :wq 监控端: # vi /etc/icinga2/conf.d/templates.conf object CheckCommand "nrpe-diskio" { import "nrpe-common" vars.nrpe_command = "check_diskio" } :wq # vi /etc/icinga2/conf.d/services.conf (s...