Answer the question
In order to leave comments, you need to log in
How to track if the nfs share is live on the server via zabbix?
Actually there is a critical service to which the ball is attached via nfs from the main server.
What is the best way to find out if the ball has fallen off or hung?
Answer the question
In order to leave comments, you need to log in
Hang a script on the cron that will check every minute whether the file is available in the ball.
If mounted in hard then everything is bad. An indirect criterion is to try to read some file with shares (just checking for existence is not always suitable - the nfs client may have attribute cache enabled), and if the zabbix agent drove off .nodata(120)=1 then it broke. In the event of a gag, all agent instances will eventually leave, it may be that an alert about the unavailability of the host will fly out. If the mount was with the soft option, then there is a chance that it will come off over time.
PS: I recommend file operations through system.run - it's more convenient to edit in one place.
system.run[" [ `cat /mnt/nfs/1.txt` = 1 ] && echo 1 || echo 0"]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question