check_file_pass
This is a very simple text file parser that reads a text file, returns the contents to NRPE, and flags the appropriate Exit Code.
Installation
Copy the executable to the C:\Program Files\NSClient++\nagiosplugincol
folder.
Edit NSC.ini and add:
command[check_file_pass]=C:\Program Files\NSClient++\nagiosplugincol\check_file_pass.exe -f $ARG1$
then restart the NSClient++ service. Then edit your host's cfg file accordingly:
sudo nano /etc/nagios3/objects/host.cfg
define service{
use generic-service
host_name host
service_description test
check_command check_nrpe_1arg!check_file_pass
}
sudo service nagios3 restart