<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.acrodus.uk/index.php?action=history&amp;feed=atom&amp;title=Extend_snmp_agent_functionality_on_Linux_machine</id>
	<title>Extend snmp agent functionality on Linux machine - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.acrodus.uk/index.php?action=history&amp;feed=atom&amp;title=Extend_snmp_agent_functionality_on_Linux_machine"/>
	<link rel="alternate" type="text/html" href="http://wiki.acrodus.uk/index.php?title=Extend_snmp_agent_functionality_on_Linux_machine&amp;action=history"/>
	<updated>2026-04-04T02:48:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>http://wiki.acrodus.uk/index.php?title=Extend_snmp_agent_functionality_on_Linux_machine&amp;diff=50&amp;oldid=prev</id>
		<title>Alex: Created page with &quot;This guide is to help extend the functionality of an snmp agent on a Linux machine. This allows for custom OID&#039;s to be queried from an snmp master to the agent. This also be subject to a program or script running and returning the value.  Ensure that snmpd is installed. sudo apt-get install snmpd.  First thing is to make some changes to the SNMP agent. In /etc/snmp/snmpd.conf ensure that the line &quot;rocommunity public default -V systemonly&quot; has the -V systemonly removed. T...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.acrodus.uk/index.php?title=Extend_snmp_agent_functionality_on_Linux_machine&amp;diff=50&amp;oldid=prev"/>
		<updated>2024-10-06T20:25:50Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This guide is to help extend the functionality of an snmp agent on a Linux machine. This allows for custom OID&amp;#039;s to be queried from an snmp master to the agent. This also be subject to a program or script running and returning the value.  Ensure that snmpd is installed. sudo apt-get install snmpd.  First thing is to make some changes to the SNMP agent. In /etc/snmp/snmpd.conf ensure that the line &amp;quot;rocommunity public default -V systemonly&amp;quot; has the -V systemonly removed. T...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This guide is to help extend the functionality of an snmp agent on a Linux machine. This allows for custom OID&amp;#039;s to be queried from an snmp master to the agent. This also be subject to a program or script running and returning the value.&lt;br /&gt;
&lt;br /&gt;
Ensure that snmpd is installed. sudo apt-get install snmpd.&lt;br /&gt;
&lt;br /&gt;
First thing is to make some changes to the SNMP agent. In /etc/snmp/snmpd.conf ensure that the line &amp;quot;rocommunity public default -V systemonly&amp;quot; has the -V systemonly removed. This allows for the machine to access more than just basic system OID&amp;#039;s.&lt;br /&gt;
&lt;br /&gt;
To add the actual extend functionality add the line &amp;quot;extend test /bin/echo hello&amp;quot; or the equivalent for the action that you want to make. This is effectively the OID extension &amp;#039;test&amp;#039; the program or script to be executed &amp;#039;/bin/echo&amp;#039; and the inputs to the program. The return value of the scripts will be sent by the SNMP agent. Ensure that the program path is correct.&lt;br /&gt;
&lt;br /&gt;
Use the command to validate &amp;quot;snmpwalk -v2c -c public 127.0.0.1 nsExtendOutput1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Another change that may be required is to install the mibs on the Linux snmp master. This can be done with the following command.&lt;br /&gt;
&lt;br /&gt;
$ sudo apt-get install snmp-mibs-downloader&lt;br /&gt;
$ sudo download-mibs&lt;br /&gt;
&lt;br /&gt;
And then add the following line into the snmp.conf file. mibs +ALL&lt;br /&gt;
&lt;br /&gt;
To get the OID use the command&lt;/div&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
</feed>