I did want to thank you all for the support and education.  I was able to
resolve my problem (rewrote the script).  There was an error in the VBScript
and of course I picked the variable to send to it that exacerbated the
problem. I did learn many things I will pass on should I find anyone I can
assist.  Nuggets like "you just can't move the backslash character between
OpsView and Windows".  For you windows scripters, copy this down:

Arg1=WScript.Arguments(0)
If instr(Path,"/") then Arg1= replace(path,"/","\")

Which will make your lives much easier.  Just send it the damned forward
slash :-).  With my new found knowledge I'm writing my own checks and they
are working well.  I've got scripts that pull data from an oracle database
to do date and time stamp comparisons and another that checks directories
for the last modification to be within a defined window and the likes.  I
couldn't have done it without the support of this group.  You're all great
but specifically, thanks to Natxo for babysitting me!! 

Greg Fishback
Director of IT for GreenField Health Systems

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Natxo Asenjo
Sent: Thursday, June 24, 2010 1:12 AM
To: Opsview Users
Subject: Re: [opsview-users] (no subject)

> In the linux promt: ./check_nrpe -c check_file_age "c:\temp\test.txt" 1 3

I forgot the -a switch, for the arguments:

./check_nrpe -c check_file_age -a "c:\temp\test.txt" 1 3

> It should work (i think, untested, obviously, but ...).

in nsc.ini you need to allow the passing of arguments, obviously.
(check the nsclient++ docs if you do not know how to do it).

--
natxo
_______________________________________________
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

Reply via email to