<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
Hi all,<br>
<br>
I finally find a solution of my problem.<br>
<br>
In fact the check_command "check_nrpe_nossl" was defined in Commands
table of NagMin to accept arguments:<br>
$USER1$/check_nrpe_nossl -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$ $ARG3$
$ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ $ARG9$ $ARG10$ $ARG11$ $ARG12$
$ARG13$<br>
<br>
However, my script doesn't call upon the arguments. So I create a new
command, that i called "check_nrpe_nossl_noarg", defined as this: <br>
$USER1$/check_nrpe_nossl -H $HOSTADDRESS$ -c $ARG1$ <br>
<br>
Now, it works fine.<br>
<br>
Carole.<br>
<br>
carole verdon wrote:<br>
<blockquote type="cite" cite="mid40C58DD7.3080407@cict.fr">
<title></title>
<pre wrap="">Hi,
In web interface of nagios (v 1.2), i obtain a status UNKNOWN with this message: (No output returned from plugin)
If i execute the check_nrpe (v 2.0) in line command on server nagios, it works well:
$ ./check_nrpe_nossl -H telline.cict.fr -c check_oracle
all databases OK
check_oracle is defined in nrpe.cfg as:
command[check_oracle]=/usr/local/nagios/libexec/check_oracle_databases.sh
the check_oracle_databases.sh is a script i wrote to take dynamically into account the file /etc/oratab to verify all databases
that it contains. It calls the check_oracle scripts of core distribution of nagios-plugins-1.4.0alpha1 that i modified a little.
I use NagMin 2.1.0 to configure nagios. So i define a service called "Oracle" with the check command : <a
onclick="window.open(" command.cgi/nagios/service/check_nrpe_nossl=""
,="" help=""
toolbar="no,menubar=no,scrollbars=yes,width=500,height=225,resizable=yes");"
return="" false=""
href="http://lerins.cict.fr:10000/nagmin/command.cgi/nagios/Service/check_nrpe_nossl">check_nrpe_nossl!check_oracle</a>
In service.cfg:
define service {
use generic-service
host_name telline.cict.fr
service_description Oracle
contact_groups nagios-admins
check_period 24x7
notification_interval 2880
notification_options w,u,c,r
notification_period 24x7
check_command check_nrpe_nossl!check_oracle
max_check_attempts 3
normal_check_interval 10
retry_check_interval 1
}
I don't understand why it works in line commands on nagios server and that it don't work if i define this service in nagios.
Can you tell me where is the error? What am i doing?
Please, help me....
Thanks.
Carole.
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
**********************************
VERDON Carole
Ingénieur Système
CICT - Université Paul Sabatier
118, route de Narbonne
31062 Toulouse Cedex
Tél.: 05.61.36.60.44
Fax: 05.61.52.14.58
Mail: <a class="moz-txt-link-abbreviated" href="mailto:verdon@cict.fr">verdon@cict.fr</a>
**********************************
</pre>
</body>
</html>