[ZBXNEXT-1355] Network Interface discovery missing from freebsd agent Created: 2012 Aug 08  Updated: 2012 Aug 08  Resolved: 2012 Aug 08

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Agent (G)
Affects Version/s: 2.0.2
Fix Version/s: None

Type: Change Request Priority: Minor
Reporter: chris scott Assignee: Alexei Vladishev
Resolution: Duplicate Votes: 0
Labels: freebsd, lld, networkdiscovery
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

freebsd agents


Issue Links:
Duplicate
duplicates ZBXNEXT-579 Support 'net.if.discovery' key on Fre... Closed

 Description   

Currently the network autodiscovery key is missing from the freebsd agent. Currently I have to work around with the following

UserParameter=net.if.discovery,ifconfig | awk ' BEGIN { print "

{\"data\":\[" }

/^[a-z0-9]+\:/ { gsub(/\:/,"",$ 1); if ( $ 1 != "lo0" ) print "{ \"

{#IFNAME}\":\"" $ 1"\" }," } END { print "{ \"{#IFNAME}

\":\"lo0\"} \n]}" } '

This works fine but should really be fixed properly with system calls and merged into the code stack. I can help with testing here if needed.


Generated at Fri Mar 29 16:40:39 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.