UNKNOWN: iostat not found or is not executable by the nagios user.

When i setup nagios monitoring for my ubuntu server, i noticed that there is an unknown status on CPU stats services.

nagios

I try to run check_cpu_stats command, i still get the same error also.

root@ADC-152-LIN-01:/usr/lib/nagios/plugins# sh check_cpu_stats.sh
UNKNOWN: iostat not found or is not executable by the nagios user.

From the error show, it seems like iostat not install on the Server. I try to install sysstat to see whether it work or not.

root@ADC-152-LIN-01:/usr/lib/nagios/plugins# apt-get install sysstat

After install, i tried to execute check_cpu_stats command. It work fine.

root@ADC-152-LIN-01:/usr/lib/nagios/plugins# sh check_cpu_stats.sh
CPU STATISTICS OK: user=0.00% system=0.00% iowait=0.00% idle=100.00% | user=0.0% system=0.0% iowait=0.0%;30;100 idle=100.00%

Please do share with me if you have any others alternative way to solve this problem. 🙂

 

One thought on “UNKNOWN: iostat not found or is not executable by the nagios user.

Leave a Reply

Your email address will not be published. Required fields are marked *