Pandora FMS Community

Exchange Monitoring Plugin

JordyMin · 29 may 2014, 17:37 · 5 mensajes · 59 visitas

  1. Inicio del debate

    Hello, Im struggling with the exchange plugin. When I execude my code. C:WindowsSystem32WindowsPowerShellv1.0powershell.exe -psconsolefile "C:Program FilesMicrosoftExchange ServerV14Binexshell.psc1" -command "C:Program Files (x86)pandora_agentutilPandora_Plugin_Exchange_v1r2.ps1" I get the output, but for some reason, when the pandora agent executes the code, I get this error in the debug logs; WARNING: The following errors occurred when loading console C:Program FilesMicrosoftExchange ServerV14Binexshell.psc1: Cannot load Windows PowerShell snap-in Microsoft.Exchange.Management.PowerShell.E2010 because of the following error: No snap-ins have been registered for Windows PowerShell version 2. File C:Program Files (x86)pandora_agentutilPandora_Plugin_Exchange_v1r2.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.     + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordE   xception     + FullyQualifiedErrorId : RuntimeException while it is the same cmd? :( Anyone has a clue? Best regards Jordy

  2. Ive got an update on this, It seems that the pandora fms, launches a powershell x86 version instead of x64 (however Im not finding a way to force a 64bit powershell)

  3. Ive got an update on this, It seems that the pandora fms, launches a powershell x86 version instead of x64 (however Im not finding a way to force a 64bit powershell)

    cmd /c IF DEFINED ProgramW6432 ( %systemroot%sysnativeWindowsPowerShellv1.0powershell.exe -psconsolefile "C:Program FilesMicrosoftExchange ServerV14Binexshell.psc1" -file "C:Program Files (x86)pandora_agentutilPandora_Plugin_Exchange_v1r2.ps1" ) ELSE ( %systemroot%system32WindowsPowerShellv1.0powershell.exe -psconsolefile "C:Program FilesMicrosoftExchange ServerV14Binexshell.psc1" -file "C:Program Filespandora_agentutilPandora_Plugin_Exchange_v1r2.ps1" ) This did the thing, but now I'm a bit unsatisfied. Its too much info, all I need to know is; If the exchange services are running that is all.. That probably alot easyer to do? but how?

  4. Use WMI to look for the service? Below is an example of what I am doing.

    [

    ](//pandorafms.com/community/media/forum/0/16966=667-exchange.png)

  5. Hello Wmi is not necesarry when trying to monitor a simple status of a service. We recommend you edit the pandora_agent.conf and add the following lines: module_begin module_name Exchange_Process_check module_type generic_proc module_exec tasklist | grep exchange | grep -v "grep" | wc -l (you should execute tasklist and check for the name of the process) module_description Check if the Exchange service is running module_end Regards Ivo

Entra en tu cuenta para publicar.