Steps to configure :

#1) Download and install Linux Server Monitoring Agent in the server where the directories are mounted ( commonly called as NFS Client servers )

#2) Create a new directory named 'nfs' under Site24x7 Linux Agent plugin directory - /opt/site24x7/monagent/plugins

NFS Mounts Configuration :

#2) Copy the files 'nfs.py' and 'nfs_check.sh' from the attachement to the nfs plugin directory (/opt/site24x7/monagent/plugins/nfs)

#3) Edit the file nfs.py to enter the mount points for monitoring

		For eg - NFS_MOUNT=["/mnt/nfs/home"] ( or ) NFS_MOUNT=["/mnt/nfs/home","/mnt/nfs/var/nfs"]

#4) Restart the agent to mark the plugin for monitoring and the same can be viewed in Site24x7 Client.

Plugin Explanation : 

#1) If all the mounts configured are working properly , plugin output would be as follows :

		{
	    	"/mnt/nfs/home_status": 1, 
    		"heartbeat_required": "true", 
    		"plugin_version": "1"
		}

	mount point status is captured under the key <mount_point>_status. ( 1 - available | 2 - unmounted | 3 - host server is not reachable )

#2) If the configured mount is unmounted , plugin output would be as follows :

		{
		    "/mnt/nfs/var/nfs_status": 2, 
	    	"heartbeat_required": "true", 
	    	"msg": "/mnt/nfs/var/nfs is unmounted", 
	    	"plugin_version": "1", 
	    	"status": 0
		}

#3) If the NFS host server is not reachable , plugin output would be as follows :

		{
		    "/mnt/nfs/var/nfs_status": 3, 
	    	"heartbeat_required": "true", 
	    	"msg": "/mnt/nfs/home - NFS Server Host is unreachable", 
	    	"plugin_version": "1", 
	    	"status": 0
		}
