Ad Widget

Collapse

Link template if service found by Zabbix Agent?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ElementZero
    Junior Member
    • Jan 2021
    • 16

    #1

    Link template if service found by Zabbix Agent?

    Is there some way to link a template to a host if the Zabbix Agent finds a service on a windows machine? For instance if it finds a Windows service containing "MSSQLSERVER" then link the MSSQL template? Right now I'm just doing discovery checks on port 1433 but that's not too efficient. Perhaps this is more for the Zabbix Agent active? Any ideas?
  • gofree
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2017
    • 400

    #2
    Originally posted by ElementZero
    Is there some way to link a template to a host if the Zabbix Agent finds a service on a windows machine? For instance if it finds a Windows service containing "MSSQLSERVER" then link the MSSQL template? Right now I'm just doing discovery checks on port 1433 but that's not too efficient. Perhaps this is more for the Zabbix Agent active? Any ideas?
    maybe you could write some custom "discovery scripts" that will be run periodically ( can be userparameters ) and if they find the service they'll contact Zabbix via api and assign a template to that particular host, in addition for Zabbix agent 2 you can utilize Go and write some custom plugin

    Comment

    • Semiadmin
      Senior Member
      • Oct 2014
      • 1625

      #3
      Originally posted by ElementZero
      Right now I'm just doing discovery checks on port 1433 but that's not too efficient
      You may create a discovery rule for this service (сheck type "Zabbix agent", key service.info[MSSQLSERVER]) and a discovery action
      with condition "Received value does not equal 255".

      Comment

      Working...