slansing wrote:Yep, external scripts is the place to go, that is how you would be remotely executing plugins/scripts via NSClient++, let us know if you have issues!
OK, had a go at configuring this although I think I'm missing something.
VB script sits in teh scripts folder under NSClient.
Add a command to the external scripts section of nscliet.ini
- check_os_version=script.exe //T:30 //NoLogo scripts\OS_Version.vbs
Running the command line:
- ./check_nrpe -H ipaddress -p 5666 -c check_os_version
I get the following:
ExternalCommands: failed to create process (script.exe //T:30 //NoLogo scripts\OS_Version.vbs): 2: The system cannot find the file specified.
Any ideas?
---------------------------------------------
I should also mention that my vb scripts is pretty simple. Here it is...
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
Wscript.Echo objOperatingSystem.Caption & _
" " & objOperatingSystem.Version
Next
Thanks,