Get-ZabbixConf.ps1

function Get-ZabbixConf
{
  <#
      .SYNOPSIS
      Gets entries in Zabbix Conf.
      .DESCRIPTION
      Grabs latest entries from a Zabbix Conf. Only works when zabbix_agentd.log exists in C:\Zabbix\ on remote server.
      .EXAMPLE
      Get-ZabbixLog -Computer Agent1
      Gets latest 15 entries.
  #>

  [CmdletBinding()]
  param
  (
    [Parameter(Mandatory=$true, Position=0)]
    [System.String]
    $Computer
  )
  
  $confPath = (Get-ZabbixAgent -Computer $Computer).confPath
  
  $remoteConfPath = (($confPath.Replace(':','$')).insert(1,"\\$Computer\")).Replace('"','')
  
  Get-FileTail $remoteConfPath
}