How check exist file in windows serwer



i want check exist file for windows in nagios

i don’t know how do it.

for example i want check this file is in remote location: //hostname/dir/file.txt


I beleive you should look into a nrpe agent to on the remote host. E.g. NSClient++.
You also could (but probably shouldn’t) share the folder and use check_disk_smb to check it directly from nagios.