check_rpc returns Unknown "Program -H is not defined"

Hugo van der Kooij hvdkooij at vanderkooij.org
Sat Jul 8 09:35:37 CEST 2006


On Fri, 7 Jul 2006, Scott Dungan wrote:

> I am having a problem with the check_rpc command and I am hoping
> someone can point out where I am going wrong.
>
> when I run the following from the terminal:
>
>   sh-3.00$ ./check_rpc -H 131.215.64.60 nfs -c 4
>
> I get this:
>
>   OK: RPC program nfs version 4 udp running

The important question is: Who are you at this point? user 'scott', user
'root' or user 'nagios'?

> I have created the following in checkcommands.cfg:
>
>   # 'check_rpc' command definition
>   define command{
>           command_name    check_rpc
>           command_line    $USER1$/check_rpc -H $HOSTADDRESS$ nfs -c 4
>           }

Here you run with a full path and you did not do so in the manual test. So
your current work directory is also a relevant factor.

Hugo.

PS: Check the wastepaperbin ;-)

-- 
	I hate duplicates. Just reply to the relevant mailinglist.
	hvdkooij at vanderkooij.org		http://hvdkooij.xs4all.nl/
		Don't meddle in the affairs of magicians,
		for they are subtle and quick to anger.

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list