Ad Widget

Collapse

FreeBSD network interface LLD

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • absurddoctor
    Junior Member
    • Jan 2014
    • 3

    #1

    FreeBSD network interface LLD

    After an upgrade of the zabbix server to 2.2.1, I'm still having trouble getting network LLD to work correctly on FreeBSD hosts. Example from one host is below:

    My regex:

    ^(em|igb|loo|bce|eth|wan|lan|bridge)\d?$

    (I renamed the regex 'interfaces' for now, to make sure I wasn't missing a typo)

    What I see come across the wire:

    "data":[
    {
    "{#IFNAME}":"usbus0"},
    {
    "{#IFNAME}":"em0"},
    {
    "{#IFNAME}":"em1"},
    {
    "{#IFNAME}":"usbus1"},
    {
    "{#IFNAME}":"lo0"}]}

    Relevant log entry:


    37824:20140110:235115.227 In substitute_simple_macros() data:'30'
    37824:20140110:235115.228 DBlld_process_discovery_rule() f_macro:'{#IFNAME}' f_regexp:'@interfaces'
    37824:20140110:235115.228 In DBlld_update_items()
    37824:20140110:235115.228 query [txnlev:0] [select i.itemid,i.name,i.key_,i.type,i.value_type,i.data
    _type,i.delay,i.delay_flex,i.history,i.trends,i.st atus,i.trapper_hosts,i.units,i.multiplier,i.delta, i
    .formula,i.logtimefmt,i.valuemapid,i.params,i.ipmi _sensor,i.snmp_community,i.snmp_oid,i.port,i.snmpv 3
    _securityname,i.snmpv3_securitylevel,i.snmpv3_auth protocol,i.snmpv3_authpassphrase,i.snmpv3_privprot o
    col,i.snmpv3_privpassphrase,i.authtype,i.username, i.password,i.publickey,i.privatekey,i.description, i
    .interfaceid,i.snmpv3_contextname from items i,item_discovery id where i.itemid=id.itemid and id.pare
    nt_itemid=24375]
    37824:20140110:235115.228 In DBlld_items_get()
    37824:20140110:235115.228 query [txnlev:0] [select id.itemid,id.key_,id.lastcheck,id.ts_delete,i.nam
    e,i.key_,i.type,i.value_type,i.data_type,i.delay,i .delay_flex,i.history,i.trends,i.trapper_hosts,i.u n
    its,i.multiplier,i.delta,i.formula,i.logtimefmt,i. valuemapid,i.params,i.ipmi_sensor,i.snmp_community ,
    i.snmp_oid,i.port,i.snmpv3_securityname,i.snmpv3_s ecuritylevel,i.snmpv3_authprotocol,i.snmpv3_authpa s
    sphrase,i.snmpv3_privprotocol,i.snmpv3_privpassphr ase,i.authtype,i.username,i.password,i.publickey,i .
    privatekey,i.description,i.interfaceid,i.snmpv3_co ntextname from item_discovery id join items i on id
    .itemid=i.itemid where id.parent_itemid=24377]
    37824:20140110:235115.228 End of DBlld_items_get()
    37824:20140110:235115.228 In lld_check_record() jp_row:'{
    "{#IFNAME}":"usbus0"}'
    37824:20140110:235115.228 End of lld_check_record():FAIL
    37824:20140110:235115.228 In lld_check_record() jp_row:'{
    "{#IFNAME}":"em0"}'
    37824:20140110:235115.228 End of lld_check_record():FAIL
    37824:20140110:235115.228 In lld_check_record() jp_row:'{
    "{#IFNAME}":"em1"}'
    37824:20140110:235115.228 End of lld_check_record():FAIL
    37824:20140110:235115.228 In lld_check_record() jp_row:'{
    "{#IFNAME}":"usbus1"}'
    37824:20140110:235115.228 End of lld_check_record():FAIL
    37824:20140110:235115.228 In lld_check_record() jp_row:'{
    "{#IFNAME}":"lo0"}'
    37824:20140110:235115.229 End of lld_check_record():FAIL
    37824:20140110:235115.229 In DBlld_items_validate()
    37824:20140110:235115.229 End of DBlld_items_validate()


    It appears to be using the correct regex, the regex looks correct to me and tests allright. What else might be causing the failure?
Working...