[Solved] Net-SNMP extend into config, is it possible?

  • Hello community,

    I use LibreELEC on Raspberry Pi 3B +

    Installed the net-snmp addon. Everything works well.

    When standing Raspbian, using the bash script received the CPU frequency.

    Output it to SNMP in a string (example):

    "extend test / bin / echo test" in snmpd.conf

    Tell me, how can this be implemented in LibreELEC?

    Thanks in advance for your help! ;)

  • Hello all,

    Sorry, I found a solution!

    Apparently poorly studied the subject matter

    You must stop the net-snmp service before making changes.

    Make changes to the file

    Code
    systemctl stop service.net-snmp.service
    nano /storage/.kodi/userdata/addon_data/service.net-snmp/share/snmp/snmpd.conf

    Add line to end of file

    Code
    extend cputemp "/usr/bin/cputemp"

    Save it. And start the net-snmp service

    Code
    systemctl start service.net-snmp.service

    Enjoy)