Ad Widget

Collapse

255, no such service. How to find missing services with service.discovery?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • drenriza
    Junior Member
    • May 2019
    • 19

    #1

    255, no such service. How to find missing services with service.discovery?

    Hi all!

    I use service.discovery to find a list of services i am interested in as rule filters, but sometimes a server does not contain one of the services in the list, and if that happends
    Zabbix just does not show the service as an item because it only looks for positive match.

    Question
    How can i use service.info[{service.name/service.displayname},state] with service.discovery to throw a 255 'no such service', for services that are in the list but that does not match a running service?

    service.discovery rule filters
    1. ^(service1|service2|service3|service4) [Result is TRUE]
    2. ^(automatic|automatic delayed)$ [Result is TRUE]

    Thanks in advance
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    Obviously, service.discovery will not return services that do not exist on host. You can try to solve your problem by making a template containing service.info for each of the services the absence of which should be checked. (or make a fictitious discovery script returning a list of such services and based on it to generate data items and triggers)

    Comment

    Working...