What is nfsstats.pl FOR LINUX?


nfsstats.pl FOR LINUX



nfsstats.pl FOR LINUX

nfsstats.pl is a Net-SNMP sub-agent that parses /proc/net/rpc/nfs and /proc/net/rpc/nfsd to obtain NFS statistics (just like nfsstat), and reports these as SNMP values. It is useful for remotely monitoring NFS client or server usage via SNMP to utilities like MRTG, Cacti, or Ganglia.



Installation Instructions:



  • Ensure you have a working Net-SNMP install.

  • Ensure you have the Perl sub-components of Net-SNMP installed (in Fedora Core, do yum install net-snmp-perl).

  • Save nfsstats.pl to /var/net-snmp/.

  • Add the following line to /etc/snmp/snmpd.conf: master agentx.

  • Start nfsstats.pl in the way of your choice, logged to file of your choice (eg 2>/dev/null). Note that nfsstats.pl must be started as root.



Usage:


If your snmpd is built with embedded Perl support (Fedora Core doesn't), then you can import the sub agent directly into the snmpd. See the script for more details.



Monitoring with SNMP:


After you have successfully installed nfsstats.pl, you should be able to walk the provided OIDs: snmpwalk -v 2c -c public localhost 'enterprises.6789.6789' or snmpwalk -v 2c -c public localhost '.1.3.6.1.4.1.6789.6789'. As we have no MIB for nfsstats.pl yet, the numbers coming back won't make much sense. However, they should bear a striking resemblance to the output of /usr/sbin/nfsstat!



Statistics Available:


The following are some of the 114 statistics that nfsstats.pl can provide for SNMP values:



  • client.rpc.count.calls

  • client3.count.null

  • server.rpc.count.calls

  • server3.count.null

  • server.replycache.count.hits

  • server.fhcache.count.lookups

  • server.net.count.packets



These statistics can be monitored using tools like MRTG as per your requirements.


How Download Works

Go to the Softpas website, press the 'Downloads' button, and pick the app you want to download and install—easy and fast!

SoftPas Safety Info
SoftPas

SoftPas is your platform for the latest software and technology news, reviews, and guides. Stay up to date with cutting-edge trends in tech and software development.

Recent

Help

Subscribe to newsletter


© Copyright 2024, SoftPas, All Rights Reserved.