Hi there,
I need to develop a custom graphs integrated in librenms.
Looking at all possibilities I’ve been able to make run I decided to create a SNMP extension…
I began by creating my bash script that reads from someplace inside /var/log compute data and give me a number (basic case)
I placed that script inside /etc/snmp/ make it executable (chmod +x)…
Then I’ve added this feature as an extension in snmpd.conf
extend script /etc/snmp/script.sh
Then I restarted snmpd service.
To get correct OID I used this commands:
$ snmptranslate -On 'NET-SNMP-EXTEND-MIB::nsExtendOutLine."script".1'
.1.3.6.1.4.1.8072.1.3.2.4.1.2.13.111.100.111.111.45.114.101.113.117.101.115.116.115.1
After that I send a request from my LibreNMS server to my monitor system in this 2 ways.
snmpget -u bootstrap -l authPriv -a MD5 -x DES -A temp_password -X temp_password 172.18.0.1 'NET-SNMP-EXTEND-MIB::nsExtendOutLine."script".1'
NET-SNMP-EXTEND-MIB::nsExtendOutLine."script".1 = STRING: 1.2
snmpget -u bootstrap -l authPriv -a MD5 -x DES -A temp_password -X temp_password 172.18.0.1 .1.3.6.1.4.1.8072.1.3.2.4.1.2.13.111.100.111.111.45.114.101.113.117.101.115.116.115.1
NET-SNMP-EXTEND-MIB::nsExtendOutLine."script".1 = STRING: 1.2
At this point I noticed in this way couldn’t reach to a solution:
So I’m here to ask a little bit about th widescreen of libreNMS and how I would be capable of develop this necessity.
My goal is to create a plugin/app/module/whatever that can read from SNMP(or other way) and display data in graphs.
Which way should I take?
Thanks!