check_rpc returns Unknown "Program -H is not defined"
Scott Dungan
scott at gps.caltech.edu
Sat Jul 8 02:06:19 CEST 2006
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
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
}
I have created the following in services.cfg:
define service{
host_name redondo
service_description NFS
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 2
retry_check_interval 1
contact_groups gps-test
notification_interval 720
notification_period 24x7
notification_options u,c,r
check_command check_rpc
}
When Nagios executes the check command for the service on the host it
returns an "UNKNOWN" status with "Program -H is not defined" in the
status information column. Removing the -H in the checkcommands.cfg
causes a syntax error as is expected.
I must be missing something very basic here or am I loosing my mind at
5:06pm on a Friday once again?
--
Scott A Dungan
Systems Administrator
California Institute of Technology
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