[nagios]disk_check does not work in nagios

Cause: The target directory is inaccessible to the nagios user.

1.add “sudo” to “nrpe.cfg”
command[check_disk]=Sudo /usr/lib64/nagios/plugins/check_disk

2.add “nagios sudo” to “sudoer”
nagios ALL=(ALL:ALL) NOPASSWD: ALL

コメント

タイトルとURLをコピーしました