Suggestion for monitoring a networked file system (NFS)

Networked file system (NFS) is very complex to both monitor and send notifications. System Administrators are concerned with the network, cluster, server hardware and software and managing the file system. End user concerns are drive space and availability. Nagios® provides the perfect solution to monitoring a NFS.

Scenario

Upper management is concerned about the NFS. End users are complaining about not having access to or the ability to save files to a shared drive. How can Nagios® save-the-day once again?

Solution

  1. Identify how the system works. Create a diagram on a white-board and encourage input from all administrators. The diagram needs to include all hosts, host name aliases, special software, cnames, file names and at least one switch level above the hosts.

  2. Using a diagramming tool, like DIA, transfer the white-board diagram to a file (you will need the diagram later).

  3. Identify objects. Nagios® has two types of objects: hosts and services. You need to write down all the objects. Host objects should include: switches, servers and host aliases. Services should include all service checks for production hosts (template), PING for switches (template) and your NFS disk size checks(new template). Also establish your parent/child relationships.

  4. Identify the best plugins for monitoring your objects. Monitoring a host’s UP/DOWN state should be with a service check, like check_users. Monitoring NFS disk sizes would be check_disk.

  5. Create definitions. Nagios® needs configurations in order to start working with the NFS. Since many of the defined objects are standard with any system you will monitor, we will examine the specific NFS objects.

  6. Test Nagios® configuration. Make sure there are no mistakes with your object definitions: $PREFIX/bin/nagios -v $PREFIX/etc/nagios.cfg. Reload Nagios®: /etc/init.d/nagios reload. Lastly test the email notification by placing your email address in the “email” list for the contacts. Then within the Nagios® web console locate the host and services you just created. Click on the service ? “send custom service notification ? check the “force” box and add a comment ? commit. Check the email you received to ensure it is correctly formatted, then click on the “Notifications” section of the web console and make sure the email was only sent to the contact group you stipulated.

NFS can be complicated and time consuming to establish monitoring and notification. However, if you take the time to properly plan how you want to accomplish the monitoring and notifications it becomes a simpler task. I hope this helps with your Nagios® instance. A PDF containing the NFS host and service definition examples can be found at: Monitoring a NFS

Thoughts or Questions? Please share your NFS experiences with our community.

Mike Kniaziewicz, MIS

Bookmark and Share

0 Response to “Suggestion for monitoring a networked file system (NFS)”


  • No Comments

Leave a Reply

You must login to post a comment.