|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Custom OID in snmpd.conf
Hi,
I can create a custom OID in Linux very easily: Code:
extend my.custom.oid /etc/snmp/scripts/custom.oid.sh 301 Code:
read-only community public system location lab system name devmachine1 system contact me@example.com system services 74 Code:
oid 1.3.6.1.4.1.30155.42.1 name myName read-only string "humppa" oid 1.3.6.1.4.1.30155.42.2 name myStatus read-only integer 1 I've tried for hours with other example code, but none of it is example code that will work with OpenBSD's implementation. How can I extend SNMP to run a custom program and return back the output? |
|
||||
According to reyk@, the security model is designed to prevent extensibilty, and if custom extensions are needed, you should use net/net-snmp.
Reference: http://www.undeadly.org/cgi?action=a...20071205120138 |
|
|||
Thanks... I guess
I'm somewhat surprised that the logic is to *prevent* extensibility. I'm not finding anything on how to write my own listener. I assume this means I need to uninstall/disable the current implementation, and then my own program becomes the SNMP server? I can't be the only one with a need for custom OIDs. There isn't anybody else that has a custom OID on OpenBSD? I'm really surprised that I have to write this software to do something that a single line of code does in Linux. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom keyboard layout | darktrym | NetBSD Installation and Upgrading | 1 | 3rd August 2017 11:39 PM |
snmpd vs. net-snmp configuration issues | MatthiasKoch | OpenBSD General | 3 | 28th April 2016 07:01 AM |
Custom CD | Timmy66 | OpenBSD Installation and Upgrading | 3 | 15th November 2014 06:55 AM |
custom kernel problem | pahel0 | FreeBSD General | 8 | 15th February 2010 11:13 PM |
About Custom Kernels | qmemo | NetBSD General | 2 | 28th September 2008 03:45 PM |