I know that this isn't technically the right forum, but I've been unable to find any good resources on how to extend SNMP. I'd like to gather some other information from my remote linux hosts, and while I used an ssh host to do it in the past, I feel like doing it with snmp is more secure and the "right" way to go about it.
I'm completely comfortable writing scripts in bash and perl, or even C code if I have to, but how do I get SNMP to spit it out on a get?
I found this to add to snmpd.conf in another thread:
Code: Select all
exec .1.3.6.1.4.1.2021.60 yourscriptname /usr/local/bin/yourscriptname.pl
But with my trial script, snmpd then fails to start. How do I know which OID to assign it to? What should the output of the script look like?
Any good on-line resources on how to do things like this? I'm running Net-SNMP 5.0.8 installed from source with cacti 0.8...