hi,

I have a nrpe check on a windows server that works fine from the cli
as user nagios, but when I run it from the web ui I get the nrpe
salute instead of the actual result.

In nsc.ini I have this handler:

nrpe_checkfile=inject checkFile2 filter=in path=$ARG1$
pattern=*.$ARG2$ filter+$ARG3$=>$ARG4$ MaxWarn=$ARG5$ MaxCrit=$ARG6$
"syntax="$ARG7$ $ARG8$"

nagios@:/usr/local/nagios/libexec$ ./check_nrpe -H host -c
nrpe_checkfile -a d:/dba/bu/oracle gz written 1d 1 2 %filename%
%access%
CheckFile ok|'found files'=0;1;2;

So here what I do is execute the command nrpe_checkfile on the host
host with the arguments:
$ARG1$              d:/dba/bu/oracle
$ARG2$              gz
$ARG3$              written
$ARG4$             1d
$ARG5$             1
$ARG6$             2
%ARG7$            %filename%
%ARG8$            %access%

and the result is OK, there are no files with an extension gz in the
path d:/dba/bu/oracle whose last written attribute is bigger than 1
day.

I go to the web ui, configuration, service checks. New service check:
check_files_oracle, in a new service group that I call check files,
active check, 24x7, standard stuff.

Plugin: check_nrpe
Arguments: -H $HOSTADDRESS$ - c nrpe_checkfile -a d:/dba/bu/oracle gz
written 1d 1

I submit the changes, add the new service check to the host in the
monitors tab (check the new check with a '+' sign) and reload the
configuration. When the check runs, it is ok, but the result is I
(0.3.8.75 2010-05-27) seem to be doing fine...

So something is obviiously wrong with my opsview check, but what?
--
Groeten,
J.Asenjo
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to