P
P
Puma Thailand2013-11-16 10:34:02
Zabbix
Puma Thailand, 2013-11-16 10:34:02

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

2 answer(s)
S
Stepan, 2013-11-16
@L3n1n

Hang a script on the cron that will check every minute whether the file is available in the ball.

B
BasilioCat, 2013-11-20
@BasilioCat

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 question

Ask a Question

731 491 924 answers to any question