This is a discussion on Re: SNMP AgentX Problem <LONG MAIL> - SNMP ; Stefan Mikuszeit wrote: > I used the Hello World example from `perldoc NetSNMP::agent` and started the SNMP Agent via: > /usr/sbin/snmpd -Ls DAEMON -Lf /var/log/snmpd.log -u root -p /var/run/snmpd.pid -x tcp:localhost:705 -c /etc/snmp/snmpd.conf > > and the subagent via: > ...
Stefan Mikuszeit wrote:
> I used the Hello World example from `perldoc NetSNMP::agent` and started the SNMP Agent via:
> /usr/sbin/snmpd -Ls DAEMON -Lf /var/log/snmpd.log -u root -p /var/run/snmpd.pid -x tcp:localhost:705 -c /etc/snmp/snmpd.conf
>
> and the subagent via:
> /usr/lib/net-snmp/agents/mysql_agent.pl
>
> The agent conf:
> cat /etc/snmp/snmp/my_agent_name.conf
> agentxSocket tcp:localhost:705
What's the output of "net-snmp-config --snmpconfpath"? /etc/snmp/snmp
looks wrong. Since your subagent connects, this may just be a typo, though.
> I will become this message:
> NET-SNMP version 5.4 AgentX subagent connected
>
> If i now start an snmpwalk, this will not work :-(
> snmpwalk localhost -c public -v2c .1.3.6.1.4.1.8072.9999.9999.7375.1.0
>
> Errormessage:
> NET-SNMP-MIB::netSnmpPlaypen.7375.1.0 = No Such Object available on this agent at this OID
Try adding
use NetSNMP::ASN qw(ASN_OCTET_STR);
to the top of /usr/lib/net-snmp/agents/mysql_agent.pl. Does it help?
+Thomas
--
Thomas Anders (thomas.anders at blue-cable.de)
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users