NRDP_Win Command Line Check?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
TCN-Link
Posts: 30
Joined: Tue Dec 13, 2016 2:05 pm

NRDP_Win Command Line Check?

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: NRDP_Win Command Line Check?

Post 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/
Former Nagios employee
https://www.mcapra.com/
Locked