Ad Widget

Collapse

TrueNAS Scale - no network interfaces

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xcoder
    Junior Member
    • Nov 2022
    • 2

    #1

    TrueNAS Scale - no network interfaces

    Hi People,

    Hello, this is my first post.

    I run 4 truenas systems - 3 x TrueNas Scale release 22.02.4 and 1 x TrueNas Core release 12.0-U8.

    My zabbix server is latest build of 6.0LTS and I have imported the TrueNas SNMP template as per https://www.zabbix.com/integrations/truenas instructions for Zabbix 6.0 . After adding the hosts in and configuring the various settings, everything seems to be discovered except the network interfaces. When I go into the Discovery Rule and "test" this, it gives the correct information as per below - the system has 6 x 1 GbE and 2 x 10GbE.

    [{"{#SNMPINDEX}":"1","{#IFOPERSTATUS}":"1","{#IFADM INSTATUS}":"1","{#IFALIAS}":"","{#IFNAME}":"lo","{ #IFDESCR}":"lo","{#IFTYPE}":"24"},{"{#SNMPINDEX}": "2","{#IFOPERSTATUS}":"2","{#IFADMINSTATUS}":"2"," {#IFALIAS}":"","{#IFNAME}":"enp7s0f0","{#IFDESCR}" :"Intel Corporation 82580 Gigabit Network Connection","{#IFTYPE}":"6"},{"{#SNMPINDEX}":"3"," {#IFOPERSTATUS}":"1","{#IFADMINSTATUS}":"1","{#IFA LIAS}":"","{#IFNAME}":"enp3s0","{#IFDESCR}":"Intel Corporation 82574L Gigabit Network Connection","{#IFTYPE}":"6"},{"{#SNMPINDEX}":"4"," {#IFOPERSTATUS}":"2","{#IFADMINSTATUS}":"2","{#IFA LIAS}":"","{#IFNAME}":"enp7s0f1","{#IFDESCR}":"Int el Corporation 82580 Gigabit Network Connection","{#IFTYPE}":"6"},{"{#SNMPINDEX}":"5"," {#IFOPERSTATUS}":"2","{#IFADMINSTATUS}":"2","{#IFA LIAS}":"","{#IFNAME}":"enp2s0","{#IFDESCR}":"Intel Corporation 82574L Gigabit Network Connection","{#IFTYPE}":"6"},{"{#SNMPINDEX}":"6"," {#IFOPERSTATUS}":"2","{#IFADMINSTATUS}":"2","{#IFA LIAS}":"","{#IFNAME}":"enp7s0f2","{#IFDESCR}":"Int el Corporation 82580 Gigabit Network Connection","{#IFTYPE}":"6"},{"{#SNMPINDEX}":"7"," {#IFOPERSTATUS}":"2","{#IFADMINSTATUS}":"2","{#IFA LIAS}":"","{#IFNAME}":"enp7s0f3","{#IFDESCR}":"Int el Corporation 82580 Gigabit Network Connection","{#IFTYPE}":"6"},{"{#SNMPINDEX}":"8"," {#IFOPERSTATUS}":"1","{#IFADMINSTATUS}":"1","{#IFA LIAS}":"","{#IFNAME}":"enp8s0","{#IFDESCR}":"Mella nox Technologies MT26448 [ConnectX EN 10GigE, PCIe 2.0 5GT/s]","{#IFTYPE}":"6"},{"{#SNMPINDEX}":"9","{#IFOPERST ATUS}":"2","{#IFADMINSTATUS}":"2","{#IFALIAS}":"", "{#IFNAME}":"enp8s0d1","{#IFDESCR}":"Mellanox Technologies MT26448 [ConnectX EN 10GigE, PCIe 2.0 5GT/s]","{#IFTYPE}":"6"}]

    The main difference I can see between Core and Scale is the naming convention of the interfaces - Core uses "em" and Scale uses "en" and the templates macro default value is {$NET.IF.IFNAME.MATCHES} = ^em[0-9]+$ - I have cloned the template and changed the default to ^en[0-9]+$ and linked it to one server, with no change in the discovery outcome. I have also deployed the latest 6.2 build onto a VM to test (as this has the TrueNas SNMP template available by default) and get the same outcome.

    Any thoughts?

    Regards,

    Lee.
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    "{#IFNAME}":"enp7s0f0"
    changed the default to ^en[0-9]+$
    Your regex does not match those interface names. Use just ^en if you are happy to include all interface names that start with "en".

    Markku

    Comment

    • xcoder
      Junior Member
      • Nov 2022
      • 2

      #3
      wow, that simple - thanks Markku.

      Comment

      Working...