Ad Widget

Collapse

Zabbix monitoring SQL databases on 1300 servers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Stephen J Capita
    Junior Member
    • Mar 2022
    • 13

    #1

    Zabbix monitoring SQL databases on 1300 servers

    I am in the process of migrating all our alerting from a very old product called server vantage to zabbix. I have most things moved over, but looking at some custom alerting we had for sql databases. I have found this user created script which would be ideal. But just need help getting it setup. It mentions a powershell script but I see no information on it. Here is the template in question.

    https://share.zabbix.com/templates/d...very-lld/#body

    When I import it I see I need to set the macro with the sql instance name, but I dont know about the powershell script.

    We use an SQL instance name of SQL Server (MSSQLEXP2016) so this is what I have defined in my macro:

    Click image for larger version  Name:	image.png Views:	0 Size:	10.5 KB ID:	452408

    ​This is the discovery key, but it talks about a powershell script. I am not sure where to set this

    Click image for larger version  Name:	image.png Views:	0 Size:	37.9 KB ID:	452409

    When I try to add the template to a server, it comes back with unknown metric windowsdb.discovrey.

    Click image for larger version

Name:	image.png
Views:	602
Size:	15.6 KB
ID:	452410

    I am running zabbix 6.0.9 lts on centos 8 stream​
    Last edited by Stephen J Capita; 07-10-2022, 12:51.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4811

    #2
    I guess you need to add that script to hosts and update it with correct instance name. And then also add UserParameter (UserPArameter=windowsdb.discovery,/path_to_your_ps1_script), which calls that script.

    Comment

    • Stephen J Capita
      Junior Member
      • Mar 2022
      • 13

      #3
      Cheers for the help, after further investigation, I found that the counters I needed were perfmon counters. So I am in the process of setting up my own custom template with all the prefmon counters I need.

      Comment

      Working...