gassanpavel

Untitled

Feb 9th, 2021
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.90 KB | None | 0 0
  1. ###################################################
  2. # StarWind Health Service agent configuration file#
  3. # Created by agent installer at 08 11 2018 #
  4. ###################################################
  5.  
  6. EnableProxy = yes
  7. EnableSNMPProxy = yes
  8.  
  9. MasterServers = pas.starwind.com
  10. ServerConnection = pas.starwind.com
  11. #DebugLevel = 9
  12. TunnelKeepaliveInterval = 30
  13. ConfigIncludeDir = "C:\Program Files\StarWind Software\StarWind Health Service\etc\nxagentd.conf.d"
  14. #LogFile = {syslog}
  15. LogFile = "C:\Program Files\StarWind Software\StarWind Health Service\log\StarWindHealthService.log"
  16. FileStore = "C:\Program Files\StarWind Software\StarWind Health Service\var"
  17. SubAgent = ecs.nsm
  18. SubAgent = filemgr.nsm
  19. SubAgent = ping.nsm
  20. SubAgent = logwatch.nsm
  21. SubAgent = portcheck.nsm
  22. SubAgent = winperf.nsm
  23. SubAgent = wmi.nsm
  24. SubAgent = ups.nsm
  25.  
  26. EnableWatchdog = no
  27.  
  28. Action = GetESXiLog:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\GetESXiLogBundle.ps1"
  29. Action = GetSystemLog:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\GetSystemLog.ps1"
  30. Action = GetESXiVersion:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\GetESXiVersion.ps1"
  31. Action = GetSystemLogEvtx:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\GetSystemLog-evtx.ps1"
  32. Action = StorageSpaceReport:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\StorageSpaceReport.ps1"
  33. Action = GetStarWindSyncState:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\StarWindSyncState.ps1"
  34. Action = GetServiceTagNumber:cmd.exe /C "wmic bios get serialnumber"
  35. ActionShellExec = GetSataDiskInfo:%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "Get-Disk | Where-Object FriendlyName -like '*sata*' | Select-Object FriendlyName, SerialNumber"
  36. Action = GetDellOmsaDisksInfo:%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "C:\Program Files\StarWind Software\StarWind Health Service\var\DellOmsaDisksInfo.ps1"
  37. ActionShellExec = GetManufacturerInfo:%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "(Get-WmiObject -Class:Win32_ComputerSystem).Manufacturer; (gwmi -q 'select * from win32_computersystem').Model"
  38. ActionShellExec = GetDellTempInfo:%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "cd 'C:\Program Files\Dell\SysMgt\oma\bin\'; .\omreport.exe chassis temps"
  39. ActionShellExec = GetClusterLog:powershell.exe -Command "Get-ClusterLog | Compress-Archive -DestinationPath 'C:\Program Files\StarWind Software\StarWind Health Service\var\clusterlog.zip' -CompressionLevel Optimal -Force"
  40. 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'}"
  41. 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'}"
  42. #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"
  43. Action = GetDellTSRreport:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\GetTSR.ps1"
  44. ActionShellExec = GetDCReplicationStatus:cmd.exe /C "repadmin /replsum"
  45. ActionShellExec = GetHPArray:%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -command "& { . 'C:\Program Files\StarWind Software\StarWind Health Service\var\HPArrayDisksInfo.ps1'; $1}"
  46. 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}"
  47. ActionShellExec = GetClusterResource:%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "try{Get-ClusterResource | sort -Property ResourceType | ft -AutoSize} catch{$_}"
  48. ActionShellExec = GetClusterNode:c:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command "try{Get-ClusterNode} catch{$_}"
  49. 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'}"
  50. ActionShellExec = GetSystemDate:%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "Get-Date -UFormat '%A %m/%d/%Y %R %Z'"
  51. ActionShellExec = GetSystemServices:%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "Get-Service | select -Property DisplayName, StartType, Status | Sort-Object -Property DisplayName |ft"
  52. ActionShellExec = GetStarWindConsoleStop:powershell.exe -Command "get-process | where-object {$$_.Name -eq 'StarWindManagementConsole'} | Stop-Process -Force"
  53. Action = KillStarWindConsoleLogs:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\Remove-ConsoleLog.ps1"
  54. ActionShellExec = Get-Item:powershell.exe -Command "Get-Item WSMan:\localhost\Service\Auth\CredSSP"
  55. ActionShellExec = Get-ChildItem:powershell.exe -Command "Get-ChildItem WSMan:\Localhost\Listener"
  56. ActionShellExec = Get-WSManCredSSP:powershell.exe -Command "Get-WSManCredSSP"
  57. ActionShellExec = winrm:powershell.exe -Command "winrm get winrm/config"
  58. Action = test_CC_base:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\test_CC_base.ps1"
  59. Action = test_CC_perf:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\test_CC_perf.ps1"
  60.  
  61. #Custom DCI--
  62. ExternalList=GetServerRoles:powershell -Command "try {(Get-WindowsFeature | Where Installed | Where-Object FeatureType -EQ 'Role Service').DisplayName} catch {}"
  63. ExternalParameter=GetWindowsGracePeriod:powershell -Command "try {[math]::Round((get-ciminstance -class SoftwareLicensingProduct | where PartialProductKey | where Name -match 'windows').graceperiodremaining / 1440)} catch {echo '-1'}"
  64. 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'}"
  65. 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{}"
  66. #Dell--------
  67. ExternalParameter=ifDellOmsa:powershell -Command "Test-Path 'C:\Program Files\Dell\SysMgt\oma\bin\omreport.exe'"
  68. ExternalTable=GetDellOmsaDisksInfo:instanceColumns=Name;description=Show Dell Disks Info;separator=|:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\DellOmsaDisksInfo.ps1"
  69. ExternalList=DellOmsaTemperatureInstances:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\DellOmsaTemperatureInstances.ps1"
  70. ExternalParameter=DellOmsaTemperature(*):powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\DellOmsaTemperature.ps1" "$1"
  71. #Veeam-------
  72. ExecTimeout = 180000
  73. ExternalTable=VeeamRepositoryScan:instanceColumns=Repository;description=Show Veeam repository scan state;separator=,:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\VeeamRepositoryScan.ps1"
  74. ExternalTable=VeeamRepositoryInfo:instanceColumns=Repository;description=Show Veeam repository info;separator=,:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\VeeamRepositoryInfo.ps1"
  75. ExternalTable=VeeamTapeInfo:instanceColumns=Tape;description=Show Veeam tape info;separator=,:powershell -File "C:\Program Files\StarWind Software\StarWind Health Service\var\VeeamTapeInfo.ps1"
  76. #MSSQL-------
  77. ExternalList=MSSQLInstances:powershell -Command "try {(get-itemproperty 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server' -ErrorAction SilentlyContinue).InstalledInstances} catch{}"
  78. 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'}"
  79. #StarWind------
  80. ExternalParameter=GetStarWindLicense(*):powershell -Command "try{(Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\StarWind Software\License\StarWindService').$1} catch {$$null}"
  81. #HP------
  82. #ExternalParameter=ifHP:powershell -Command "try {If (Get-WmiObject -Computername $$env:computername -Namespace root\hpq -Query 'select * from HPSA_DiskDrive' -ErrorAction SilentlyContinue) {return 'True'}} catch{}"
  83. 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}"
  84. 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}"
  85. 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}"
  86. ExternalParameter=Manufacturer:powershell -Command "(Get-WmiObject -Class:Win32_ComputerSystem).Manufacturer"
  87. #Mellanox------
  88. ExternalParameter=ifMLNX:powershell -Command "(Get-NetAdapter).InterfaceDescription | Select-String -Pattern 'Mellanox'"
  89. #ESXi-----
  90. ExternalParameter=ifHealth:powershell -Command "& { . 'C:\Program Files\StarWind Software\StarWind Health Service\var\ESXiStat.ps1'; ifHealth}"
  91.  
  92.  
  93. *WinPerf
  94. EnableDefaultCounters = yes
  95.  
  96. [filemgr]
  97. RootFolder = C:\Program Files\StarWind Software
  98. RootFolder = C:\Windows\System32\Winevt\Logs
  99. ;RootFolder = C:\
  100.  
  101.  
Add Comment
Please, Sign In to add comment