After much mucking about I realized that the FreeBSD agent code was just missing the loop to report the interfaces.
Once this is added you can copy the Linux auto-discovery rules and add them to the FreeBSD OS template and have interface discovery under FreeBSD.
While this post is a good work around, the attached patch adds the functionality and does so using only C calls (no outside programs).
I'm hoping somone from the Zabbix team sees this (is there a better way to submit stuff like this?) and can commit it after reviewing it.
Let me know if you have any questions, etc ... and apologies ahead of time for the code ... it has been probably 8 years since I've touched C :P. Please check to make sure the string copy stuff is sane etc ...
P.S.
Just in case this is accepted, the corresponding discovery rules should be added to the default FreeBSD templates too like they are for Linux so new installs get 'em.
Once this is added you can copy the Linux auto-discovery rules and add them to the FreeBSD OS template and have interface discovery under FreeBSD.
While this post is a good work around, the attached patch adds the functionality and does so using only C calls (no outside programs).
I'm hoping somone from the Zabbix team sees this (is there a better way to submit stuff like this?) and can commit it after reviewing it.
Let me know if you have any questions, etc ... and apologies ahead of time for the code ... it has been probably 8 years since I've touched C :P. Please check to make sure the string copy stuff is sane etc ...
P.S.
Just in case this is accepted, the corresponding discovery rules should be added to the default FreeBSD templates too like they are for Linux so new installs get 'em.
Comment