Ad Widget

Collapse

How to use the Template App MS SQL Instance Discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • studero
    Member
    • Aug 2023
    • 84

    #1

    How to use the Template App MS SQL Instance Discovery

    Hi,

    My Zabbix server run on RedHat 9 with the last version of Zabbix.

    I want to monitor MS-SQL Server with multi instance. I have tried to use the community-templates/Databases/Microsoft_SQL_Server/template_app_ms_sql_instance_discovery_(lld)/6.0 at main · zabbix/community-templates (github.com)

    But I have a problem when run the Discover rules. I have the following error message "Unsupported item key" with the Key "windowssqlinstances.discovery"

    From my Zabbix server, I run the following command with the same result:
    [root@svx-mon-02t ~]# zabbix_get -s svw-mssql-01t -k windowssqlinstances.discovery
    ZBX_NOTSUPPORTED: Unsupported item key.
    [root@svx-mon-02t ~]#​

    I thinks that I need or there are an error into the Template.

    Thanks for your help
    Regards
    Olivier



  • SanMonitor
    Member
    • Aug 2022
    • 48

    #2
    Originally posted by studero
    Hi,

    My Zabbix server run on RedHat 9 with the last version of Zabbix.

    I want to monitor MS-SQL Server with multi instance. I have tried to use the community-templates/Databases/Microsoft_SQL_Server/template_app_ms_sql_instance_discovery_(lld)/6.0 at main · zabbix/community-templates (github.com)

    But I have a problem when run the Discover rules. I have the following error message "Unsupported item key" with the Key "windowssqlinstances.discovery"

    From my Zabbix server, I run the following command with the same result:
    [root@svx-mon-02t ~]# zabbix_get -s svw-mssql-01t -k windowssqlinstances.discovery
    ZBX_NOTSUPPORTED: Unsupported item key.
    [root@svx-mon-02t ~]#​

    I thinks that I need or there are an error into the Template.

    Thanks for your help
    Regards
    Olivier



    Hey studero, windowssqlinstances is not a standard item key to my knowledge.
    You can find these in the Agent documentation (https://www.zabbix.com/documentation.../zabbix_agent2)

    If you want to use this key you'd have to add a user parameter but I don't find this anywhere in the documenation of this template.

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3
      Originally posted by SanMonitor

      Hey studero, windowssqlinstances is not a standard item key to my knowledge.
      You can find these in the Agent documentation (https://www.zabbix.com/documentation.../zabbix_agent2)

      If you want to use this key you'd have to add a user parameter but I don't find this anywhere in the documenation of this template.
      Correct, this is not a built-in item and that template is missing actual powershell script for that.. Script is mentioned in that other template there (databases) https://github.com/zabbix/community-...(lld).yaml#L28

      Unfortunately, without it, this template is useless and whoever added that template to community templates, has done load of useless work (multiple versions etc. but still missing the most important part).

      Comment

      • TheBonaZabbix
        Member
        • Feb 2023
        • 67

        #4
        Thanks Cyber !

        Comment

        • fmt-chs
          Junior Member
          • Mar 2024
          • 1

          #5
          Hey studero,
          I too needed the template to work.
          I havent talked with abakaldin, the creator of the template, but i have created the powershell script to get this to work.
          Please see: https://github.com/chhsoe/powershell...-for-zbx-mssql
          There is also a guide there to get it to work.

          Comment

          Working...