Merge pull request #2208 from remakeelectric/snmp-agentx
authorJo-Philipp Wich <jo@mein.io>
Mon, 8 Oct 2018 11:34:07 +0000 (13:34 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Oct 2018 11:34:07 +0000 (13:34 +0200)
luci-app-snmpd: Allow turning off agentx

applications/luci-app-snmpd/luasrc/model/cbi/snmpd.lua

index b3c0f2660be5d553bf5950016d9b3c1ed40ef8f2..cc6951e171d9d17cc5a3a6344c6c144f4473102a 100644 (file)
@@ -26,11 +26,12 @@ s.anonymous = true
 p = s:option(Value, "agentaddress", "The address the agent should listen on",
        [[Eg: UDP:161, or UDP:10.5.4.3:161 to only listen on a given interface]])
 
-s = m:section(TypedSection, "agentx", "AgentX settings")
+s = m:section(TypedSection, "agentx", "AgentX settings", "Delete this section to disable agentx")
 s.anonymous = true
 p = s:option(Value, "agentxsocket", "The address the agent should allow agentX connections to",
     [[This is only necessary if you have subagents using the agentX socket protocol.
-    Note that agentX requires TCP transport]])
+    Eg: /var/run/agentx.sock]])
+s.addremove=true
 
 s = m:section(TypedSection, "com2sec", "com2sec security")
 p = s:option(Value, "secname", "secname")