Ad Widget

Collapse

PATCH: FreeBSD Network Interface Discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • trolld
    Junior Member
    • Jan 2013
    • 5

    #1

    PATCH: FreeBSD Network Interface Discovery

    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.
    Attached Files
    Last edited by trolld; 29-01-2013, 19:59. Reason: Added P.S.
  • Mox
    Member
    • Sep 2009
    • 90

    #2
    IMO you need create new ticket https://support.zabbix.com

    Comment

    • douglas
      Junior Member
      • Feb 2013
      • 1

      #3
      Thanks for the share. Was a bit odd to see the default FreeBSD template referencing eth0 and eth1 devices. Hopefully this patch gets merged into the default release FreeBSD templates.

      Comment

      Working...