Network File System (NFS) is used for file sharing between Linux servers. It provides a centralized storage solution and easy access to remote files. This plugin shows the status of the configured NFS mount points in the server.
Prerequisites
- Our Linux server monitoring agent should be installed in the network or on the specific host where the NFS mount is running.
- While adding a plugin, the plugin name and its folder name inside the Site24x7 agent should be identical.
Plugin Installation
- Download and install the latest version of the Site24x7 Linux agent in the server where you plan to run the plugin. If it is installed successfully, you will see a Linux server monitor in the Site24x7 Control Panel. This confirms that the agent is able to communicate with our data center.
- Download the nfs.py and the nfs.cfg files from our GitHub repository.
wget https://raw.githubusercontent.com/site24x7/plugins/master/nfs/nfs.pywget https://raw.githubusercontent.com/site24x7/plugins/master/nfs/nfs.cfg
- Edit the file 'nfs.cfg' to enter the mount points for monitoring.
[display_name]mount_folder = “/mnt/backup”
- To check if the plugin is working, execute the command below with appropriate arguments and check for a valid JSON output with applicable metrics and their corresponding value.
python nfs.py --mount_folder= “mount_folder_path-1"
- Create a folder with the name 'nfs', under the Site24x7 Linux agent plugin directory '/opt/site24x7/monagent/plugins/' and place the nfs.py, nfs_check.sh, and nfs.cfg files under '/opt/site24x7/monagent/plugins/nfs/'.
The agent will automatically execute the plugin within five minutes and send performance data to the Site24x7 data center.
View Data in the Site24x7 Web Client
- Log in to Site24x7 and go to Server > Plugins > click on the name of the plugin monitor.
- You will be able to view the performance charts on the various metrics for your NFS system.
Plugin Contribution
Feel free to contribute to our existing plugin and come up with suggestions or feedback on our Community.