Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###################################################
- # StarWind Health Service agent configuration file#
- # Created by agent installer at 08 11 2018 #
- ###################################################
- EnableProxy = yes
- EnableSNMPProxy = yes
- MasterServers = pas.starwind.com
- ServerConnection = pas.starwind.com
- #DebugLevel = 9
- TunnelKeepaliveInterval = 30
- ConfigIncludeDir = "C:\Program Files\StarWind Software\StarWind Health Service\etc\nxagentd.conf.d"
- #LogFile = {syslog}
- LogFile = "C:\Program Files\StarWind Software\StarWind Health Service\log\StarWindHealthService.log"
- FileStore = "C:\Program Files\StarWind Software\StarWind Health Service\var"
- SubAgent = ecs.nsm
- SubAgent = filemgr.nsm
- SubAgent = ping.nsm
- SubAgent = logwatch.nsm
- SubAgent = portcheck.nsm
- SubAgent = winperf.nsm
- SubAgent = wmi.nsm
- SubAgent = ups.nsm
- EnableWatchdog = no
- Action = GetESXiLog:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\GetESXiLogBundle.ps1"
- Action = GetSystemLog:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\GetSystemLog.ps1"
- Action = GetESXiVersion:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\GetESXiVersion.ps1"
- Action = GetSystemLogEvtx:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\GetSystemLog-evtx.ps1"
- Action = StorageSpaceReport:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\StorageSpaceReport.ps1"
- Action = GetStarWindSyncState:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\StarWindSyncState.ps1"
- Action = GetServiceTagNumber:cmd.exe /C "wmic bios get serialnumber"
- ActionShellExec = GetSataDiskInfo:%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "Get-Disk | Where-Object FriendlyName -like '*sata*' | Select-Object FriendlyName, SerialNumber"
- Action = GetDellOmsaDisksInfo:%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "C:\Program Files\StarWind Software\StarWind Health Service\var\DellOmsaDisksInfo.ps1"
- ActionShellExec = GetManufacturerInfo:%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "(Get-WmiObject -Class:Win32_ComputerSystem).Manufacturer; (gwmi -q 'select * from win32_computersystem').Model"
- ActionShellExec = GetDellTempInfo:%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "cd 'C:\Program Files\Dell\SysMgt\oma\bin\'; .\omreport.exe chassis temps"
- ActionShellExec = GetClusterLog:powershell.exe -Command "Get-ClusterLog | Compress-Archive -DestinationPath 'C:\Program Files\StarWind Software\StarWind Health Service\var\clusterlog.zip' -CompressionLevel Optimal -Force"
- ActionShellExec = MSSQLInstanceVersion:%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "try{$$instances=(get-itemproperty 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server' -ErrorAction SilentlyContinue).InstalledInstances;$$instance = $$instances[0];$$version=(Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL').$$instance;$$version = 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server\'+$$version+'\Setup';(Get-ItemProperty $$version).Version}catch{echo '-1'}"
- ActionShellExec = GetHypervVMs:%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "try {Import-Module Hyper-V; Get-VM -ComputerName $$env:computername | Select-Object Name, State, IsClustered, Uptime, CPUUsage, @{Name='MemoryAssigned(GB)';Expression={[math]::Round($$_.MemoryAssigned/1GB,1)}} | Sort-Object State | Format-Table -AutoSize} catch {return '-1'}"
- #Action = GetDellTSRreport:powershell -Command "$$filename='tsr_'+$$env:computername+'.zip';cd 'C:\Program Files\StarWind Software\StarWind Health Service\var\';& 'C:\Program Files\Dell\SysMgt\idrac\racadm.exe' techsupreport collect -t SysInfo,TTYLog;Start-Sleep -s 1800;& 'C:\Program Files\Dell\SysMgt\idrac\racadm.exe' techsupreport export -f $$filename"
- Action = GetDellTSRreport:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\GetTSR.ps1"
- ActionShellExec = GetDCReplicationStatus:cmd.exe /C "repadmin /replsum"
- ActionShellExec = GetHPArray:%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -command "& { . 'C:\Program Files\StarWind Software\StarWind Health Service\var\HPArrayDisksInfo.ps1'; $1}"
- ActionShellExec = AgentCertificate:%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "try {([datetime](Get-ChildItem -Path 'C:\Windows\System32\config\systemprofile\AppData\Local\nxagentd\certificates\*.crt' | Get-PfxCertificate).NotAfter - (Date)).Days}"
- ActionShellExec = GetClusterResource:%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "try{Get-ClusterResource | sort -Property ResourceType | ft -AutoSize} catch{$_}"
- ActionShellExec = GetClusterNode:c:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command "try{Get-ClusterNode} catch{$_}"
- ActionShellExec = GetLatestUnexpectedShutdownTime:%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "if ($$null -ne (Get-EventLog -LogName System | where {$$_.EventId -EQ 6008} | select -First 1 | select -Property Message -OutVariable message)) {Write-Host $$message.Message} else {Write-Host 'There was no unexpected shutdown'}"
- ActionShellExec = GetSystemDate:%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "Get-Date -UFormat '%A %m/%d/%Y %R %Z'"
- ActionShellExec = GetSystemServices:%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "Get-Service | select -Property DisplayName, StartType, Status | Sort-Object -Property DisplayName |ft"
- ActionShellExec = GetStarWindConsoleStop:powershell.exe -Command "get-process | where-object {$$_.Name -eq 'StarWindManagementConsole'} | Stop-Process -Force"
- Action = KillStarWindConsoleLogs:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\Remove-ConsoleLog.ps1"
- ActionShellExec = Get-Item:powershell.exe -Command "Get-Item WSMan:\localhost\Service\Auth\CredSSP"
- ActionShellExec = Get-ChildItem:powershell.exe -Command "Get-ChildItem WSMan:\Localhost\Listener"
- ActionShellExec = Get-WSManCredSSP:powershell.exe -Command "Get-WSManCredSSP"
- ActionShellExec = winrm:powershell.exe -Command "winrm get winrm/config"
- Action = test_CC_base:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\test_CC_base.ps1"
- Action = test_CC_perf:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\test_CC_perf.ps1"
- #Custom DCI--
- ExternalList=GetServerRoles:powershell -Command "try {(Get-WindowsFeature | Where Installed | Where-Object FeatureType -EQ 'Role Service').DisplayName} catch {}"
- ExternalParameter=GetWindowsGracePeriod:powershell -Command "try {[math]::Round((get-ciminstance -class SoftwareLicensingProduct | where PartialProductKey | where Name -match 'windows').graceperiodremaining / 1440)} catch {echo '-1'}"
- ExternalParameter=GetAgentCertificate:powershell -Command "try {([datetime](Get-ChildItem -Path 'C:\Windows\System32\config\systemprofile\AppData\Local\nxagentd\certificates\*.crt' | Get-PfxCertificate).NotAfter - (Date)).Days} catch {echo '-1'}"
- ExternalParameter=ifMegaRAIDDevice:powershell -Command "try {if (Get-WmiObject Win32_PNPEntity | Where-Object {$$_.Caption -like '*AVAGO*MegaRAID*' -or $$_.Caption -like '*LSI*MegaRAID*Adapter*'}) {return 'True'}}catch{}"
- #Dell--------
- ExternalParameter=ifDellOmsa:powershell -Command "Test-Path 'C:\Program Files\Dell\SysMgt\oma\bin\omreport.exe'"
- ExternalTable=GetDellOmsaDisksInfo:instanceColumns=Name;description=Show Dell Disks Info;separator=|:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\DellOmsaDisksInfo.ps1"
- ExternalList=DellOmsaTemperatureInstances:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\DellOmsaTemperatureInstances.ps1"
- ExternalParameter=DellOmsaTemperature(*):powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\DellOmsaTemperature.ps1" "$1"
- #Veeam-------
- ExecTimeout = 180000
- ExternalTable=VeeamRepositoryScan:instanceColumns=Repository;description=Show Veeam repository scan state;separator=,:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\VeeamRepositoryScan.ps1"
- ExternalTable=VeeamRepositoryInfo:instanceColumns=Repository;description=Show Veeam repository info;separator=,:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\VeeamRepositoryInfo.ps1"
- ExternalTable=VeeamTapeInfo:instanceColumns=Tape;description=Show Veeam tape info;separator=,:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\VeeamTapeInfo.ps1"
- #MSSQL-------
- ExternalList=MSSQLInstances:powershell -Command "try {(get-itemproperty 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server' -ErrorAction SilentlyContinue).InstalledInstances} catch{}"
- ExternalParameter=MSSQLInstanceVersion:powershell -Command "try{$$instances=(get-itemproperty 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server' -ErrorAction SilentlyContinue).InstalledInstances;$$instance = $$instances[0];$$version=(Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL').$$instance;$$version = 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server\'+$$version+'\Setup';(Get-ItemProperty $$version).Version}catch{echo '-1.0'}"
- #StarWind------
- ExternalParameter=GetStarWindLicense(*):powershell -Command "try{(Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\StarWind Software\License\StarWindService').$1} catch {$$null}"
- #HP------
- #ExternalParameter=ifHP:powershell -Command "try {If (Get-WmiObject -Computername $$env:computername -Namespace root\hpq -Query 'select * from HPSA_DiskDrive' -ErrorAction SilentlyContinue) {return 'True'}} catch{}"
- ExternalTable=HPArrayDisks:instanceColumns=Slot;description=Show HP disk info;separator=|:powershell -command "& { . 'C:\Program Files\StarWind Software\StarWind Health Service\var\HPArrayDisksInfo.ps1'; Get-HPArrayDisks}"
- ExternalTable=HPArrayControllers:instanceColumns=ControllerName;description=Show HP disk info;separator=|:powershell -command "& { . 'C:\Program Files\StarWind Software\StarWind Health Service\var\HPArrayDisksInfo.ps1'; Get-HPArrayControllers}"
- ExternalTable=HPArrayVolumes:instanceColumns=OSDiskID;description=Show HP disk info;separator=|:powershell -command "& { . 'C:\Program Files\StarWind Software\StarWind Health Service\var\HPArrayDisksInfo.ps1'; Get-HPArrayVolumes}"
- ExternalParameter=Manufacturer:powershell -Command "(Get-WmiObject -Class:Win32_ComputerSystem).Manufacturer"
- #Mellanox------
- ExternalParameter=ifMLNX:powershell -Command "(Get-NetAdapter).InterfaceDescription | Select-String -Pattern 'Mellanox'"
- #ESXi-----
- ExternalParameter=ifHealth:powershell -Command "& { . 'C:\Program Files\StarWind Software\StarWind Health Service\var\ESXiStat.ps1'; ifHealth}"
- *WinPerf
- EnableDefaultCounters = yes
- [filemgr]
- RootFolder = C:\Program Files\StarWind Software
- RootFolder = C:\Windows\System32\Winevt\Logs
- ;RootFolder = C:\
Add Comment
Please, Sign In to add comment