Ad Widget

Collapse

Could you tell me how to use MAC addresses for host name.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kobayashi.shuttle
    Junior Member
    • Sep 2022
    • 1

    #1

    Could you tell me how to use MAC addresses for host name.


    Dear pioneers.

    Hello.
    I'm trying to monitor the OLT and ONU using function of the host prototype . I want to use the MAC address as a host name to identify the ONU, however I couldn't register it because ':' is a character string that cannot be used. Initially, I tried to replace ':' using function of the preprocessing. As a matter of course, ':' used in the JSON format was also replaced, and resulting in a syntax error. It is enough for me to get remove the ':'.
    sample Before"00-AB-CD-12-34-56" After "00ABCD123456".

    The following the Zabbix Configuration.
    ZABBIX version : 6.0 LTS
    OS: Debian 11 (bullseye)
    Zabbix Component : Server Frontend,Agent
    DATABASE PostgreSQL 13
    Other : PHP and Apache
    Monitoring object : OLT made by MIHARU(GE-PON), and ONU

    Thanks for reading.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    00-AB-CD-12-34-56 seems to be completely usable hostname... So what's the problem...? Where is that ":" you keep telling about?
    Maybe giving an example json would be best?

    Comment

    Working...