1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...
:

A template to help you create and run PowerShell module plugins

Attached PowerShell file in example must be placed in

"C:Program FilesPandora_Agentscripts"

Edit PowerShell file to fit your needs!

Module data

#Example returns PowerShell $env:COMPUTERNAME
#PowerShell Computername

module_plugin powershell.exe -command "& 'C:Program FilesPandora_Agentscriptscomputername.ps1'"

#PowerShell Template
Write-Output "<module>"
Write-Output "<name>MODULE_NAME</name>"
Write-Output "<type>generic_data_string</type>"
Write-Output "<description>MODULE_DESCRIPTION</description>"
Write-Output "<data><![CDATA["
POWERSHELL_COMMANDS_GO_HERE
Write-Output "]]></data>"
Write-Output "</module>"

Files

computername.ps1

(Visited 1,441 times, 1 visits today)

For correct visualization of the Pandora FMS library extension, you must have installed version NG 760 or superior

X