From d8fcdc9ae3cf7a5cdafca865c9ada7551f85a03f Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Tue, 18 Apr 2017 17:42:56 -0500 Subject: [PATCH] refactor: use sysDescr to simplify the vyatta detection (#6455) --- includes/definitions/vyatta.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/definitions/vyatta.yaml b/includes/definitions/vyatta.yaml index 01e166e9fd..99cdbef64c 100644 --- a/includes/definitions/vyatta.yaml +++ b/includes/definitions/vyatta.yaml @@ -7,5 +7,8 @@ over: - { graph: device_processor, text: 'Processor Usage' } - { graph: device_ucd_memory, text: 'Memory Usage' } discovery: - - sysDescr_regex: - - '/^Vyatta((?!VyOS).)*$/' # = starts_with($sysDescr, 'Vyatta') && !str_contains($sysDescr, 'VyOS') + - + sysDescr_regex: + - '/^Vyatta/' + sysDescr_except: + - 'VyOS'