Hi, Not sure if it is a result of cut/paste or formatting changes, but where you specify how the check is implemented in the Opsview GUI, there is a space between '-' and 'c':
Arguments: -H $HOSTADDRESS$ - c nrpe_checkfile -a d:/dba/bu/oracle gz written 1d 1 It should read: Arguments: -H $HOSTADDRESS$ -c nrpe_checkfile -a d:/dba/bu/oracle gz written 1d 1 Hope that it is as simple as that. I know I have had a couple of times where I missed stuff like this because I had been looking at it too long. Regards, John Berkers Senior Security Engineer [email protected] -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Natxo Asenjo Sent: Tuesday, 20 July 2010 22:33 To: Opsview Users Subject: [opsview-users] nsclientpp checkfile2 works fine from the cli, but not when I create a service in the web ui 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 _______________________________________________ Opsview-users mailing list [email protected] http://lists.opsview.org/lists/listinfo/opsview-users
