<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
ReynierPM wrote:
<blockquote cite="mid:4B1E8941.5000003@uci.cu" type="cite">
  <pre wrap="">Hi every:
I've experimenting some problems when trying to use check_ssh and 
check_ping plugins. The configuration at remote server (where NRPE 
resides) is as follow:

command[check_ssh]=/usr/local/nagios/libexec/check_ssh
command[check_ping]=/usr/local/nagios/libexec/check_ping!100.0,20%!500.0,60%

And then at server where .cfg resides the config is this one:
define service{
         use                             generic-service
         host_name                       bacula-server
         service_description             SSH
         check_command                   check_nrpe!check_ssh
         notifications_enabled           0
}

define service{
         use                             generic-service
         host_name                       bacula-server
         service_description             PING
         check_command                   check_nrpe!check_ping
}

The error for check_ping command is this:
NRPE: Unable to read output
and for check_ssh is this:
check_ssh: Could not parse arguments

What I'm doing wrong or what I'm not doing?
  </pre>
</blockquote>
<br>
It's not clear why you're using check_nrpe for these two services...
that's probably not what you want to do.<br>
<br>
Check_ssh and check_ping should be run on the Nagios server itself.
And, as another member pointed out, you've got the command line options
messed up for both service checks:<br>
<br>
<blockquote><tt>Usage: check_ping -H <host_address> -w
<wrta>,<wpl>% -c <crta>,<cpl>%  [-p packets]
[-t timeout] [-4|-6]</tt><br>
  <br>
  <tt>Usage: check_ssh [-46] [-t <timeout>] [-r <remote
version>] [-p <port>] <host></tt><br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
David Wallis
Information Technology
Advanced Photon Source
Argonne National Laboratory

</pre>
</body>
</html>