How to track if nfs world server using zabbix?

In fact there is a critical service that primenjena ball nfs main server.
What better way to see that the ball has fallen off or broken?

October 3rd 19 at 02:04
2 answers
October 3rd 19 at 02:06

Hang on Kron script every minute which will check if a file in the ball.

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 - easier to edit in one place.[" [ `cat /mnt/nfs/1.txt` = 1 ] && echo 1 || echo 0"]

Find more questions by tags Zabbix