Hello
 
First nrpe only returns one line from output so if your restarting procedure returns multiple lines you wont see all the lines from the check_nrpe.
second i see you are passing arguments with -a did you enable nrpe with command arguments ?
and final you can call sudo before your script "/usr/bin/sudo /usr/local/nagios/libexec/check_disk ..." other then that seems you doing it perfectly fine
 
Moshe Sharon

Reply via email to