nfsstats.pl

nfsstats.pl is a Net-SNMP sub-agent that parses.
Download

nfsstats.pl Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Craig Macdonald
  • Publisher web site:
  • http://www.macdee.net/perl/nfsstats/

nfsstats.pl Tags


nfsstats.pl Description

nfsstats.pl is a Net-SNMP sub-agent that parses. 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.nfsstats.pl is useful for remotely monitoring NFS client or server usage via SNMP to utilities like MRTG, Cacti, or Ganglia.Installation: Installation instructsion are contained in the form of comments at the top of nfsstats.pl script. nfsstats.pl is only suitable for Linux. NFS version 3 statistics are made available.Firstly, ensure you have a working Net-SNMP install. Secondly, ensure you have the Perl sub-components of Net-SNMP installed (in Fedora Core, do yum install net-snmp-perl). Thirdly, 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.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. Usage: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 wont make much sense. However, they should bear a striking resemblance to the output of /usr/sbin/nfsstat! The list below is all the 114 statistics that nfsstats.pl can provide for SNMP values. The ones you should monitor (eg using MRTG) are entirely up to you. enterprises.6789.6789.0.0.1 -> client.rpc.count.callsenterprises.6789.6789.0.0.2 -> client.rpc.count.retransenterprises.6789.6789.0.0.3 -> client.rpc.count.authrefrshenterprises.6789.6789.0.3.0.0 -> client3.count.nullenterprises.6789.6789.0.3.0.1 -> client3.percent.nullenterprises.6789.6789.0.3.1.0 -> client3.count.getattrenterprises.6789.6789.0.3.1.1 -> client3.percent.getattrenterprises.6789.6789.0.3.2.0 -> client3.count.setattrenterprises.6789.6789.0.3.2.1 -> client3.percent.setattrenterprises.6789.6789.0.3.3.0 -> client3.count.lookupenterprises.6789.6789.0.3.3.1 -> client3.percent.lookupenterprises.6789.6789.0.3.4.0 -> client3.count.accessenterprises.6789.6789.0.3.4.1 -> client3.percent.accessenterprises.6789.6789.0.3.5.0 -> client3.count.readlinkenterprises.6789.6789.0.3.5.1 -> client3.percent.readlinkenterprises.6789.6789.0.3.6.0 -> client3.count.readenterprises.6789.6789.0.3.6.1 -> client3.percent.readenterprises.6789.6789.0.3.7.0 -> client3.count.writeenterprises.6789.6789.0.3.7.1 -> client3.percent.writeenterprises.6789.6789.0.3.8.0 -> client3.count.createenterprises.6789.6789.0.3.8.1 -> client3.percent.createenterprises.6789.6789.0.3.9.0 -> client3.count.mkdirenterprises.6789.6789.0.3.9.1 -> client3.percent.mkdirenterprises.6789.6789.0.3.10.0 -> client3.count.symlinkenterprises.6789.6789.0.3.10.1 -> client3.percent.symlinkenterprises.6789.6789.0.3.11.0 -> client3.count.mknodenterprises.6789.6789.0.3.11.1 -> client3.percent.mknodenterprises.6789.6789.0.3.12.0 -> client3.count.removeenterprises.6789.6789.0.3.12.1 -> client3.percent.removeenterprises.6789.6789.0.3.13.0 -> client3.count.rmdirenterprises.6789.6789.0.3.13.1 -> client3.percent.rmdirenterprises.6789.6789.0.3.14.0 -> client3.percent.renameenterprises.6789.6789.0.3.15.0 -> client3.count.linkenterprises.6789.6789.0.3.15.1 -> client3.percent.linkenterprises.6789.6789.0.3.16.0 -> client3.count.readdirenterprises.6789.6789.0.3.16.1 -> client3.percent.readdirenterprises.6789.6789.0.3.17.0 -> client3.count.readdirplusenterprises.6789.6789.0.3.17.1 -> client3.percent.readdirplusenterprises.6789.6789.0.3.18.0 -> client3.count.fsstatenterprises.6789.6789.0.3.18.1 -> client3.percent.fsstatenterprises.6789.6789.0.3.19.0 -> client3.count.fsinfoenterprises.6789.6789.0.3.19.1 -> client3.percent.fsinfoenterprises.6789.6789.0.3.20.0 -> client3.count.pathconfenterprises.6789.6789.0.3.20.1 -> client3.percent.pathconfenterprises.6789.6789.0.3.21.0 -> client3.count.commitenterprises.6789.6789.0.3.21.1 -> client3.percent.commitenterprises.6789.6789.0.3.22.0 -> client3.count.totalenterprises.6789.6789.0.3.22.1 -> client3.percent.totalenterprises.6789.6789.1.0.0 -> server.rpc.count.callsenterprises.6789.6789.1.0.1 -> server.rpc.count.retransenterprises.6789.6789.1.0.2 -> server.rpc.count.badcallsenterprises.6789.6789.1.0.3 -> server.rpc.count.badauthenterprises.6789.6789.1.0.4 -> server.rpc.count.badclntenterprises.6789.6789.1.0.5 -> server.rpc.count.xdrcallenterprises.6789.6789.1.3.0.0 -> server3.count.nullenterprises.6789.6789.1.3.0.1 -> server3.percent.nullenterprises.6789.6789.1.3.1.0 -> server3.count.getattrenterprises.6789.6789.1.3.1.1 -> server3.percent.getattrenterprises.6789.6789.1.3.2.0 -> server3.count.setattrenterprises.6789.6789.1.3.2.1 -> server3.percent.setattrenterprises.6789.6789.1.3.3.0 -> server3.count.lookupenterprises.6789.6789.1.3.3.1 -> server3.percent.lookupenterprises.6789.6789.1.3.4.0 -> server3.count.accessenterprises.6789.6789.1.3.4.1 -> server3.percent.accessenterprises.6789.6789.1.3.5.0 -> server3.count.readlinkenterprises.6789.6789.1.3.5.1 -> server3.percent.readlinkenterprises.6789.6789.1.3.6.0 -> server3.count.readenterprises.6789.6789.1.3.6.1 -> server3.percent.readenterprises.6789.6789.1.3.7.0 -> server3.count.writeenterprises.6789.6789.1.3.7.1 -> server3.percent.writeenterprises.6789.6789.1.3.8.0 -> server3.count.createenterprises.6789.6789.1.3.8.1 -> server3.percent.createenterprises.6789.6789.1.3.9.0 -> server3.count.mkdirenterprises.6789.6789.1.3.9.1 -> server3.percent.mkdirenterprises.6789.6789.1.3.10.0 -> server3.count.symlinkenterprises.6789.6789.1.3.10.1 -> server3.percent.symlinkenterprises.6789.6789.1.3.11.0 -> server3.count.mknodenterprises.6789.6789.1.3.11.1 -> server3.percent.mknodenterprises.6789.6789.1.3.12.0 -> server3.count.removeenterprises.6789.6789.1.3.12.1 -> server3.percent.removeenterprises.6789.6789.1.3.13.0 -> server3.count.rmdirenterprises.6789.6789.1.3.13.1 -> server3.percent.rmdirenterprises.6789.6789.1.3.14.0 -> server3.count.renameenterprises.6789.6789.1.3.14.1 -> server3.percent.renameenterprises.6789.6789.1.3.15.0 -> server3.count.linkenterprises.6789.6789.1.3.15.1 -> server3.percent.linkenterprises.6789.6789.1.3.16.0 -> server3.count.readdirenterprises.6789.6789.1.3.16.1 -> server3.percent.readdirenterprises.6789.6789.1.3.17.0 -> server3.count.readdirplusenterprises.6789.6789.1.3.17.1 -> server3.percent.readdirplusenterprises.6789.6789.1.3.18.0 -> server3.count.fsstatenterprises.6789.6789.1.3.18.1 -> server3.percent.fsstatenterprises.6789.6789.1.3.19.0 -> server3.count.fsinfoenterprises.6789.6789.1.3.19.1 -> server3.percent.fsinfoenterprises.6789.6789.1.3.20.0 -> server3.count.pathconfenterprises.6789.6789.1.3.20.1 -> server3.percent.pathconfenterprises.6789.6789.1.3.21.0 -> server3.count.commitenterprises.6789.6789.1.3.21.1 -> server3.percent.commitenterprises.6789.6789.1.3.22.0 -> server3.count.totalenterprises.6789.6789.1.3.22.1 -> server3.percent.totalenterprises.6789.6789.1.6.0 -> server.replycache.count.hitsenterprises.6789.6789.1.6.1 -> server.replycache.count.missesenterprises.6789.6789.1.6.2 -> server.replycache.count.nocacheenterprises.6789.6789.1.7.0 -> server.fhcache.count.lookupsenterprises.6789.6789.1.7.1 -> server.fhcache.count.anonenterprises.6789.6789.1.7.2 -> server.fhcache.count.nocache_direnterprises.6789.6789.1.7.3 -> server.fhcache.count.nocache_nondirenterprises.6789.6789.1.7.4 -> server.fhcache.count.staleenterprises.6789.6789.1.8.0 -> server.threads.countenterprises.6789.6789.1.8.1 -> server.threads.fullcountenterprises.6789.6789.1.50 -> server.net.count.packetsenterprises.6789.6789.1.51 -> server.net.count.udpenterprises.6789.6789.1.52 -> server.net.count.tcpenterprises.6789.6789.1.53 -> server.net.count.tcpconn Requirements: · Net-SNMP · Perl


nfsstats.pl Related Software