nftables table vyos_filter by default does not exist, but telegraf is trying to collect info from this table
To reproduce:
set service monitoring telegraf influxdb authentication organization 'log@in.local' set service monitoring telegraf influxdb authentication token 'GuRJc12tIzfjnYdKRAIYbxdWd2aTpOT9PVYNddzDnFV4HkAcD7u7-kndTFXjGuXzJN6TTxmrvPODB4mnFcseDV==' set service monitoring telegraf influxdb port '8086' set service monitoring telegraf influxdb url 'https://foo.local'
Commit:
vyos@r14# commit
[ service monitoring telegraf ]
VyOS had an issue completing a command.
Report time: 2022-10-11 21:30:00
Image version: VyOS 1.4-rolling-202210090955
Release train: current
Built by: autobuild@vyos.net
Built on: Sun 09 Oct 2022 09:55 UTC
Build UUID: e1dc468d-552c-49ba-a072-3f0ca1bf1dde
Build commit ID: 4f7f3ee8142bf6
Architecture: x86_64
Boot via: installed image
System type: KVM guest
Hardware vendor: QEMU
Hardware model: Standard PC (Q35 + ICH9, 2009)
Hardware S/N:
Hardware UUID: 4d6f4d29-1ae8-446f-8d2b-3decd9da64c7
Traceback (most recent call last):
File "/usr/libexec/vyos/conf_mode/service_monitoring_telegraf.py", line 205, in <module>
c = get_config()
File "/usr/libexec/vyos/conf_mode/service_monitoring_telegraf.py", line 79, in get_config
monitoring['nft_chains'] = get_nft_filter_chains()
File "/usr/libexec/vyos/conf_mode/service_monitoring_telegraf.py", line 45, in get_nft_filter_chains
nft = cmd('nft --json list table ip vyos_filter')
File "/usr/lib/python3/dist-packages/vyos/util.py", line 161, in cmd
raise OSError(code, feedback)
PermissionError: [Errno 1] failed to run command: nft --json list table ip vyos_filter
returned:
exit code: 1
noteworthy:
cmd 'nft --json list table ip vyos_filter'
returned (out):
returned (err):
Error: No such file or directory
list table ip vyos_filter
^^^^^^^^^^^
[[service monitoring]] failed
Commit failed
[edit]
vyos@r14#Current tables:
vyos@r14# sudo nft list tables table ip nat table inet mangle table ip raw table ip6 raw table ip mangle table ip6 mangle [edit] vyos@r14#