Pages: [1]   Go Down
Author Topic: 4.0 Windows x64 server agents  (Read 245 times)
0 Members and 1 Guest are viewing this topic.
kemper451
Jr. Member
**

Karma: 0
Offline Offline

Posts: 21


View Profile
« on: October 18, 2011, 08:47:56 PM »

Even though the agent installs successfully on a 64-bit server (i.e. Windows 2008 R2 x64), it is still running under a 32-bit context.  There seems to be some issues related to this.

1. Remotely executing powershell with Exchange 2010 extension.  It attempts to look at the 32-bit registry but the settings only exist in the x64 registry.  Therefore, it fails.

2. module_logevent.  Even the default sample modules fail.  No errors or explanation.  Debug just shows the process starting but no end. 

Is there a way to compile the agent install for true 64-bit?  This way the x64 program files path and registry are used.  Or is there some other solution?

thx.
Logged

tpalacios
Administrator
Sr. Member
*****

Karma: 8
Offline Offline

Posts: 190


The Game


View Profile
« Reply #1 on: October 20, 2011, 08:25:54 PM »

1) I've already dealt with it. ;)

The easiest way to fix this problem is using a workaround:

a) Copy your Windows\System32\Windows Powershell\v1.0\Powershell.exe to another location outside of System32... the Pandora Agent folder for instance.

b) In order to execute an agent Powershell plugin in order to monitor Exchange using the Management Shell, do it with this line:

Code:
module_plugin "C:\Program Files (x86)\pandora_agent\powershell.exe" -PSConsoleFile "E:\Program Files\Microsoft\Exchange Server\Bin\exshell.psc1" -command C:\'Program Files (x86)\pandora_agent\util\Pandora_Exchange_Plugin.ps1'

In this example, I've placed powershell.exe in the pandora_agent folder, the management shell file is located in E:\Program Files\Microsoft\Exchange Server\Bin\exshell.psc1 and my Powershell plugin is placed in pandora_agent\util

You can place Powershell.exe anywhere else but System32. About exshell.psc1, find where you have it and use the correct paths and you should have it working without problems. ;)

2) Problems running agent for Windows 2008 in 64 bits

You are missing a good PDH.dll :)

Regards.
Logged

kemper451
Jr. Member
**

Karma: 0
Offline Offline

Posts: 21


View Profile
« Reply #2 on: October 24, 2011, 01:33:20 PM »

fantastic!  I'll give this a try.  :)
Logged

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST