-
Problem report
-
Resolution: Commercial support required
-
Major
-
None
-
4.0.10
-
Ubuntu 16.04
I have been sent here from Sales - Maria Truskovskaya after a short e-mail exchange.
I have created a template with a service.discovery rule that create items and triggers common to all servers, lets call it MS-template
{#SERVICE.STARTUPNAME} ^(automatic|automatic delayed)$ [Result is TRUE]
with a not equal filter that works the same way as @Windows service names for discovery
I than create a linked template (MS-template), lets call it Skype-MS-template. I now want to find all {#SERVICE.DISPLAYNAME} ^Skype$ [Result is TRUE] and create items plus triggers with a different severity level than MS-template has for it's item and triggers.
In the end i want to create a second linked template (MS-template) and find all services that return 255 for service.discovery and create items and triggers with a 3'rd severity level.
Maria suggested creating a single service.discovery rule, create several filter statements for all the criterias and create host level macros. This has several disadvantages
- rule filter will be hard to manage and administrate
- rule filter (i expect) is read from top to bottom for first matching rule
- you cannot add a new rule in the middle of an existing rule filter
- you cannot change priority (up/down) on an existing rule filter
- For each host i need to manually create user macros
- Error prone and extremely time consuming
I cannot believe the above is not achievable in Zabbix, but as i have written to Maria i cannot find any Zabbix documentation on it for a fairly simple and common feature.
Boiled down to the very essential parts, i want to
- Get a list for each host, service.discovery JSON object
- Extract services from the JSON array based on a regex
- Create items and triggers for all services found
- Done at template level
https://i.stack.imgur.com/Fy02N.png
I have created a thread on the Zabbix forum, serverfault, ubuntuforumg.org, extensively read the Zabbix documentation v4.0 and been over the Zabbix youtube playlist with no result.
This issue is dead-locking my entire Zabbix project and blocking becoming a potential customer. How do i solve the above issue?
Thanks in advance
Best regards