Page 1 of 1

NRDP_Win Command Line Check?

Posted: Thu Mar 23, 2017 10:57 am
by TCN-Link
Hello,

I'm trying to send a single NRDP check from the command line in Windows, but I can't seem to find how that's done. I know for Linux and Mac, it goes a little something like this:

Code: Select all

/usr/bin/php /usr/local/nrdp/clients/send_nrdp.php --url=http://192.168.1.5/nrdp --token=sometoken --host=somehost --service=someservice --state=0 --output="The service looks okay"
What's the NRDP_Win or NCPA equivalent for Windows?

Thank you,
Link

Re: NRDP_Win Command Line Check?

Posted: Thu Mar 23, 2017 1:23 pm
by mcapra
Here's the docs for configuring passive checks with NCPA:
https://www.nagios.org/ncpa/help/2.0/passive.html

There isn't really a "CLI equivalent" for NCPA from just the CLI of Windows. In /usr/local/nrdp/clients is where most of the one-off scripts are located. It's worth mentioning that there is a python script in there that works similarly to send_nrdp.php. NRDS_Win uses the NRDS_Win.vbs script.

Otherwise, I found this Powershell script on the exchange though it is quite old:
https://github.com/jsmroshamboot/psnrdp/