Get_rdp_info Script Problem

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
windstreamNCS
Posts: 3
Joined: Tue Mar 27, 2018 8:39 am

Get_rdp_info Script Problem

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Get_rdp_info Script Problem

Post 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?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
windstreamNCS
Posts: 3
Joined: Tue Mar 27, 2018 8:39 am

Re: Get_rdp_info Script Problem

Post by windstreamNCS »

Attached. Thanks for replying Scott!
Attachments
get_rdp_info.txt
(59.57 KiB) Downloaded 450 times
windstreamNCS
Posts: 3
Joined: Tue Mar 27, 2018 8:39 am

Re: Get_rdp_info Script Problem

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Get_rdp_info Script Problem

Post 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!
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked