diff options
author | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2002-04-03 02:56:42 +0000 |
---|---|---|
committer | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2002-04-03 02:56:42 +0000 |
commit | 880e2599d2eb847db20c3cd4bcf336e6fd536828 (patch) | |
tree | df3885bb874ba3a288d9419174f5a650259c16eb /plugins-scripts/check_nfs.pl | |
parent | 91753bfdd4a0feab4970cf6eaac8085959140232 (diff) | |
download | monitoring-plugins-880e2599d2eb847db20c3cd4bcf336e6fd536828.tar.gz |
check_nfs functionality exists in check_rpc
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@9 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins-scripts/check_nfs.pl')
-rwxr-xr-x | plugins-scripts/check_nfs.pl | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/plugins-scripts/check_nfs.pl b/plugins-scripts/check_nfs.pl deleted file mode 100755 index 040466d3..00000000 --- a/plugins-scripts/check_nfs.pl +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/local/bin/perl -# -# check_nfs plugin for nagios -# -# usage: -# check_nfs.pl server -# -# Check if a nfs server is registered and running -# using rpcinfo -T udp <arg1> 100003. -# 100003 is the rpc programmnumber for nfs. -# <arg1> is the server queried. -# -# -# Use these hosts.cfg entries as examples -# -#service[fs0]=NFS;24x7;3;5;5;unix-admin;60;24x7;1;1;1;;check_nfs -#command[check_nfs]=/some/path/libexec/check_nfs.pl $HOSTADDRESS$ -# -# initial version: 9-13-99 Ernst-Dieter Martin edmt@infineon.com -# current status: looks like working -# -# -# Copyright Notice: Do as you please, credit me, but don't blame me -# - - -$server = shift; - - -open CMD,"/bin/rpcinfo -T udp $server 100003 |"; - -$response = "nfs version "; - -while ( <CMD> ) { - if ( /program 100003 version ([0-9]*) ready and waiting/ ) { - $response = $ response . "$1,"; - } -} - -if ( $response eq "nfs version " ) { - print "rpcinfo: RPC: Program not registered\n"; - exit 2; -} - -$response =~ s/,$//; -print "$response\n"; - -exit 0; |