Page 1 of 1

Get_rdp_info Script Problem

Posted: Tue Mar 27, 2018 2:45 pm
by windstreamNCS
Hello everyone...new to the forum and I am also new to Nagios. I am having some issues getting this nifty plugin I found here called get_rdp_info to work. My issue I believe is with the nsclient++ file. I am uncertain as to exactly how I should make a new entry in the .ini file? When I try to check it from our Nagios host, I receive this error:

Failed to execute get_rdp_info seems more like a script maybe you need a script executable first: failed to lookup error code: 193 (reason: 87)

Here are the entries I tried. I've read on the support page and tried different formats, but so far no luck:

[/settings/external scripts/scripts]
Get_rdp_info=scripts\get_rdp_info.vbs.bat

Returned this error:

Failed to execute get_rdp_info seems more like a script maybe you need a script executable first: failed to lookup error code: 193 (reason: 87)

I also tried this:

[/settings/external scripts/wrapped scripts]
get_rdp_info=scripts\get_rdp_info.vbs

Same result.

Tried this:

[/settings/external scripts/wrapped scripts]
get_rdp_info=cscript.exe /t:90 /NoLogo scripts\lib\wrapper.vbs get_rdp_info.vbs

Also, same error.

Being a newbie with Nagios, perhaps I am doing something wrong? Any advice or help would be greatly appreciated.

Thanks!

JJ

Re: Get_rdp_info Script Problem

Posted: Tue Mar 27, 2018 3:11 pm
by scottwilkerson
If this is really a vbs file it likely would go like this

Code: Select all

[/settings/external scripts/scripts]
get_rdp_info=scripts\get_rdp_info.vbs
Can you share the script you are trying to execute?

Re: Get_rdp_info Script Problem

Posted: Fri Mar 30, 2018 9:24 am
by windstreamNCS
Attached. Thanks for replying Scott!

Re: Get_rdp_info Script Problem

Posted: Fri Mar 30, 2018 11:57 am
by windstreamNCS
Scott...got it working. I talked with the developer that wrote the script and used an updated version. Tested fine. Thanks for replying to the thread. I know you are a busy guy! :D

Re: Get_rdp_info Script Problem

Posted: Fri Mar 30, 2018 2:03 pm
by scottwilkerson
windstreamNCS wrote:Scott...got it working. I talked with the developer that wrote the script and used an updated version. Tested fine. Thanks for replying to the thread. I know you are a busy guy! :D
That's great!! Glad to hear you got it working!