Hang on Kron script every minute which will check if a file in the ball.
Elmira.Macejkovic39 answered on October 3rd 19 at 02:08
If hard mounted then it's bad. An indirect criterion is to try to read a file with balloons (just checking the existence is not always suitable - in nfs client can be included in the attribute cache), and if Zabbix agent drove off .nodata(120)=1 is broken. In the case of plugging eventually leave all instances of the agent can be that will take off an alert about the unavailability of the host. If the mount was a soft option, it is likely that over time will come off.
PS: Operations with files, I recommend using system.run - easier to edit in one place.
system.run[" [ `cat /mnt/nfs/1.txt` = 1 ] && echo 1 || echo 0"]