Ad Widget

Collapse

Windows Exchange 2016 Database Health via Powershell script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vannost
    Junior Member
    • Oct 2019
    • 1

    #1

    Windows Exchange 2016 Database Health via Powershell script

    Hello Everyone,

    First time here and new to creating custom PowerShell scripts from a Windows environment to Zabbix.

    I created a PowerShell Script that looks at our Exchange Server Mailbox Databases and returnds a "1" if Mounted and Healthy and a "0" for any other status (suspended).
    The PS script works very well.

    I am trying to use a custom Zabbix Item to trigger a response in Zabbix if the PS script output is "0".

    The passive Zabbix agent is able to read and pull data from the PS script so my zabbix_agentd.conf file has the correct user param.
    I can see that Zabbix is reading the PS script off of one of our EX servers when I look at Latest data - History .
    I am not sure if I am having an issue with the Item or the Trigger expression or both.

    When I look at the Triggers page in Zabbix I see that the trigger for this process has an Unknown Status. The status is not enabled and produces the error:
    "Cannot evaluate expression. "Cannot evaluate function "Exchange_Server_Name zbx_mailboxDB.last()" Item is not supported.
    Note: mailboxDB is the item key and the name of the PS script.

    Any coaching is greatly appreciated.

    Thanks

Working...